| OLD | NEW |
| 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 'chromium_code': 1, | 7 'chromium_code': 1, |
| 8 # Mac NOTE: at the start of the conditions block we default some vars |
| 9 # that control features based on the branding, this way each place that |
| 10 # needs to know about the feature isn't hard coded to the branding type. |
| 8 }, | 11 }, |
| 9 'includes': [ | 12 'includes': [ |
| 10 '../build/common.gypi', | 13 '../build/common.gypi', |
| 11 ], | 14 ], |
| 12 'target_defaults': { | 15 'target_defaults': { |
| 13 'sources/': [ | 16 'sources/': [ |
| 14 ['exclude', '/(cocoa|gtk|win)/'], | 17 ['exclude', '/(cocoa|gtk|win)/'], |
| 15 ['exclude', '_(cocoa|gtk|linux|mac|posix|skia|win|x)\\.(cc|mm?)$'], | 18 ['exclude', '_(cocoa|gtk|linux|mac|posix|skia|win|x)\\.(cc|mm?)$'], |
| 16 ['exclude', '/(gtk|win|x11)_[^/]*\\.cc$'], | 19 ['exclude', '/(gtk|win|x11)_[^/]*\\.cc$'], |
| 17 ], | 20 ], |
| (...skipping 1938 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1956 # NOTE: chrome/app/theme/chromium/BRANDING and | 1959 # NOTE: chrome/app/theme/chromium/BRANDING and |
| 1957 # chrome/app/theme/google_chrome/BRANDING have the short names, etc.; | 1960 # chrome/app/theme/google_chrome/BRANDING have the short names, etc.; |
| 1958 # should we try to extract from there instead? | 1961 # should we try to extract from there instead? |
| 1959 'product_name': '<(branding)', | 1962 'product_name': '<(branding)', |
| 1960 'conditions': [ | 1963 'conditions': [ |
| 1961 ['branding=="Chrome"', { | 1964 ['branding=="Chrome"', { |
| 1962 'mac_bundle_resources': ['app/theme/google_chrome/app.icns'], | 1965 'mac_bundle_resources': ['app/theme/google_chrome/app.icns'], |
| 1963 'variables': { | 1966 'variables': { |
| 1964 'bundle_id': 'com.google.Chrome', | 1967 'bundle_id': 'com.google.Chrome', |
| 1965 }, | 1968 }, |
| 1969 }, { # else: 'branding!="Chrome" |
| 1970 'mac_bundle_resources': ['app/theme/chromium/app.icns'], |
| 1971 'variables': { |
| 1972 'bundle_id': 'org.chromium.Chromium', |
| 1973 }, |
| 1974 }], |
| 1975 ['mac_breakpad==1', { |
| 1966 # Only include breakpad in official builds. | 1976 # Only include breakpad in official builds. |
| 1967 'dependencies': [ | 1977 'dependencies': [ |
| 1968 '../breakpad/breakpad.gyp:breakpad', | 1978 '../breakpad/breakpad.gyp:breakpad', |
| 1979 '../breakpad/breakpad.gyp:dump_syms', |
| 1969 ], | 1980 ], |
| 1970 'copies': [ | 1981 'copies': [ |
| 1971 { | 1982 { |
| 1972 'destination': '<(PRODUCT_DIR)/<(branding).app/Contents/Resour
ces/', | 1983 'destination': '<(PRODUCT_DIR)/<(branding).app/Contents/Resour
ces/', |
| 1973 'files': ['<(PRODUCT_DIR)/crash_inspector', '<(PRODUCT_DIR)/cr
ash_report_sender.app'], | 1984 'files': ['<(PRODUCT_DIR)/crash_inspector', '<(PRODUCT_DIR)/cr
ash_report_sender.app'], |
| 1974 }, | 1985 }, |
| 1975 ] | 1986 ], |
| 1976 }, { # else: branding!="Chrome" | 1987 'target_conditions': [ |
| 1977 'mac_bundle_resources': ['app/theme/chromium/app.icns'], | 1988 # We use target_conditions here that is always true to force |
| 1978 'variables': { | 1989 # this post build to run last. This lets the strip from |
| 1979 'bundle_id': 'org.chromium.Chromium', | 1990 # common.gypi go ahead of it, so we can always hit the |
| 1980 }, | 1991 # upstripped app within the fake dSYM. |
| 1981 }], | 1992 ['1', { |
| 1993 'postbuilds': [ |
| 1994 { |
| 1995 'postbuild_name': 'Dump Symbols', |
| 1996 'action': ['<(DEPTH)/build/mac/dump_app_syms', |
| 1997 '<(branding)'], |
| 1998 }, |
| 1999 ], |
| 2000 }], |
| 2001 ], |
| 2002 }], # mac_breakpad |
| 1982 ], | 2003 ], |
| 1983 'xcode_settings': { | 2004 'xcode_settings': { |
| 1984 # chrome/app/app-Info.plist has a CFBundleIdentifier of | 2005 # chrome/app/app-Info.plist has a CFBundleIdentifier of |
| 1985 # CHROMIUM_BUNDLE_ID to be replaced by a branded bundle ID in Xcode | 2006 # CHROMIUM_BUNDLE_ID to be replaced by a branded bundle ID in Xcode |
| 1986 # with this settings. | 2007 # with this settings. |
| 1987 'CHROMIUM_BUNDLE_ID': '<(bundle_id)', | 2008 'CHROMIUM_BUNDLE_ID': '<(bundle_id)', |
| 1988 }, | 2009 }, |
| 1989 }, { # else: OS != "mac" | 2010 }, { # else: OS != "mac" |
| 1990 'conditions': [ | 2011 'conditions': [ |
| 1991 ['branding=="Chrome"', { | 2012 ['branding=="Chrome"', { |
| (...skipping 16 matching lines...) Expand all Loading... |
| 2008 'actions': [ | 2029 'actions': [ |
| 2009 { | 2030 { |
| 2010 'action_name': 'tweak_app_infoplist', | 2031 'action_name': 'tweak_app_infoplist', |
| 2011 # We don't list any inputs or outputs because we always want | 2032 # We don't list any inputs or outputs because we always want |
| 2012 # the script to run. Why? Because it does thinks like record | 2033 # the script to run. Why? Because it does thinks like record |
| 2013 # the svn revision into the info.plist, so there is no file to | 2034 # the svn revision into the info.plist, so there is no file to |
| 2014 # depend on that will change when ever that changes. | 2035 # depend on that will change when ever that changes. |
| 2015 'inputs': [], | 2036 'inputs': [], |
| 2016 'outputs': [], | 2037 'outputs': [], |
| 2017 'action': ['<(DEPTH)/build/mac/tweak_app_infoplist', | 2038 'action': ['<(DEPTH)/build/mac/tweak_app_infoplist', |
| 2039 '-b', '<(mac_breakpad)', |
| 2018 '<(branding)'], | 2040 '<(branding)'], |
| 2019 }, | 2041 }, |
| 2020 ], | 2042 ], |
| 2021 }], | 2043 }], |
| 2022 ['OS=="win"', { | 2044 ['OS=="win"', { |
| 2023 'include_dirs': [ | 2045 'include_dirs': [ |
| 2024 'third_party/wtl/include', | 2046 'third_party/wtl/include', |
| 2025 ], | 2047 ], |
| 2026 'dependencies': [ | 2048 'dependencies': [ |
| 2027 'views', | 2049 'views', |
| (...skipping 919 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2947 }], | 2969 }], |
| 2948 ['OS!="win"', { | 2970 ['OS!="win"', { |
| 2949 'sources!': [ | 2971 'sources!': [ |
| 2950 'test/perf/mem_usage.cc', | 2972 'test/perf/mem_usage.cc', |
| 2951 ], | 2973 ], |
| 2952 }], | 2974 }], |
| 2953 ], | 2975 ], |
| 2954 }, | 2976 }, |
| 2955 ], | 2977 ], |
| 2956 'conditions': [ | 2978 'conditions': [ |
| 2979 # We set a few feature variables so the different parts that need to check |
| 2980 # for the mac build, check that flag instead of coding it based on branding. |
| 2981 ['OS=="mac" and branding=="Chrome"', { |
| 2982 'variables': { |
| 2983 'mac_breakpad%': 1 |
| 2984 } |
| 2985 }, { |
| 2986 'variables': { |
| 2987 'mac_breakpad%': 0 |
| 2988 } |
| 2989 }], |
| 2957 ['OS=="linux"', { | 2990 ['OS=="linux"', { |
| 2958 'targets': [ | 2991 'targets': [ |
| 2959 { | 2992 { |
| 2960 'target_name': 'convert_dict', | 2993 'target_name': 'convert_dict', |
| 2961 'type': 'executable', | 2994 'type': 'executable', |
| 2962 'dependencies': [ | 2995 'dependencies': [ |
| 2963 '../base/base.gyp:base', | 2996 '../base/base.gyp:base', |
| 2964 'third_party/hunspell/hunspell.gyp:hunspell', | 2997 'third_party/hunspell/hunspell.gyp:hunspell', |
| 2965 ], | 2998 ], |
| 2966 'sources': [ | 2999 'sources': [ |
| (...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3516 # Use outputs of this action as inputs for the main target build. | 3549 # Use outputs of this action as inputs for the main target build. |
| 3517 # Seems as a misnomer but makes this happy on Linux (scons). | 3550 # Seems as a misnomer but makes this happy on Linux (scons). |
| 3518 'process_outputs_as_sources': 1, | 3551 'process_outputs_as_sources': 1, |
| 3519 }, | 3552 }, |
| 3520 ], # 'actions' | 3553 ], # 'actions' |
| 3521 }, | 3554 }, |
| 3522 ] | 3555 ] |
| 3523 }], | 3556 }], |
| 3524 ], # 'conditions' | 3557 ], # 'conditions' |
| 3525 } | 3558 } |
| OLD | NEW |