OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 # IMPORTANT: | 5 # IMPORTANT: |
6 # Please don't directly include this file if you are building via gyp_chromium, | 6 # Please don't directly include this file if you are building via gyp_chromium, |
7 # since gyp_chromium is automatically forcing its inclusion. | 7 # since gyp_chromium is automatically forcing its inclusion. |
8 { | 8 { |
9 # Variables expected to be overriden on the GYP command line (-D) or by | 9 # Variables expected to be overriden on the GYP command line (-D) or by |
10 # ~/.gyp/include.gypi. | 10 # ~/.gyp/include.gypi. |
(...skipping 18 matching lines...) Expand all Loading... |
29 | 29 |
30 # Whether or not we are building the Ash shell. | 30 # Whether or not we are building the Ash shell. |
31 'use_ash%': 0, | 31 'use_ash%': 0, |
32 | 32 |
33 # Whether or not we are using CRAS, the ChromeOS Audio Server. | 33 # Whether or not we are using CRAS, the ChromeOS Audio Server. |
34 'use_cras%': 0, | 34 'use_cras%': 0, |
35 | 35 |
36 # Use a raw surface abstraction. | 36 # Use a raw surface abstraction. |
37 'use_ozone%': 0, | 37 'use_ozone%': 0, |
38 | 38 |
| 39 # By default we build against a stable sysroot image to avoid |
| 40 # depending on the packages installed on the local machine. Set this |
| 41 # to 0 to build against locally installed headers and libraries (e.g
. |
| 42 # if packaging for a linux distro) |
| 43 'use_sysroot%': 1, |
| 44 |
39 # Configure the build for small devices. See crbug.com/318413 | 45 # Configure the build for small devices. See crbug.com/318413 |
40 'embedded%': 0, | 46 'embedded%': 0, |
41 | 47 |
42 'conditions': [ | 48 'conditions': [ |
43 # Compute the architecture that we're building on. | 49 # Compute the architecture that we're building on. |
44 ['OS=="win" or OS=="ios"', { | 50 ['OS=="win" or OS=="ios"', { |
45 'host_arch%': 'ia32', | 51 'host_arch%': 'ia32', |
46 }, { | 52 }, { |
47 'host_arch%': '<!pymod_do_main(detect_host_arch)', | 53 'host_arch%': '<!pymod_do_main(detect_host_arch)', |
48 }], | 54 }], |
49 ], | 55 ], |
50 }, | 56 }, |
51 # Copy conditionally-set variables out one scope. | 57 # Copy conditionally-set variables out one scope. |
52 'chromeos%': '<(chromeos)', | 58 'chromeos%': '<(chromeos)', |
53 'chromecast%': '<(chromecast)', | 59 'chromecast%': '<(chromecast)', |
54 'use_aura%': '<(use_aura)', | 60 'use_aura%': '<(use_aura)', |
55 'use_ash%': '<(use_ash)', | 61 'use_ash%': '<(use_ash)', |
56 'use_cras%': '<(use_cras)', | 62 'use_cras%': '<(use_cras)', |
57 'use_ozone%': '<(use_ozone)', | 63 'use_ozone%': '<(use_ozone)', |
58 'embedded%': '<(embedded)', | 64 'embedded%': '<(embedded)', |
59 'host_arch%': '<(host_arch)', | 65 'host_arch%': '<(host_arch)', |
| 66 'use_sysroot%': '<(use_sysroot)', |
60 | 67 |
61 # Whether we are using Views Toolkit | 68 # Whether we are using Views Toolkit |
62 'toolkit_views%': 0, | 69 'toolkit_views%': 0, |
63 | 70 |
64 # Use the PCI lib to collect GPU information. | 71 # Use the PCI lib to collect GPU information. |
65 'use_libpci%': 1, | 72 'use_libpci%': 1, |
66 | 73 |
67 # Use OpenSSL instead of NSS as the underlying SSL and crypto | 74 # Use OpenSSL instead of NSS as the underlying SSL and crypto |
68 # implementation. Certificate verification will in most cases be | 75 # implementation. Certificate verification will in most cases be |
69 # handled by the OS. If OpenSSL's struct X509 is used to represent | 76 # handled by the OS. If OpenSSL's struct X509 is used to represent |
(...skipping 11 matching lines...) Expand all Loading... |
81 | 88 |
82 # Enable HiDPI support. | 89 # Enable HiDPI support. |
83 'enable_hidpi%': 0, | 90 'enable_hidpi%': 0, |
84 | 91 |
85 # Enable top chrome material design. | 92 # Enable top chrome material design. |
86 'enable_topchrome_md%' : 0, | 93 'enable_topchrome_md%' : 0, |
87 | 94 |
88 # Enable Wayland display server support. | 95 # Enable Wayland display server support. |
89 'enable_wayland_server%' : 0, | 96 'enable_wayland_server%' : 0, |
90 | 97 |
91 # By default we build against a stable sysroot image to avoid | 98 # Set this to true when building with Clang. |
92 # depending on the packages installed on the local machine. Set this | 99 # See http://code.google.com/p/chromium/wiki/Clang for details. |
93 # to 0 to build against locally installed headers and libraries (e.g. | 100 # If this is set, clang is used as both host and target compiler in |
94 # if packaging for a linux distro) | 101 # cross-compile builds. |
95 'use_sysroot%': 1, | 102 'clang%': 0, |
96 | 103 |
97 # Override buildtype to select the desired build flavor. | 104 # Override buildtype to select the desired build flavor. |
98 # Dev - everyday build for development/testing | 105 # Dev - everyday build for development/testing |
99 # Official - release build (generally implies additional processing) | 106 # Official - release build (generally implies additional processing) |
100 # TODO(mmoss) Once 'buildtype' is fully supported (e.g. Windows gyp | 107 # TODO(mmoss) Once 'buildtype' is fully supported (e.g. Windows gyp |
101 # conversion is done), some of the things which are now controlled by | 108 # conversion is done), some of the things which are now controlled by |
102 # 'branding', such as symbol generation, will need to be refactored | 109 # 'branding', such as symbol generation, will need to be refactored |
103 # based on 'buildtype' (i.e. we don't care about saving symbols for | 110 # based on 'buildtype' (i.e. we don't care about saving symbols for |
104 # non-Official # builds). | 111 # non-Official # builds). |
105 'buildtype%': 'Dev', | 112 'buildtype%': 'Dev', |
106 | 113 |
107 # Override branding to select the desired branding flavor. | 114 # Override branding to select the desired branding flavor. |
108 'branding%': 'Chromium', | 115 'branding%': 'Chromium', |
109 | 116 |
110 'conditions': [ | 117 'conditions': [ |
111 # Windows and Linux (including Chrome OS) use Aura and Ash. | 118 # Windows and Linux (including Chrome OS) use Aura and Ash. |
112 ['OS=="win" or OS=="linux"', { | 119 ['OS=="win" or OS=="linux"', { |
113 'use_ash%': 1, | 120 'use_ash%': 1, |
114 'use_aura%': 1, | 121 'use_aura%': 1, |
115 }], | 122 }], |
116 | 123 |
| 124 # Turn off use_sysroot when clang build is disabled. |
| 125 # System headers for gcc > 4.6 aren't available at sysroot location. |
| 126 # If clang build is disabled and gcc > 4.6, ToT builds fail. |
| 127 # https://code.google.com/p/chromium/issues/detail?id=504446#c17 |
| 128 # TODO(kphanee): Can we check for gcc_version here somehow? |
| 129 ['use_sysroot==1 and clang==0', { |
| 130 'use_sysroot%': 0, |
| 131 }], |
| 132 |
117 ['chromecast==1', { | 133 ['chromecast==1', { |
118 'use_libpci': 0, | 134 'use_libpci': 0, |
119 'conditions': [ | 135 'conditions': [ |
120 ['OS!="android"', { | 136 ['OS!="android"', { |
121 'embedded%': 1, | 137 'embedded%': 1, |
122 'use_ozone%': 1, | 138 'use_ozone%': 1, |
123 }], | 139 }], |
124 ], | 140 ], |
125 }], | 141 }], |
126 | 142 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 'use_openssl_certs%': '<(use_openssl_certs)', | 180 'use_openssl_certs%': '<(use_openssl_certs)', |
165 'enable_viewport%': '<(enable_viewport)', | 181 'enable_viewport%': '<(enable_viewport)', |
166 'enable_hidpi%': '<(enable_hidpi)', | 182 'enable_hidpi%': '<(enable_hidpi)', |
167 'enable_topchrome_md%': '<(enable_topchrome_md)', | 183 'enable_topchrome_md%': '<(enable_topchrome_md)', |
168 'enable_wayland_server%': '<(enable_wayland_server)', | 184 'enable_wayland_server%': '<(enable_wayland_server)', |
169 'buildtype%': '<(buildtype)', | 185 'buildtype%': '<(buildtype)', |
170 'branding%': '<(branding)', | 186 'branding%': '<(branding)', |
171 'branding_path_component%': '<(branding)', | 187 'branding_path_component%': '<(branding)', |
172 'host_arch%': '<(host_arch)', | 188 'host_arch%': '<(host_arch)', |
173 'target_arch%': '<(target_arch)', | 189 'target_arch%': '<(target_arch)', |
| 190 'clang%': '<(clang)', |
174 | 191 |
175 'target_subarch%': '', | 192 'target_subarch%': '', |
176 | 193 |
177 # The channel to build on Android: stable, beta, dev, canary, or | 194 # The channel to build on Android: stable, beta, dev, canary, or |
178 # default. "default" should be used on non-official builds. | 195 # default. "default" should be used on non-official builds. |
179 'android_channel%': 'default', | 196 'android_channel%': 'default', |
180 | 197 |
181 # Set ARM architecture version. | 198 # Set ARM architecture version. |
182 'arm_version%': 7, | 199 'arm_version%': 7, |
183 | 200 |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
348 'enable_wayland_server%': '<(enable_wayland_server)', | 365 'enable_wayland_server%': '<(enable_wayland_server)', |
349 'android_channel%': '<(android_channel)', | 366 'android_channel%': '<(android_channel)', |
350 'use_goma%': '<(use_goma)', | 367 'use_goma%': '<(use_goma)', |
351 'gomadir%': '<(gomadir)', | 368 'gomadir%': '<(gomadir)', |
352 'enable_app_list%': '<(enable_app_list)', | 369 'enable_app_list%': '<(enable_app_list)', |
353 'use_default_render_theme%': '<(use_default_render_theme)', | 370 'use_default_render_theme%': '<(use_default_render_theme)', |
354 'buildtype%': '<(buildtype)', | 371 'buildtype%': '<(buildtype)', |
355 'branding%': '<(branding)', | 372 'branding%': '<(branding)', |
356 'branding_path_component%': '<(branding_path_component)', | 373 'branding_path_component%': '<(branding_path_component)', |
357 'arm_version%': '<(arm_version)', | 374 'arm_version%': '<(arm_version)', |
| 375 'clang%': '<(clang)', |
358 'sysroot%': '<(sysroot)', | 376 'sysroot%': '<(sysroot)', |
359 'chroot_cmd%': '<(chroot_cmd)', | 377 'chroot_cmd%': '<(chroot_cmd)', |
360 'system_libdir%': '<(system_libdir)', | 378 'system_libdir%': '<(system_libdir)', |
361 | 379 |
362 # Set to 1 to enable fast builds. Set to 2 for even faster builds | 380 # Set to 1 to enable fast builds. Set to 2 for even faster builds |
363 # (it disables debug info for fastest compilation - only for use | 381 # (it disables debug info for fastest compilation - only for use |
364 # on compile-only bots). | 382 # on compile-only bots). |
365 'fastbuild%': 0, | 383 'fastbuild%': 0, |
366 | 384 |
367 # Set to 1 to not store any build metadata, e.g. ifdef out all __DATE__ | 385 # Set to 1 to not store any build metadata, e.g. ifdef out all __DATE__ |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
618 # (disabled) in ~/.gyp/include.gypi or via the GYP command line. | 636 # (disabled) in ~/.gyp/include.gypi or via the GYP command line. |
619 # This setting will override the default. | 637 # This setting will override the default. |
620 # | 638 # |
621 # See | 639 # See |
622 # http://code.google.com/p/chromium/wiki/WindowsPrecompiledHeaders | 640 # http://code.google.com/p/chromium/wiki/WindowsPrecompiledHeaders |
623 # for details. | 641 # for details. |
624 'chromium_win_pch%': 0, | 642 'chromium_win_pch%': 0, |
625 | 643 |
626 # Clang stuff. | 644 # Clang stuff. |
627 'make_clang_dir%': 'third_party/llvm-build/Release+Asserts', | 645 'make_clang_dir%': 'third_party/llvm-build/Release+Asserts', |
628 # Set this to true when building with Clang. | |
629 # See http://code.google.com/p/chromium/wiki/Clang for details. | |
630 # If this is set, clang is used as both host and target compiler in | |
631 # cross-compile builds. | |
632 'clang%': 0, | |
633 | 646 |
634 # Use experimental lld linker instead of the platform's default linker. | 647 # Use experimental lld linker instead of the platform's default linker. |
635 'use_lld%': 0, | 648 'use_lld%': 0, |
636 | 649 |
637 # Enable plugin installation by default. | 650 # Enable plugin installation by default. |
638 'enable_plugin_installation%': 1, | 651 'enable_plugin_installation%': 1, |
639 | 652 |
640 # Specifies whether to use canvas_skia.cc in place of platform | 653 # Specifies whether to use canvas_skia.cc in place of platform |
641 # specific implementations of gfx::Canvas. Affects text drawing in the | 654 # specific implementations of gfx::Canvas. Affects text drawing in the |
642 # Chrome UI. | 655 # Chrome UI. |
(...skipping 5728 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6371 # settings in target dicts. SYMROOT is a special case, because many other | 6384 # settings in target dicts. SYMROOT is a special case, because many other |
6372 # Xcode variables depend on it, including variables such as | 6385 # Xcode variables depend on it, including variables such as |
6373 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 6386 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
6374 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 6387 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
6375 # files to appear (when present) in the UI as actual files and not red | 6388 # files to appear (when present) in the UI as actual files and not red |
6376 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 6389 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
6377 # and therefore SYMROOT, needs to be set at the project level. | 6390 # and therefore SYMROOT, needs to be set at the project level. |
6378 'SYMROOT': '<(DEPTH)/xcodebuild', | 6391 'SYMROOT': '<(DEPTH)/xcodebuild', |
6379 }, | 6392 }, |
6380 } | 6393 } |
OLD | NEW |