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

Side by Side Diff: build/standalone.gypi

Issue 1407903002: Move conditionals inside target_defaults. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 5 years, 2 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 | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 PDFium Authors. All rights reserved. 1 # Copyright 2014 PDFium 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 # Definitions to be used when building stand-alone PDFium binaries. 5 # Definitions to be used when building stand-alone PDFium binaries.
6 6
7 { 7 {
8 'variables': { 8 'variables': {
9 'component%': 'static_library', 9 'component%': 'static_library',
10 'clang%': 0, 10 'clang%': 0,
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 'OTHER_CFLAGS': [ 236 'OTHER_CFLAGS': [
237 '-fno-strict-aliasing', 237 '-fno-strict-aliasing',
238 ], 238 ],
239 'WARNING_CFLAGS': [ 239 'WARNING_CFLAGS': [
240 '-Wall', 240 '-Wall',
241 '-Wendif-labels', 241 '-Wendif-labels',
242 '-W', 242 '-W',
243 '-Wno-unused-parameter', 243 '-Wno-unused-parameter',
244 ], 244 ],
245 }, 245 },
246 'conditions': [
247 ['component=="shared_library"', {
Tom Sepez 2015/10/15 20:26:56 We'd want to this to apply to a release build as w
Tom Sepez 2015/10/15 20:38:14 (I think it happens, but confirm).
dsinclair 2015/10/15 21:02:14 Seems too, I'm able to complete 'ninja -C out/Rele
248 'cflags': [
249 '-fPIC',
250 ],
251 }],
252 ['OS=="win"', {
253 'target_defaults': {
Tom Sepez 2015/10/15 20:25:50 These target_defaults blocks may be redundant insi
dsinclair 2015/10/15 21:02:14 Done.
254 'defines': [
255 'NOMINMAX',
256 '_CRT_SECURE_NO_DEPRECATE',
257 '_CRT_NONSTDC_NO_DEPRECATE',
258 ],
259 'conditions': [
260 ['component=="static_library"', {
261 'defines': [
262 '_HAS_EXCEPTIONS=0',
263 ],
264 }],
265 ],
266 },
267 }], # OS=="win"
268 ['OS=="mac"', {
269 'target_defaults': {
270 'target_conditions': [
Tom Sepez 2015/10/15 20:25:50 But this may have to remain target_conditions even
dsinclair 2015/10/15 21:02:14 Done.
271 ['_type!="static_library"', {
272 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']},
273 }],
274 ], # target_conditions
275 }, # target_defaults
276 }], # OS=="mac"
277 ['v8_use_external_startup_data==1', {
278 'target_defaults': {
279 'defines': [
280 'V8_USE_EXTERNAL_STARTUP_DATA',
281 ],
282 },
283 }], # v8_use_external_startup_data==1
284 ],
246 }, 285 },
247 'conditions': [
248 ['component=="shared_library"', {
249 'cflags': [
250 '-fPIC',
251 ],
252 }],
253 ['OS=="win"', {
254 'target_defaults': {
255 'defines': [
256 'NOMINMAX',
257 '_CRT_SECURE_NO_DEPRECATE',
258 '_CRT_NONSTDC_NO_DEPRECATE',
259 ],
260 'conditions': [
261 ['component=="static_library"', {
262 'defines': [
263 '_HAS_EXCEPTIONS=0',
264 ],
265 }],
266 ],
267 },
268 }], # OS=="win"
269 ['OS=="mac"', {
270 'target_defaults': {
271 'target_conditions': [
272 ['_type!="static_library"', {
273 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']},
274 }],
275 ], # target_conditions
276 }, # target_defaults
277 }], # OS=="mac"
278 ['v8_use_external_startup_data==1', {
279 'target_defaults': {
280 'defines': [
281 'V8_USE_EXTERNAL_STARTUP_DATA',
282 ],
283 },
284 }], # v8_use_external_startup_data==1
285 ],
286 'xcode_settings': { 286 'xcode_settings': {
287 # See comment in Chromium's common.gypi for why this is needed. 287 # See comment in Chromium's common.gypi for why this is needed.
288 'SYMROOT': '<(DEPTH)/xcodebuild', 288 'SYMROOT': '<(DEPTH)/xcodebuild',
289 } 289 }
290 } 290 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698