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

Side by Side Diff: chrome/chrome.gyp

Issue 20550003: Move nacl_defines to build.common.gypi. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove trailing commas Created 7 years, 4 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
« no previous file with comments | « no previous file | components/nacl/nacl_defines.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 'variables': { 5 'variables': {
6 'chromium_code': 1, 6 'chromium_code': 1,
7 7
8 # Define the common dependencies that contain all the actual 8 # Define the common dependencies that contain all the actual
9 # Chromium functionality. This list gets pulled in below by 9 # Chromium functionality. This list gets pulled in below by
10 # the link of the actual chrome (or chromium) executable on 10 # the link of the actual chrome (or chromium) executable on
(...skipping 26 matching lines...) Expand all
37 'plugin', 37 'plugin',
38 'renderer', 38 'renderer',
39 'utility', 39 'utility',
40 '../content/content.gyp:content_gpu', 40 '../content/content.gyp:content_gpu',
41 '../content/content.gyp:content_ppapi_plugin', 41 '../content/content.gyp:content_ppapi_plugin',
42 '../content/content.gyp:content_worker', 42 '../content/content.gyp:content_worker',
43 '../third_party/WebKit/Source/devtools/devtools.gyp:devtools_frontend_ resources', 43 '../third_party/WebKit/Source/devtools/devtools.gyp:devtools_frontend_ resources',
44 ], 44 ],
45 }], 45 }],
46 ['OS=="win"', { 46 ['OS=="win"', {
47 'nacl_defines': [
48 'NACL_WINDOWS=1',
49 'NACL_LINUX=0',
50 'NACL_OSX=0',
51 ],
52 'platform_locale_settings_grd': 47 'platform_locale_settings_grd':
53 'app/resources/locale_settings_win.grd', 48 'app/resources/locale_settings_win.grd',
54 },], 49 },],
55 ['OS!="android" and OS!="ios"', { 50 ['OS!="android" and OS!="ios"', {
56 'chromium_browser_dependencies': [ 51 'chromium_browser_dependencies': [
57 # Android doesn't use the service process (only needed for print). 52 # Android doesn't use the service process (only needed for print).
58 'service', 53 'service',
59 ], 54 ],
60 }], 55 }],
61 ['OS=="linux"', { 56 ['OS=="linux"', {
62 'nacl_defines': [
63 'NACL_WINDOWS=0',
64 'NACL_LINUX=1',
65 'NACL_OSX=0',
66 ],
67 'conditions': [ 57 'conditions': [
68 ['chromeos==1', { 58 ['chromeos==1', {
69 'conditions': [ 59 'conditions': [
70 ['branding=="Chrome"', { 60 ['branding=="Chrome"', {
71 'platform_locale_settings_grd': 61 'platform_locale_settings_grd':
72 'app/resources/locale_settings_google_chromeos.grd', 62 'app/resources/locale_settings_google_chromeos.grd',
73 }, { # branding!=Chrome 63 }, { # branding!=Chrome
74 'platform_locale_settings_grd': 64 'platform_locale_settings_grd':
75 'app/resources/locale_settings_chromiumos.grd', 65 'app/resources/locale_settings_chromiumos.grd',
76 }], 66 }],
77 ] 67 ]
78 }, { # chromeos==0 68 }, { # chromeos==0
79 'platform_locale_settings_grd': 69 'platform_locale_settings_grd':
80 'app/resources/locale_settings_linux.grd', 70 'app/resources/locale_settings_linux.grd',
81 }], 71 }],
82 ], 72 ],
83 },], 73 },],
84 ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "linux"', { 74 ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "linux"', {
85 'platform_locale_settings_grd': 75 'platform_locale_settings_grd':
86 'app/resources/locale_settings_linux.grd', 76 'app/resources/locale_settings_linux.grd',
87 },], 77 },],
88 ['OS=="mac"', { 78 ['OS=="mac"', {
89 'tweak_info_plist_path': '../build/mac/tweak_info_plist.py', 79 'tweak_info_plist_path': '../build/mac/tweak_info_plist.py',
90 'nacl_defines': [
91 'NACL_WINDOWS=0',
92 'NACL_LINUX=0',
93 'NACL_OSX=1',
94 ],
95 'platform_locale_settings_grd': 80 'platform_locale_settings_grd':
96 'app/resources/locale_settings_mac.grd', 81 'app/resources/locale_settings_mac.grd',
97 'conditions': [ 82 'conditions': [
98 ['branding=="Chrome"', { 83 ['branding=="Chrome"', {
99 'mac_bundle_id': 'com.google.Chrome', 84 'mac_bundle_id': 'com.google.Chrome',
100 'mac_creator': 'rimZ', 85 'mac_creator': 'rimZ',
101 # The policy .grd file also needs the bundle id. 86 # The policy .grd file also needs the bundle id.
102 'grit_defines': ['-D', 'mac_bundle_id=com.google.Chrome'], 87 'grit_defines': ['-D', 'mac_bundle_id=com.google.Chrome'],
103 }, { # else: branding!="Chrome" 88 }, { # else: branding!="Chrome"
104 'mac_bundle_id': 'org.chromium.Chromium', 89 'mac_bundle_id': 'org.chromium.Chromium',
105 'mac_creator': 'Cr24', 90 'mac_creator': 'Cr24',
106 # The policy .grd file also needs the bundle id. 91 # The policy .grd file also needs the bundle id.
107 'grit_defines': ['-D', 'mac_bundle_id=org.chromium.Chromium'], 92 'grit_defines': ['-D', 'mac_bundle_id=org.chromium.Chromium'],
108 }], # branding 93 }], # branding
109 ], # conditions 94 ], # conditions
110 }], # OS=="mac" 95 }], # OS=="mac"
111 # TODO(mcgrathr): This duplicates native_client/build/common.gypi;
112 # we should figure out a way to unify the settings.
113 ['target_arch=="ia32"', {
114 'nacl_defines': [
115 'NACL_TARGET_SUBARCH=32',
116 'NACL_TARGET_ARCH=x86',
117 'NACL_BUILD_SUBARCH=32',
118 'NACL_BUILD_ARCH=x86',
119 ],
120 }],
121 ['target_arch=="x64"', {
122 'nacl_defines': [
123 'NACL_TARGET_SUBARCH=64',
124 'NACL_TARGET_ARCH=x86',
125 'NACL_BUILD_SUBARCH=64',
126 'NACL_BUILD_ARCH=x86',
127 ],
128 }],
129 ['target_arch=="arm"', {
130 'nacl_defines': [
131 'NACL_BUILD_ARCH=arm',
132 'NACL_BUILD_SUBARCH=32',
133 'NACL_TARGET_ARCH=arm',
134 'NACL_TARGET_SUBARCH=32',
135 ],
136 }],
137 ['target_arch=="mipsel"', {
138 'nacl_defines': [
139 ],
140 }],
141 ], # conditions 96 ], # conditions
142 }, # variables 97 }, # variables
143 'includes': [ 98 'includes': [
144 # Place some targets in gypi files to reduce contention on this file. 99 # Place some targets in gypi files to reduce contention on this file.
145 # By using an include, we keep everything in a single xcodeproj file. 100 # By using an include, we keep everything in a single xcodeproj file.
146 # Note on Win64 targets: targets that end with win64 be used 101 # Note on Win64 targets: targets that end with win64 be used
147 # on 64-bit Windows only. Targets that end with nacl_win64 should be used 102 # on 64-bit Windows only. Targets that end with nacl_win64 should be used
148 # by Native Client only. 103 # by Native Client only.
149 # NOTE: Most new includes should go in the OS!="ios" condition below. 104 # NOTE: Most new includes should go in the OS!="ios" condition below.
150 '../build/win_precompile.gypi', 105 '../build/win_precompile.gypi',
151 'chrome_browser.gypi', 106 'chrome_browser.gypi',
152 'chrome_browser_ui.gypi', 107 'chrome_browser_ui.gypi',
153 'chrome_common.gypi', 108 'chrome_common.gypi',
154 'chrome_installer_util.gypi', 109 'chrome_installer_util.gypi',
155 'chrome_tests_unit.gypi', 110 'chrome_tests_unit.gypi',
156 'version.gypi', 111 'version.gypi',
112 '../components/nacl/nacl_defines.gypi',
157 ], 113 ],
158 'conditions': [ 114 'conditions': [
159 ['OS!="ios"', { 115 ['OS!="ios"', {
160 'includes': [ 116 'includes': [
161 'app/policy/policy_templates.gypi', 117 'app/policy/policy_templates.gypi',
162 'chrome_browser_extensions.gypi', 118 'chrome_browser_extensions.gypi',
163 'chrome_dll.gypi', 119 'chrome_dll.gypi',
164 'chrome_exe.gypi', 120 'chrome_exe.gypi',
165 'chrome_installer.gypi', 121 'chrome_installer.gypi',
166 'chrome_renderer.gypi', 122 'chrome_renderer.gypi',
(...skipping 1067 matching lines...) Expand 10 before | Expand all | Expand 10 after
1234 ], # 'targets' 1190 ], # 'targets'
1235 'includes': [ 1191 'includes': [
1236 'chrome_android.gypi', 1192 'chrome_android.gypi',
1237 ]}, # 'includes' 1193 ]}, # 'includes'
1238 ], # OS=="android" 1194 ], # OS=="android"
1239 ['configuration_policy==1 and OS!="android"', { 1195 ['configuration_policy==1 and OS!="android"', {
1240 'includes': [ 'policy.gypi', ], 1196 'includes': [ 'policy.gypi', ],
1241 }], 1197 }],
1242 ], # 'conditions' 1198 ], # 'conditions'
1243 } 1199 }
OLDNEW
« no previous file with comments | « no previous file | components/nacl/nacl_defines.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698