Indeed, there are two things to consider here:

- The generate.py wrapper script tries to find the 'real' generator
script, located in the SDK's tool/bin path. This can currently not be
influenced by a -m option on the command line, and the bug you mention
in your other mail is exactly about that. Also, generate.py's
capabilities to extract QOOXDOO_PATH from config.json are limited, so
that might not succeed in any situation.

So you cannot currently change the *tool* side of the generation using -m.

- The other thing are the framework classes and resource used during
generation. These *can* be changed with -m QOOXDOO_PATH. So you might
end up mixing the tool chain from one qooxdoo version with the framework
resources of another, and whether this works or not depends entirely on
the particular combination of versions.

I gather from your description that you are trying to compile the same
application with different qooxdoo versions. To make sure you use a
specific version of qooxdoo consistently, you best invoke the particular
generator program directly (skipping generate.py), and passing -m
QOOXDOO_PATH for the framework resources, like

  > ../../qooxdoo-1.2.1-sdk/tool/bin/generator.py -m
QOOXDOO_PATH:../../qooxdoo-1.2.1-sdk source

HTH,
T.

On 12/01/2010 02:47 PM, marbin wrote:
> 
> Hm, I am still confused and I think we still have a problem here.
> What we want to achieve is to be able to override the QOOXDOO_PATH macro
> depending on the build environment.
> I am running the trunk version of qooxdoo and the issue with ":" in the path
> is indeed fixed.
> However, the generate script still seems to rely on the path defined in
> config.json:
> 
> C:\temp\qx\demo2>generate.py -m QOOXDOO_PATH:c:/work/qooxdoo_trunk
> Cannot find real generator script under:
> "C:\temp\qx\demo2\QOOXDOO_PATH_FROM_CONFIG.JSON\tool\bin\generator.py";
> aborting
> 
>>From my config.json:
> ..
>  "let" :
>   {
>     "APPLICATION"  : "demo2",
>     "QOOXDOO_PATH" : "QOOXDOO_PATH_FROM_CONFIG.JSON",
>  ..
> 
> Am I missing something?

------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to