diff options
author | Geoff Lang <geofflang@chromium.org> | 2013-10-08 16:42:47 -0400 |
---|---|---|
committer | Geoff Lang <geofflang@chromium.org> | 2013-10-17 09:37:06 -0400 |
commit | ce1d3c482d96942961bcbdec9fb2004a0c29b496 (patch) | |
tree | 8b0024576f9945d5e39a42f595e37e7d28e98c79 /build | |
parent | 0049e43d6532a74d347bf3046f0ab4a5f5d57145 (diff) | |
download | angle-ce1d3c482d96942961bcbdec9fb2004a0c29b496.tar.gz |
Added flags to disable or enable generation of samples and test projects.
Diffstat (limited to 'build')
-rw-r--r-- | build/all.gyp | 14 | ||||
-rw-r--r-- | build/common.gypi | 2 |
2 files changed, 14 insertions, 2 deletions
diff --git a/build/all.gyp b/build/all.gyp index fc17c906..e823d7d7 100644 --- a/build/all.gyp +++ b/build/all.gyp @@ -8,9 +8,19 @@ 'target_name': 'all', 'type': 'none', 'dependencies': [ - '../samples/samples.gyp:*', '../src/angle.gyp:*', - '../tests/tests.gyp:*', + ], + 'conditions': [ + ['angle_build_samples==1', { + 'dependencies': [ + '../samples/samples.gyp:*', + ], + }], + ['angle_build_tests==1', { + 'dependencies': [ + '../tests/tests.gyp:*', + ], + }], ], }, ], diff --git a/build/common.gypi b/build/common.gypi index 11335ec4..55f3208a 100644 --- a/build/common.gypi +++ b/build/common.gypi @@ -5,6 +5,8 @@ { 'variables': { 'component%': 'static_library', + 'angle_build_tests%': '1', + 'angle_build_samples%': '1', # angle_code is set to 1 for the core ANGLE targets defined in src/build_angle.gyp. # angle_code is set to 0 for test code, sample code, and third party code. # When angle_code is 1, we build with additional warning flags on Mac and Linux. |