Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(273)

Side by Side Diff: build/common.gypi

Issue 6250070: Added command line switches and UI (controlled via a build option) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Some cleanup Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 profiling build by default.
28 'profiling%': 0,
Evan Martin 2011/02/01 02:45:59 Gyp is super-confusing, but you can either ask me
DaveMoore 2011/02/01 19:21:55 Done.
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 'profiling%': '<(profiling)',
Evan Martin 2011/02/01 02:45:59 And this one...
DaveMoore 2011/02/01 19:21:55 Done.
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
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 'profiling%': '<(profiling)',
Evan Martin 2011/02/01 02:45:59 and this one...
DaveMoore 2011/02/01 19:21:55 Done.
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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 'branding%': '<(branding)', 164 'branding%': '<(branding)',
160 'buildtype%': '<(buildtype)', 165 'buildtype%': '<(buildtype)',
161 'target_arch%': '<(target_arch)', 166 'target_arch%': '<(target_arch)',
162 'host_arch%': '<(host_arch)', 167 'host_arch%': '<(host_arch)',
163 'toolkit_views%': '<(toolkit_views)', 168 'toolkit_views%': '<(toolkit_views)',
164 'use_gnome_keyring%': '<(use_gnome_keyring)', 169 'use_gnome_keyring%': '<(use_gnome_keyring)',
165 'linux_fpic%': '<(linux_fpic)', 170 'linux_fpic%': '<(linux_fpic)',
166 'enable_flapper_hacks%': '<(enable_flapper_hacks)', 171 'enable_flapper_hacks%': '<(enable_flapper_hacks)',
167 'chromeos%': '<(chromeos)', 172 'chromeos%': '<(chromeos)',
168 'touchui%': '<(touchui)', 173 'touchui%': '<(touchui)',
174 'profiling%': '<(profiling)',
Evan Martin 2011/02/01 02:45:59 And then move this one a bit lower, where you'll s
DaveMoore 2011/02/01 19:21:55 Done.
169 'inside_chromium_build%': '<(inside_chromium_build)', 175 'inside_chromium_build%': '<(inside_chromium_build)',
170 'fastbuild%': '<(fastbuild)', 176 'fastbuild%': '<(fastbuild)',
171 'python_ver%': '<(python_ver)', 177 'python_ver%': '<(python_ver)',
172 'armv7%': '<(armv7)', 178 'armv7%': '<(armv7)',
173 'arm_neon%': '<(arm_neon)', 179 'arm_neon%': '<(arm_neon)',
174 'sysroot%': '<(sysroot)', 180 'sysroot%': '<(sysroot)',
175 'disable_sse2%': '<(disable_sse2)', 181 'disable_sse2%': '<(disable_sse2)',
176 'library%': '<(library)', 182 'library%': '<(library)',
177 'component%': '<(component)', 183 'component%': '<(component)',
178 'use_titlecase_in_grd_files%': '<(use_titlecase_in_grd_files)', 184 'use_titlecase_in_grd_files%': '<(use_titlecase_in_grd_files)',
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
529 }], 535 }],
530 ['toolkit_views==1', { 536 ['toolkit_views==1', {
531 'defines': ['TOOLKIT_VIEWS=1'], 537 'defines': ['TOOLKIT_VIEWS=1'],
532 }], 538 }],
533 ['chromeos==1', { 539 ['chromeos==1', {
534 'defines': ['OS_CHROMEOS=1'], 540 'defines': ['OS_CHROMEOS=1'],
535 }], 541 }],
536 ['touchui==1', { 542 ['touchui==1', {
537 'defines': ['TOUCH_UI=1'], 543 'defines': ['TOUCH_UI=1'],
538 }], 544 }],
545 ['profiling==1', {
546 'defines': ['ENABLE_PROFILING=1'],
547 }],
539 ['remoting==1', { 548 ['remoting==1', {
540 'defines': ['ENABLE_REMOTING=1'], 549 'defines': ['ENABLE_REMOTING=1'],
541 }], 550 }],
542 ['proprietary_codecs==1', { 551 ['proprietary_codecs==1', {
543 'defines': ['USE_PROPRIETARY_CODECS'], 552 'defines': ['USE_PROPRIETARY_CODECS'],
544 }], 553 }],
545 ['enable_flapper_hacks==1', { 554 ['enable_flapper_hacks==1', {
546 'defines': ['ENABLE_FLAPPER_HACKS=1'], 555 'defines': ['ENABLE_FLAPPER_HACKS=1'],
547 }], 556 }],
548 ['fastbuild!=0', { 557 ['fastbuild!=0', {
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after
1007 ['no_gc_sections==0', { 1016 ['no_gc_sections==0', {
1008 'ldflags': [ 1017 'ldflags': [
1009 '-Wl,--gc-sections', 1018 '-Wl,--gc-sections',
1010 ], 1019 ],
1011 }], 1020 }],
1012 ['clang==1', { 1021 ['clang==1', {
1013 'cflags!': [ 1022 'cflags!': [
1014 '-fno-ident', 1023 '-fno-ident',
1015 ], 1024 ],
1016 }], 1025 }],
1026 ['profiling==1', {
1027 'cflags': [
1028 '-fno-omit-frame-pointer',
1029 '-g',
1030 ],
1031 }],
1017 ] 1032 ]
1018 }, 1033 },
1019 }, 1034 },
1020 'variants': { 1035 'variants': {
1021 'coverage': { 1036 'coverage': {
1022 'cflags': ['-fprofile-arcs', '-ftest-coverage'], 1037 'cflags': ['-fprofile-arcs', '-ftest-coverage'],
1023 'ldflags': ['-fprofile-arcs'], 1038 'ldflags': ['-fprofile-arcs'],
1024 }, 1039 },
1025 'profile': { 1040 'profile': {
1026 'cflags': ['-pg', '-g'], 1041 'cflags': ['-pg', '-g'],
(...skipping 510 matching lines...) Expand 10 before | Expand all | Expand 10 after
1537 # and therefore SYMROOT, needs to be set at the project level. 1552 # and therefore SYMROOT, needs to be set at the project level.
1538 'SYMROOT': '<(DEPTH)/xcodebuild', 1553 'SYMROOT': '<(DEPTH)/xcodebuild',
1539 }, 1554 },
1540 } 1555 }
1541 1556
1542 # Local Variables: 1557 # Local Variables:
1543 # tab-width:2 1558 # tab-width:2
1544 # indent-tabs-mode:nil 1559 # indent-tabs-mode:nil
1545 # End: 1560 # End:
1546 # vim: set expandtab tabstop=2 shiftwidth=2: 1561 # vim: set expandtab tabstop=2 shiftwidth=2:
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698