pvjohnson / gyp

Automatically exported from code.google.com/p/gyp
0 stars 0 forks source link

The xcode-ninja generator doesn't support --build #453

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Copy the folder test/build-option to a new temp location
2. cd to this folder
3. gyp hello.gyp -f ninja -f xcode-ninja --build=Default --depth=.

Expected:
gyp generates the project and builds it without error.

Actual:
gyp generates the ninja project and the xcode wrapper project. It then builds 
successfully with ninja, but fails when trying to (re-)build using the xcode 
wrapper:

> Building [Default]: ['xcodebuild', '-project', 'hello.xcodeproj', 
'-configuration', 'Default']
> xcodebuild: error: 'hello.xcodeproj' does not exist.

Note that the generated wrapper is called hello.ninja.xcodeproj

Notes:
I'm not sure if this is a bug or by design. One possibility to fix this is to 
check in xcode.py@PerformBuild if params.flavor == 'ninja' and adjust the 
computed filename.

cf. test/build-option/gyptest-build.py

Original issue reported on code.google.com by tobias.h...@ableton.com on 4 Sep 2014 at 2:36