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 # 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': { | 9 'variables': { |
10 # .gyp files should set chromium_code to 1 if they build Chromium-specific | 10 # .gyp files should set chromium_code to 1 if they build Chromium-specific |
(...skipping 30 matching lines...) Expand all Loading... |
41 [ 'OS=="linux"', { | 41 [ 'OS=="linux"', { |
42 # This handles the Linux platforms we generally deal with. Anything | 42 # This handles the Linux platforms we generally deal with. Anything |
43 # else gets passed through, which probably won't work very well; such | 43 # else gets passed through, which probably won't work very well; such |
44 # hosts should pass an explicit target_arch to gyp. | 44 # hosts should pass an explicit target_arch to gyp. |
45 'target_arch%': | 45 'target_arch%': |
46 '<!(uname -m | sed -e "s/i.86/ia32/;s/x86_64/x64/;s/arm.*/arm/")', | 46 '<!(uname -m | sed -e "s/i.86/ia32/;s/x86_64/x64/;s/arm.*/arm/")', |
47 | 47 |
48 }, { # OS!="linux" | 48 }, { # OS!="linux" |
49 'target_arch%': 'ia32', | 49 'target_arch%': 'ia32', |
50 }], | 50 }], |
51 [ 'OS=="mac"', { | |
52 # For now, only Linux and Windows use spellcheck in the renderer. | |
53 'spellchecker_in_renderer%': 0, | |
54 }, { # OS!="mac" | |
55 'spellchecker_in_renderer%': 1, | |
56 }], | |
57 ], | 51 ], |
58 | 52 |
59 # We do want to build Chromium with Breakpad support in certain | 53 # We do want to build Chromium with Breakpad support in certain |
60 # situations. I.e. for Chrome bot. | 54 # situations. I.e. for Chrome bot. |
61 'linux_chromium_breakpad%': 0, | 55 'linux_chromium_breakpad%': 0, |
62 # And if we want to dump symbols. | 56 # And if we want to dump symbols. |
63 'linux_chromium_dump_symbols%': 0, | 57 'linux_chromium_dump_symbols%': 0, |
64 # Also see linux_strip_binary below. | 58 # Also see linux_strip_binary below. |
65 | 59 |
66 # By default, Linux does not use views. To turn on views in Linux, | 60 # By default, Linux does not use views. To turn on views in Linux, |
(...skipping 12 matching lines...) Expand all Loading... |
79 # Set to 1 to enable fast builds. It disables debug info for fastest | 73 # Set to 1 to enable fast builds. It disables debug info for fastest |
80 # compilation. | 74 # compilation. |
81 'fastbuild%': 0, | 75 'fastbuild%': 0, |
82 }, | 76 }, |
83 | 77 |
84 # Define branding and buildtype on the basis of their settings within the | 78 # Define branding and buildtype on the basis of their settings within the |
85 # variables sub-dict above, unless overridden. | 79 # variables sub-dict above, unless overridden. |
86 'branding%': '<(branding)', | 80 'branding%': '<(branding)', |
87 'buildtype%': '<(buildtype)', | 81 'buildtype%': '<(buildtype)', |
88 'target_arch%': '<(target_arch)', | 82 'target_arch%': '<(target_arch)', |
89 'spellchecker_in_renderer%': '<(spellchecker_in_renderer)', | |
90 'toolkit_views%': '<(toolkit_views)', | 83 'toolkit_views%': '<(toolkit_views)', |
91 'chromeos%': '<(chromeos)', | 84 'chromeos%': '<(chromeos)', |
92 'inside_chromium_build%': '<(inside_chromium_build)', | 85 'inside_chromium_build%': '<(inside_chromium_build)', |
93 'fastbuild%': '<(fastbuild)', | 86 'fastbuild%': '<(fastbuild)', |
94 | 87 |
95 # Override chromium_mac_pch and set it to 0 to suppress the use of | 88 # Override chromium_mac_pch and set it to 0 to suppress the use of |
96 # precompiled headers on the Mac. Prefix header injection may still be | 89 # precompiled headers on the Mac. Prefix header injection may still be |
97 # used, but prefix headers will not be precompiled. This is useful when | 90 # used, but prefix headers will not be precompiled. This is useful when |
98 # using distcc to distribute a build to compile slaves that don't | 91 # using distcc to distribute a build to compile slaves that don't |
99 # share the same compiler executable as the system driving the compilation, | 92 # share the same compiler executable as the system driving the compilation, |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
302 }], | 295 }], |
303 ['chromeos==1', { | 296 ['chromeos==1', { |
304 'defines': ['CHROMEOS_TRANSITIONAL=1'], | 297 'defines': ['CHROMEOS_TRANSITIONAL=1'], |
305 }], | 298 }], |
306 ['chromeos==1 or toolkit_views==1', { | 299 ['chromeos==1 or toolkit_views==1', { |
307 'defines': ['OS_CHROMEOS=1'], | 300 'defines': ['OS_CHROMEOS=1'], |
308 }], | 301 }], |
309 ['enable_pepper==1', { | 302 ['enable_pepper==1', { |
310 'defines': ['ENABLE_PEPPER=1'], | 303 'defines': ['ENABLE_PEPPER=1'], |
311 }], | 304 }], |
312 ['spellchecker_in_renderer==1', { | |
313 'defines': ['SPELLCHECKER_IN_RENDERER=1'] | |
314 }], | |
315 ['fastbuild!=0', { | 305 ['fastbuild!=0', { |
316 'conditions': [ | 306 'conditions': [ |
317 # Finally, for Windows, we simply turn on profiling. | 307 # Finally, for Windows, we simply turn on profiling. |
318 ['OS=="win"', { | 308 ['OS=="win"', { |
319 'msvs_settings': { | 309 'msvs_settings': { |
320 'VCLinkerTool': { | 310 'VCLinkerTool': { |
321 'GenerateDebugInformation': 'false', | 311 'GenerateDebugInformation': 'false', |
322 }, | 312 }, |
323 'VCCLCompilerTool': { | 313 'VCCLCompilerTool': { |
324 'DebugInformationFormat': '0', | 314 'DebugInformationFormat': '0', |
(...skipping 654 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
979 # and therefore SYMROOT, needs to be set at the project level. | 969 # and therefore SYMROOT, needs to be set at the project level. |
980 'SYMROOT': '<(DEPTH)/xcodebuild', | 970 'SYMROOT': '<(DEPTH)/xcodebuild', |
981 }, | 971 }, |
982 } | 972 } |
983 | 973 |
984 # Local Variables: | 974 # Local Variables: |
985 # tab-width:2 | 975 # tab-width:2 |
986 # indent-tabs-mode:nil | 976 # indent-tabs-mode:nil |
987 # End: | 977 # End: |
988 # vim: set expandtab tabstop=2 shiftwidth=2: | 978 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |