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 # .gyp files should set chromium_code to 1 if they build Chromium-specific | 7 # .gyp files should set chromium_code to 1 if they build Chromium-specific |
8 # code, as opposed to external code. This variable is used to control | 8 # code, as opposed to external code. This variable is used to control |
9 # such things as the set of warnings to enable, and whether warnings are | 9 # such things as the set of warnings to enable, and whether warnings are |
10 # treated as errors. | 10 # treated as errors. |
(...skipping 13 matching lines...) Expand all Loading... |
24 'chromium_mac_pch%': 1, | 24 'chromium_mac_pch%': 1, |
25 | 25 |
26 # Override branding to select the desired branding flavor. | 26 # Override branding to select the desired branding flavor. |
27 'branding%': 'Chromium', | 27 'branding%': 'Chromium', |
28 | 28 |
29 # Set to 1 to enable code coverage. In addition to build changes | 29 # Set to 1 to enable code coverage. In addition to build changes |
30 # (e.g. extra CFLAGS), also creates a new target in the src/chrome | 30 # (e.g. extra CFLAGS), also creates a new target in the src/chrome |
31 # project file called "coverage". | 31 # project file called "coverage". |
32 # Currently ignored on Windows. | 32 # Currently ignored on Windows. |
33 'coverage%': 0, | 33 'coverage%': 0, |
| 34 |
| 35 # To do a shared build on linux we need to be able to choose between type |
| 36 # static_library and shared_library. We default to doing a static build |
| 37 # but you can override this with "gyp -Dlibrary=shared_library" or you |
| 38 # can add the following line (without the #) to ~/.gyp/include.gypi |
| 39 # {'variables': {'library': 'shared_library'}} |
| 40 # to compile as shared by default |
| 41 'library%': 'static_library', |
34 }, | 42 }, |
35 'target_defaults': { | 43 'target_defaults': { |
36 'conditions': [ | 44 'conditions': [ |
37 ['branding=="Chrome"', { | 45 ['branding=="Chrome"', { |
38 'defines': ['GOOGLE_CHROME_BUILD'], | 46 'defines': ['GOOGLE_CHROME_BUILD'], |
39 }, { # else: branding!="Chrome" | 47 }, { # else: branding!="Chrome" |
40 'defines': ['CHROMIUM_BUILD'], | 48 'defines': ['CHROMIUM_BUILD'], |
41 }], | 49 }], |
42 ['coverage!=0', { | 50 ['coverage!=0', { |
43 'conditions': [ | 51 'conditions': [ |
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
382 # settings in target dicts. SYMROOT is a special case, because many other | 390 # settings in target dicts. SYMROOT is a special case, because many other |
383 # Xcode variables depend on it, including variables such as | 391 # Xcode variables depend on it, including variables such as |
384 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 392 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
385 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 393 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
386 # files to appear (when present) in the UI as actual files and not red | 394 # files to appear (when present) in the UI as actual files and not red |
387 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 395 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
388 # and therefore SYMROOT, needs to be set at the project level. | 396 # and therefore SYMROOT, needs to be set at the project level. |
389 'SYMROOT': '<(DEPTH)/xcodebuild', | 397 'SYMROOT': '<(DEPTH)/xcodebuild', |
390 }, | 398 }, |
391 } | 399 } |
OLD | NEW |