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

Side by Side Diff: build/common.gypi

Issue 113652: Added a script to remove headers from the target.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 7 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
« no previous file with comments | « no previous file | build/mac/remove_target_headers » ('j') | build/mac/remove_target_headers » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 { 5 {
6 'variables': { 6 'variables': {
7 # .gyp files should set chromium_code to 1 if they build Chromium-specific 7 # .gyp files should set chromium_code to 1 if they build Chromium-specific
8 # code, as opposed to external code. This variable is used to control 8 # code, as opposed to external code. This variable is used to control
9 # such things as the set of warnings to enable, and whether warnings are 9 # such things as the set of warnings to enable, and whether warnings are
10 # treated as errors. 10 # treated as errors.
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 {'GCC_PRECOMPILE_PREFIX_HEADER': 'NO'}], 341 {'GCC_PRECOMPILE_PREFIX_HEADER': 'NO'}],
342 ], 342 ],
343 }, 343 },
344 'target_conditions': [ 344 'target_conditions': [
345 ['_type!="static_library"', { 345 ['_type!="static_library"', {
346 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, 346 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']},
347 }], 347 }],
348 ['_mac_bundle', { 348 ['_mac_bundle', {
349 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']}, 349 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']},
350 }], 350 }],
351 ['_type=="executable" and _mac_bundle', {
352 'postbuilds': [
353 {
354 'variables': {
355 # Define remove_target_headers in a variable ending in _path
356 # so that gyp understands it's a path and performs proper
357 # relativization during dict merging.
358 'remove_target_headers_path': 'mac/remove_target_headers',
359 },
360 'postbuild_name': 'Remove Target Headers',
361 'action': ['<(remove_target_headers_path)'],
362 },
363 ],
364 }],
351 ['_type=="executable"', { 365 ['_type=="executable"', {
352 'postbuilds': [ 366 'postbuilds': [
353 { 367 {
354 'variables': { 368 'variables': {
355 # Define strip_from_xcode in a variable ending in _path so 369 # Define strip_from_xcode in a variable ending in _path so
356 # that gyp understands it's a path and performs proper 370 # that gyp understands it's a path and performs proper
357 # relativization during dict merging. 371 # relativization during dict merging.
358 'strip_from_xcode_path': 'mac/strip_from_xcode', 372 'strip_from_xcode_path': 'mac/strip_from_xcode',
359 }, 373 },
360 'postbuild_name': 'Strip If Needed', 374 'postbuild_name': 'Strip If Needed',
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
458 # settings in target dicts. SYMROOT is a special case, because many other 472 # settings in target dicts. SYMROOT is a special case, because many other
459 # Xcode variables depend on it, including variables such as 473 # Xcode variables depend on it, including variables such as
460 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 474 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
461 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 475 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
462 # files to appear (when present) in the UI as actual files and not red 476 # files to appear (when present) in the UI as actual files and not red
463 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 477 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
464 # and therefore SYMROOT, needs to be set at the project level. 478 # and therefore SYMROOT, needs to be set at the project level.
465 'SYMROOT': '<(DEPTH)/xcodebuild', 479 'SYMROOT': '<(DEPTH)/xcodebuild',
466 }, 480 },
467 } 481 }
OLDNEW
« no previous file with comments | « no previous file | build/mac/remove_target_headers » ('j') | build/mac/remove_target_headers » ('J')

Powered by Google App Engine
This is Rietveld 408576698