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

Side by Side Diff: build/common.gypi

Issue 201122: Changes needed for MacOS X 10.4 support.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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 | « base/file_util_posix.cc ('k') | o3d/DEPS_gyp » ('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) 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 # Override chromium_mac_pch and set it to 0 to suppress the use of 45 # Override chromium_mac_pch and set it to 0 to suppress the use of
46 # precompiled headers on the Mac. Prefix header injection may still be 46 # precompiled headers on the Mac. Prefix header injection may still be
47 # used, but prefix headers will not be precompiled. This is useful when 47 # used, but prefix headers will not be precompiled. This is useful when
48 # using distcc to distribute a build to compile slaves that don't 48 # using distcc to distribute a build to compile slaves that don't
49 # share the same compiler executable as the system driving the compilation, 49 # share the same compiler executable as the system driving the compilation,
50 # because precompiled headers rely on pointers into a specific compiler 50 # because precompiled headers rely on pointers into a specific compiler
51 # executable's image. Setting this to 0 is needed to use an experimental 51 # executable's image. Setting this to 0 is needed to use an experimental
52 # Linux-Mac cross compiler distcc farm. 52 # Linux-Mac cross compiler distcc farm.
53 'chromium_mac_pch%': 1, 53 'chromium_mac_pch%': 1,
54 54
55 # We normally expect MacOS X 10.5 at runtime in the product generated.
56 # Set to 1 to enable MacOS X 10.4 support where possible.
57 # Harmless to set on other platforms, as it has no effect.
58 # This is designed so that products such as O3D can use some Chrome source
59 # without losing 10.4 support.
60 # Look for support_macosx_10_4 later in the file to see where it turns on
61 # compile flags, defines SUPPORT_MACOSX_10_4 in the C preprocessor,
62 # and changes the Xcode deployment target setting.
63 'support_macosx_10_4%': 0,
64
55 # Set to 1 to enable code coverage. In addition to build changes 65 # Set to 1 to enable code coverage. In addition to build changes
56 # (e.g. extra CFLAGS), also creates a new target in the src/chrome 66 # (e.g. extra CFLAGS), also creates a new target in the src/chrome
57 # project file called "coverage". 67 # project file called "coverage".
58 # Currently ignored on Windows. 68 # Currently ignored on Windows.
59 'coverage%': 0, 69 'coverage%': 0,
60 70
61 # Overridable specification for potential use of alternative 71 # Overridable specification for potential use of alternative
62 # JavaScript engines. 72 # JavaScript engines.
63 'javascript_engine%': 'v8', 73 'javascript_engine%': 'v8',
64 74
(...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after
604 'GCC_TREAT_WARNINGS_AS_ERRORS': 'YES', # -Werror 614 'GCC_TREAT_WARNINGS_AS_ERRORS': 'YES', # -Werror
605 'GCC_VERSION': '4.2', 615 'GCC_VERSION': '4.2',
606 'GCC_WARN_ABOUT_MISSING_NEWLINE': 'YES', # -Wnewline-eof 616 'GCC_WARN_ABOUT_MISSING_NEWLINE': 'YES', # -Wnewline-eof
607 'MACOSX_DEPLOYMENT_TARGET': '10.5', # -mmacosx-version-min=10.5 617 'MACOSX_DEPLOYMENT_TARGET': '10.5', # -mmacosx-version-min=10.5
608 'PREBINDING': 'NO', # No -Wl,-prebind 618 'PREBINDING': 'NO', # No -Wl,-prebind
609 'SDKROOT': 'macosx10.5', # -isysroot 619 'SDKROOT': 'macosx10.5', # -isysroot
610 'USE_HEADERMAP': 'NO', 620 'USE_HEADERMAP': 'NO',
611 'WARNING_CFLAGS': ['-Wall', '-Wendif-labels'], 621 'WARNING_CFLAGS': ['-Wall', '-Wendif-labels'],
612 'conditions': [ 622 'conditions': [
613 ['chromium_mac_pch', {'GCC_PRECOMPILE_PREFIX_HEADER': 'YES'}, 623 ['chromium_mac_pch', {'GCC_PRECOMPILE_PREFIX_HEADER': 'YES'},
614 {'GCC_PRECOMPILE_PREFIX_HEADER': 'NO'}], 624 {'GCC_PRECOMPILE_PREFIX_HEADER': 'NO'}
625 ],
626 ['support_macosx_10_4',
627 {
628 'OTHER_CFLAGS': ['-D', 'SUPPORT_MACOSX_10_4',],
629 'MACOSX_DEPLOYMENT_TARGET': '10.4', # mmacosx-version-min=10.4
630 },
631 {
632 'MACOSX_DEPLOYMENT_TARGET': '10.5', # mmacosx-version-min=10.5
633 }
634 ],
615 ], 635 ],
616 }, 636 },
617 'target_conditions': [ 637 'target_conditions': [
618 ['_type!="static_library"', { 638 ['_type!="static_library"', {
619 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, 639 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']},
620 }], 640 }],
621 ['_mac_bundle', { 641 ['_mac_bundle', {
622 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']}, 642 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']},
623 }], 643 }],
624 ['_type=="executable" or _type=="shared_library"', { 644 ['_type=="executable" or _type=="shared_library"', {
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
795 # settings in target dicts. SYMROOT is a special case, because many other 815 # settings in target dicts. SYMROOT is a special case, because many other
796 # Xcode variables depend on it, including variables such as 816 # Xcode variables depend on it, including variables such as
797 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 817 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
798 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 818 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
799 # files to appear (when present) in the UI as actual files and not red 819 # files to appear (when present) in the UI as actual files and not red
800 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 820 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
801 # and therefore SYMROOT, needs to be set at the project level. 821 # and therefore SYMROOT, needs to be set at the project level.
802 'SYMROOT': '<(DEPTH)/xcodebuild', 822 'SYMROOT': '<(DEPTH)/xcodebuild',
803 }, 823 },
804 } 824 }
OLDNEW
« no previous file with comments | « base/file_util_posix.cc ('k') | o3d/DEPS_gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698