OLD | NEW |
---|---|
1 # Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2010 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. |
11 'variables': { | 11 'variables': { |
12 # Putting a variables dict inside another variables dict looks kind of | 12 # Putting a variables dict inside another variables dict looks kind of |
13 # weird. This is done so that 'host_arch', 'chromeos', etc are defined as | 13 # weird. This is done so that 'host_arch', 'chromeos', etc are defined as |
14 # variables within the outer variables dict here. This is necessary | 14 # variables within the outer variables dict here. This is necessary |
15 # to get these variables defined for the conditions within this variables | 15 # to get these variables defined for the conditions within this variables |
16 # dict that operate on these variables (e.g., for setting 'toolkit_views', | 16 # dict that operate on these variables (e.g., for setting 'toolkit_views', |
17 # we need to have 'chromeos' already set). | 17 # we need to have 'chromeos' already set). |
18 'variables': { | 18 'variables': { |
19 'variables': { | 19 'variables': { |
20 'variables': { | 20 'variables': { |
21 # Whether we're building a ChromeOS build. | 21 # Whether we're building a ChromeOS build. |
22 'chromeos%': 0, | 22 'chromeos%': 0, |
23 | 23 |
24 # Disable touch support by default. | 24 # Disable touch support by default. |
25 'touchui%': 0, | 25 'touchui%': 0, |
26 | |
27 # Disable file manager component extension by default. | |
28 'file_manager_extension%': 0, | |
zel
2011/02/28 18:41:23
I wouldn't create another build flag since we alre
| |
26 }, | 29 }, |
27 # Copy conditionally-set variables out one scope. | 30 # Copy conditionally-set variables out one scope. |
28 'chromeos%': '<(chromeos)', | 31 'chromeos%': '<(chromeos)', |
29 'touchui%': '<(touchui)', | 32 'touchui%': '<(touchui)', |
33 'file_manager_extension%': '<(file_manager_extension)', | |
30 | 34 |
31 # To do a shared build on linux we need to be able to choose between | 35 # To do a shared build on linux we need to be able to choose between |
32 # type static_library and shared_library. We default to doing a static | 36 # type static_library and shared_library. We default to doing a static |
33 # build but you can override this with "gyp -Dlibrary=shared_library" | 37 # build but you can override this with "gyp -Dlibrary=shared_library" |
34 # or you can add the following line (without the #) to | 38 # or you can add the following line (without the #) to |
35 # ~/.gyp/include.gypi {'variables': {'library': 'shared_library'}} | 39 # ~/.gyp/include.gypi {'variables': {'library': 'shared_library'}} |
36 # to compile as shared by default | 40 # to compile as shared by default |
37 'library%': 'static_library', | 41 'library%': 'static_library', |
38 | 42 |
39 # Compute the architecture that we're building on. | 43 # Compute the architecture that we're building on. |
(...skipping 14 matching lines...) Expand all Loading... | |
54 'toolkit_views%': 1, | 58 'toolkit_views%': 1, |
55 }, { | 59 }, { |
56 'toolkit_views%': 0, | 60 'toolkit_views%': 0, |
57 }], | 61 }], |
58 ], | 62 ], |
59 }, | 63 }, |
60 | 64 |
61 # Copy conditionally-set variables out one scope. | 65 # Copy conditionally-set variables out one scope. |
62 'chromeos%': '<(chromeos)', | 66 'chromeos%': '<(chromeos)', |
63 'touchui%': '<(touchui)', | 67 'touchui%': '<(touchui)', |
68 'file_manager_extension%': '<(file_manager_extension)', | |
64 'host_arch%': '<(host_arch)', | 69 'host_arch%': '<(host_arch)', |
65 'library%': '<(library)', | 70 'library%': '<(library)', |
66 'toolkit_views%': '<(toolkit_views)', | 71 'toolkit_views%': '<(toolkit_views)', |
67 | 72 |
68 # Override branding to select the desired branding flavor. | 73 # Override branding to select the desired branding flavor. |
69 'branding%': 'Chromium', | 74 'branding%': 'Chromium', |
70 | 75 |
71 # Override buildtype to select the desired build flavor. | 76 # Override buildtype to select the desired build flavor. |
72 # Dev - everyday build for development/testing | 77 # Dev - everyday build for development/testing |
73 # Official - release build (generally implies additional processing) | 78 # Official - release build (generally implies additional processing) |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
169 'branding%': '<(branding)', | 174 'branding%': '<(branding)', |
170 'buildtype%': '<(buildtype)', | 175 'buildtype%': '<(buildtype)', |
171 'target_arch%': '<(target_arch)', | 176 'target_arch%': '<(target_arch)', |
172 'host_arch%': '<(host_arch)', | 177 'host_arch%': '<(host_arch)', |
173 'toolkit_views%': '<(toolkit_views)', | 178 'toolkit_views%': '<(toolkit_views)', |
174 'use_gnome_keyring%': '<(use_gnome_keyring)', | 179 'use_gnome_keyring%': '<(use_gnome_keyring)', |
175 'linux_fpic%': '<(linux_fpic)', | 180 'linux_fpic%': '<(linux_fpic)', |
176 'enable_flapper_hacks%': '<(enable_flapper_hacks)', | 181 'enable_flapper_hacks%': '<(enable_flapper_hacks)', |
177 'chromeos%': '<(chromeos)', | 182 'chromeos%': '<(chromeos)', |
178 'touchui%': '<(touchui)', | 183 'touchui%': '<(touchui)', |
184 'file_manager_extension%': '<(file_manager_extension)', | |
179 'inside_chromium_build%': '<(inside_chromium_build)', | 185 'inside_chromium_build%': '<(inside_chromium_build)', |
180 'fastbuild%': '<(fastbuild)', | 186 'fastbuild%': '<(fastbuild)', |
181 'python_ver%': '<(python_ver)', | 187 'python_ver%': '<(python_ver)', |
182 'armv7%': '<(armv7)', | 188 'armv7%': '<(armv7)', |
183 'arm_neon%': '<(arm_neon)', | 189 'arm_neon%': '<(arm_neon)', |
184 'sysroot%': '<(sysroot)', | 190 'sysroot%': '<(sysroot)', |
185 'disable_sse2%': '<(disable_sse2)', | 191 'disable_sse2%': '<(disable_sse2)', |
186 'library%': '<(library)', | 192 'library%': '<(library)', |
187 'component%': '<(component)', | 193 'component%': '<(component)', |
188 'use_titlecase_in_grd_files%': '<(use_titlecase_in_grd_files)', | 194 'use_titlecase_in_grd_files%': '<(use_titlecase_in_grd_files)', |
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
478 # Setup -D flags passed into grit. | 484 # Setup -D flags passed into grit. |
479 ['chromeos==1', { | 485 ['chromeos==1', { |
480 'grit_defines': ['-D', 'chromeos'], | 486 'grit_defines': ['-D', 'chromeos'], |
481 }], | 487 }], |
482 ['toolkit_views==1', { | 488 ['toolkit_views==1', { |
483 'grit_defines': ['-D', 'toolkit_views'], | 489 'grit_defines': ['-D', 'toolkit_views'], |
484 }], | 490 }], |
485 ['touchui==1', { | 491 ['touchui==1', { |
486 'grit_defines': ['-D', 'touchui'], | 492 'grit_defines': ['-D', 'touchui'], |
487 }], | 493 }], |
494 ['file_manager_extension==1', { | |
495 'grit_defines': ['-D', 'file_manager_extension'], | |
496 }], | |
488 ['remoting==1', { | 497 ['remoting==1', { |
489 'grit_defines': ['-D', 'remoting'], | 498 'grit_defines': ['-D', 'remoting'], |
490 }], | 499 }], |
491 ['use_titlecase_in_grd_files==1', { | 500 ['use_titlecase_in_grd_files==1', { |
492 'grit_defines': ['-D', 'use_titlecase'], | 501 'grit_defines': ['-D', 'use_titlecase'], |
493 }], | 502 }], |
494 ['use_third_party_translations==1', { | 503 ['use_third_party_translations==1', { |
495 'grit_defines': ['-D', 'use_third_party_translations'], | 504 'grit_defines': ['-D', 'use_third_party_translations'], |
496 'locales': ['ast', 'eu', 'gl', 'ka', 'ku', 'ug'], | 505 'locales': ['ast', 'eu', 'gl', 'ka', 'ku', 'ug'], |
497 }], | 506 }], |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
557 }], | 566 }], |
558 ['toolkit_views==1', { | 567 ['toolkit_views==1', { |
559 'defines': ['TOOLKIT_VIEWS=1'], | 568 'defines': ['TOOLKIT_VIEWS=1'], |
560 }], | 569 }], |
561 ['chromeos==1', { | 570 ['chromeos==1', { |
562 'defines': ['OS_CHROMEOS=1'], | 571 'defines': ['OS_CHROMEOS=1'], |
563 }], | 572 }], |
564 ['touchui==1', { | 573 ['touchui==1', { |
565 'defines': ['TOUCH_UI=1'], | 574 'defines': ['TOUCH_UI=1'], |
566 }], | 575 }], |
576 ['file_manager_extension==1', { | |
577 'defines': ['FILE_MANAGER_EXTENSION=1'], | |
578 }], | |
567 ['profiling==1', { | 579 ['profiling==1', { |
568 'defines': ['ENABLE_PROFILING=1'], | 580 'defines': ['ENABLE_PROFILING=1'], |
569 }], | 581 }], |
570 ['remoting==1', { | 582 ['remoting==1', { |
571 'defines': ['ENABLE_REMOTING=1'], | 583 'defines': ['ENABLE_REMOTING=1'], |
572 }], | 584 }], |
573 ['proprietary_codecs==1', { | 585 ['proprietary_codecs==1', { |
574 'defines': ['USE_PROPRIETARY_CODECS'], | 586 'defines': ['USE_PROPRIETARY_CODECS'], |
575 }], | 587 }], |
576 ['enable_flapper_hacks==1', { | 588 ['enable_flapper_hacks==1', { |
(...skipping 1029 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1606 # and therefore SYMROOT, needs to be set at the project level. | 1618 # and therefore SYMROOT, needs to be set at the project level. |
1607 'SYMROOT': '<(DEPTH)/xcodebuild', | 1619 'SYMROOT': '<(DEPTH)/xcodebuild', |
1608 }, | 1620 }, |
1609 } | 1621 } |
1610 | 1622 |
1611 # Local Variables: | 1623 # Local Variables: |
1612 # tab-width:2 | 1624 # tab-width:2 |
1613 # indent-tabs-mode:nil | 1625 # indent-tabs-mode:nil |
1614 # End: | 1626 # End: |
1615 # vim: set expandtab tabstop=2 shiftwidth=2: | 1627 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |