On 04/07/2014 11:34 AM, Denis Shienkov wrote:
yes, of course, please see a simple project from attachment

Looks good to me and works here (meaning that the rule is executed). I have attached a diff with small corrections, but the errors fixed by them have nothing to do with the problem you described. Are you sure that nothing happens when you invoke qbs on your project? Have you tried removing the build dir?


Christian


Denis


2014-04-07 12:21 GMT+04:00 Christian Kandeler
<christian.kande...@digia.com <mailto:christian.kande...@digia.com>>:

    On 04/05/2014 11:02 AM, Denis Shienkov wrote:
     > this does not help, still nothing...

    Can you put/paste your project somewhere? Possibly stripped down if it's
    too big, but still self-contained. I could take a closer look then.


    Christian

     > 04.04.2014 18:59, Christian Kandeler пишет:
     >> On 04/04/2014 04:43 PM, Denis Shienkov wrote:
     >> [ ... ]
     >>> and then in my project file I to do:
     >>>
     >>> import qbs.base 1.0
     >>>
     >>>
     >>> DynamicLibrary  {
     >>>       name:  "foo"
     >>>           ...
     >>>           ...
     >>>       Depends  {  name:  "wpp"  }
     >>>           ...
     >>>           ...
     >>>       files:  [
     >>>           "bar.cpp",
     >>>       ]
     >>> }
     >>>
     >>>
     >>> But in my case this does not work, the command do not called..
    What I to
     >>> do wrong?
     >> You haven't told qbs that the artifact created by the rule in
    the wpp
     >> module is required to build your product. Add this to your
    module item:
     >>       additionalProductTypes: "tmh"
     >>
     >>
     >> Christian
     >> _______________________________________________
     >> QBS mailing list
     >> QBS@qt-project.org <mailto:QBS@qt-project.org>
     >> http://lists.qt-project.org/mailman/listinfo/qbs
     >

    _______________________________________________
    QBS mailing list
    QBS@qt-project.org <mailto:QBS@qt-project.org>
    http://lists.qt-project.org/mailman/listinfo/qbs


                
--- qbs/modules/wpp/wpp.qbs     2014-04-07 13:23:30.000000000 +0200
+++ qbs/modules/wpp/wpp.qbs     2014-04-07 12:24:47.801135113 +0200
@@ -11,7 +11,7 @@
     Rule {
         inputs: ["cpp"]
         Artifact {
-            fileName: ModUtils.moduleProperty(product, 
"wppTraceModuleHeadersDir")
+            fileName: product.moduleProperty("wpp", "wppTraceModuleHeadersDir")
                       + '/' + input.completeBaseName + ".tmh"
             fileTags: ["tmh"]
         }
@@ -21,9 +21,9 @@
             var wpp_exe = "c:/Program Files/Windows 
Kits/8.0/bin/x86/tracewpp.exe";
             var wpp_cfg_dir = "c:/Program Files/Windows 
Kits/8.0/bin/WppConfig/Rev1";
 
-            var args = input.fileName;
+            var args = [input.filePath];
             args.push("-cfgdir:" + wpp_cfg_dir);
-            args.push("-odir:" + ModUtils.moduleProperty(product, 
"wppTraceModuleHeadersDir"));
+            args.push("-odir:" + product.moduleProperty("wpp", 
"wppTraceModuleHeadersDir"));
             var cmd = new Command(wpp_exe, args);
             cmd.description = "generating WPP " + output.fileName + " file";
             cmd.highlight = "filegen";
_______________________________________________
QBS mailing list
QBS@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qbs

Reply via email to