OLD | NEW |
1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 { | 5 { |
6 'variables': { | 6 'variables': { |
7 'antlrdir': 'third_party/antlr3', | 7 'antlrdir': 'third_party/antlr3', |
8 'breakpaddir': 'breakpad/src', | 8 'breakpaddir': 'breakpad/src', |
9 'fcolladadir': 'third_party/fcollada/files', | 9 'fcolladadir': 'third_party/fcollada/files', |
10 'glewdir': 'third_party/glew/files', | 10 'glewdir': 'third_party/glew/files', |
11 'gtestdir': 'testing/gtest/include', | 11 'gtestdir': 'testing/gtest/include', |
12 'internaldir':'o3d-internal', | 12 'internaldir':'o3d-internal', |
13 'jpegdir': 'third_party/libjpeg', | 13 'jpegdir': 'third_party/libjpeg', |
14 'nacldir': 'third_party/native_client/googleclient', | 14 'nacldir': 'third_party/native_client/googleclient', |
15 'nixysadir': 'o3d/third_party/nixysa', | 15 'nixysadir': 'o3d/third_party/nixysa', |
16 'npapidir': 'o3d/third_party/npapi', | 16 'npapidir': 'o3d/third_party/npapi', |
17 'pdiffdir': 'third_party/pdiff/files', | 17 'pdiffdir': 'third_party/pdiff/files', |
18 'pngdir': 'third_party/libpng', | 18 'pngdir': 'third_party/libpng', |
19 'screenshotsdir': 'o3d_assets/tests/screenshots', | 19 'screenshotsdir': 'o3d_assets/tests/screenshots', |
20 'seleniumdir': 'third_party/selenium_rc/files', | 20 'seleniumdir': 'third_party/selenium_rc/files', |
21 'skiadir': 'third_party/skia/include', | 21 'skiadir': 'third_party/skia/include', |
22 'zlibdir': 'third_party/zlib', | 22 'zlibdir': 'third_party/zlib', |
23 # If the DEPS file exists two levels up, then we're in a Chrome tree. | 23 |
24 'o3d_in_chrome%': '<!(python <(DEPTH)/o3d/build/file_exists.py <(DEPTH)/DEPS
)', | 24 # Hack to ensure that these variables (specifically "renderer" and |
| 25 # "cb_service") are available later in the file. Long term solution is late |
| 26 # evaluation of variables. |
| 27 'variables': { |
| 28 # If the DEPS file exists two levels up, then we're in a Chrome tree. |
| 29 'o3d_in_chrome%': '<!(python <(DEPTH)/o3d/build/file_exists.py <(DEPTH)/DE
PS)', |
| 30 'conditions' : [ |
| 31 # These have to come first because GYP doesn't like it when |
| 32 # they're part of the same conditional as a conditions clause that |
| 33 # uses them. |
| 34 ['OS == "win"', |
| 35 { |
| 36 'cgdir': 'third_party/cg/files/win', |
| 37 'renderer%': 'd3d9', |
| 38 'cb_service%': 'none', |
| 39 'swiftshaderdir': 'o3d-internal/third_party/swiftshader/files', |
| 40 }, |
| 41 ], |
| 42 ['OS == "mac"', |
| 43 { |
| 44 'cgdir': 'third_party/cg/files/mac', |
| 45 'renderer%': 'gl', |
| 46 'cb_service%': 'none', |
| 47 'swiftshaderdir': '', |
| 48 }, |
| 49 ], |
| 50 ['OS == "linux"', |
| 51 { |
| 52 'cgdir': 'third_party/cg/files/linux', |
| 53 'renderer%': 'gl', |
| 54 'cb_service%': 'none', |
| 55 'swiftshaderdir': '', |
| 56 }, |
| 57 ], |
| 58 ], |
| 59 }, |
| 60 'o3d_in_chrome%': '<(o3d_in_chrome)', |
| 61 'renderer%': '<(renderer)', |
| 62 'cgdir%': '<(cgdir)', |
| 63 'swiftshaderdir%': '<(swiftshaderdir)', |
| 64 'cb_service%': '<(cb_service)', |
| 65 |
25 # We default to building everything only if the assets exist. | 66 # We default to building everything only if the assets exist. |
26 # (and the teapot is the least likely asset to change). | 67 # (and the teapot is the least likely asset to change). |
27 # This is so that chrome developers get a much reduced dependency set. | 68 # This is so that chrome developers get a much reduced dependency set. |
28 'o3d_developer%': '<!(python <(DEPTH)/o3d/build/file_exists.py ' | 69 'o3d_developer%': '<!(python <(DEPTH)/o3d/build/file_exists.py ' |
29 '<(DEPTH)/o3d/o3d_assets/samples/convert_assets/teapot.zip
)', | 70 '<(DEPTH)/o3d/o3d_assets/samples/convert_assets/teapot.zip
)', |
30 'selenium_screenshots%': 0, | 71 'selenium_screenshots%': 0, |
31 'cb_service%': 'none', | 72 |
32 'conditions' : [ | 73 'conditions' : [ |
33 # These have to come first because GYP doesn't like it when | 74 ['o3d_in_chrome == "True"', |
34 # they're part of the same conditional as a conditions clause that | |
35 # uses them. | |
36 ['OS == "win"', | |
37 { | 75 { |
38 'cgdir': 'third_party/cg/files/win', | 76 'renderer': 'cb', |
39 'renderer%': 'd3d9', | 77 'conditions': [ |
40 'swiftshaderdir': 'o3d-internal/third_party/swiftshader/files', | 78 ['OS == "win"', |
41 }, | 79 { |
42 ], | 80 'cb_service': 'd3d9', |
43 ['OS == "mac"', | 81 }, |
44 { | 82 { |
45 'cgdir': 'third_party/cg/files/mac', | 83 'cb_service': 'gl', |
46 'renderer%': 'gl', | 84 }, |
47 }, | 85 ], |
48 ], | 86 ], |
49 ['OS == "linux"', | |
50 { | |
51 'cgdir': 'third_party/cg/files/linux', | |
52 'renderer%': 'gl', | |
53 }, | 87 }, |
54 ], | 88 ], |
55 ], | 89 ], |
56 }, | 90 }, |
57 'target_defaults': { | 91 'target_defaults': { |
58 'defines': [ | 92 'defines': [ |
59 'GYP_BUILD', # Needed to make a change in base/types.h conditional. | 93 'GYP_BUILD', # Needed to make a change in base/types.h conditional. |
60 ], | 94 ], |
61 # This needs to be in a target_conditions block in order to successfully | 95 # This needs to be in a target_conditions block in order to successfully |
62 # override the xcode_settings in ../../build/common.gypi. | 96 # override the xcode_settings in ../../build/common.gypi. |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 { | 240 { |
207 'target_defaults': { | 241 'target_defaults': { |
208 'defines': [ | 242 'defines': [ |
209 'CB_SERVICE_GL', | 243 'CB_SERVICE_GL', |
210 ], | 244 ], |
211 }, | 245 }, |
212 }, | 246 }, |
213 ], | 247 ], |
214 ], | 248 ], |
215 } | 249 } |
OLD | NEW |