Commits

Anonymous committed 0656e37 Draft

*COMSTR strings for QRC and MOC actions

  • Participants
  • Parent commits 8bd1edd

Comments (0)

Files changed (1)

         src_suffix = '.ts',
         suffix = '.qm')
 __qrc_builder = SCons.Builder.Builder(
-        action = SCons.Action.CommandGeneratorAction(__qrc_generator, {}),
+        action = SCons.Action.CommandGeneratorAction(__qrc_generator,
+                                                    {"cmdstr":"$QT4_QRCCOMSTR"}),
         source_scanner = __qrcscanner,
         src_suffix = '$QT4_QRCSUFFIX',
         suffix = '$QT4_QRCCXXSUFFIX',
         prefix = '$QT4_QRCCXXPREFIX',
         single_source = 1)
 __ex_moc_builder = SCons.Builder.Builder(
-        action = SCons.Action.CommandGeneratorAction(__moc_generator_from_h, {}))
+        action = SCons.Action.CommandGeneratorAction(__moc_generator_from_h,
+                                                  {"cmdstr":"$QT4_MOCFROMHCOMSTR"}))
 __ex_uic_builder = SCons.Builder.Builder(
         action = SCons.Action.Action('$QT4_UICCOM', '$QT4_UICCOMSTR'),
         src_suffix = '.ui')
     # Metaobject builder
     mocBld = Builder(action={}, prefix={}, suffix={})
     for h in header_extensions:
-        act = SCons.Action.CommandGeneratorAction(__moc_generator_from_h, {})    
+        act = SCons.Action.CommandGeneratorAction(__moc_generator_from_h,
+                                                  {"cmdstr":"$QT4_MOCFROMHCOMSTR"})
         mocBld.add_action(h, act)
         mocBld.prefix[h] = '$QT4_MOCHPREFIX'
         mocBld.suffix[h] = '$QT4_MOCHSUFFIX'
     for cxx in cxx_suffixes:
-        act = SCons.Action.CommandGeneratorAction(__moc_generator_from_cxx, {})    
+        act = SCons.Action.CommandGeneratorAction(__moc_generator_from_cxx,
+                                                  {"cmdstr":"$QT4_MOCFROMCXXCOMSTR"})
         mocBld.add_action(cxx, act)
         mocBld.prefix[cxx] = '$QT4_MOCCXXPREFIX'
         mocBld.suffix[cxx] = '$QT4_MOCCXXSUFFIX'
     # (Strategy #1 for qtsolutions)
     xMocBld = Builder(action={}, prefix={}, suffix={})
     for h in header_extensions:
-        act = SCons.Action.CommandGeneratorAction(__mocx_generator_from_h, {})
+        act = SCons.Action.CommandGeneratorAction(__mocx_generator_from_h,
+                                                  {"cmdstr":"$QT4_MOCXFROMHCOMSTR"})
         xMocBld.add_action(h, act)
         xMocBld.prefix[h] = '$QT4_XMOCHPREFIX'
         xMocBld.suffix[h] = '$QT4_XMOCHSUFFIX'
     for cxx in cxx_suffixes:
-        act = SCons.Action.CommandGeneratorAction(__mocx_generator_from_cxx, {})    
+        act = SCons.Action.CommandGeneratorAction(__mocx_generator_from_cxx,
+                                                  {"cmdstr":"$QT4_MOCXFROMCXXCOMSTR"})
         xMocBld.add_action(cxx, act)
         xMocBld.prefix[cxx] = '$QT4_XMOCCXXPREFIX'
         xMocBld.suffix[cxx] = '$QT4_XMOCCXXSUFFIX'
     # Add the Qrc4 action to the CXX file builder (registers the
     # *.qrc extension with the Environment)     
     cfile_builder, cxxfile_builder = SCons.Tool.createCFileBuilders(env)
-    qrc_act = SCons.Action.CommandGeneratorAction(__qrc_generator, {})
+    qrc_act = SCons.Action.CommandGeneratorAction(__qrc_generator,
+                                                  {"cmdstr":"$QT4_QRCCOMSTR"})
     cxxfile_builder.add_action('$QT4_QRCSUFFIX', qrc_act)    
     cxxfile_builder.add_emitter('$QT4_QRCSUFFIX', __qrc_emitter)