| 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 }, | 8 }, |
| 9 'includes': [ | 9 'includes': [ |
| 10 '../build/common.gypi', | 10 '../build/common.gypi', |
| (...skipping 1936 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1947 }, | 1947 }, |
| 1948 { | 1948 { |
| 1949 'destination': '<(PRODUCT_DIR)/themes', | 1949 'destination': '<(PRODUCT_DIR)/themes', |
| 1950 'files': ['<(INTERMEDIATE_DIR)/repack/default.pak'], | 1950 'files': ['<(INTERMEDIATE_DIR)/repack/default.pak'], |
| 1951 }, | 1951 }, |
| 1952 ], | 1952 ], |
| 1953 }], | 1953 }], |
| 1954 ['OS=="mac"', { | 1954 ['OS=="mac"', { |
| 1955 # 'branding' is a variable defined in common.gypi | 1955 # 'branding' is a variable defined in common.gypi |
| 1956 # (e.g. "Chromium", "Chrome") | 1956 # (e.g. "Chromium", "Chrome") |
| 1957 # NOTE: chrome/app/theme/chromium/BRANDING and | |
| 1958 # chrome/app/theme/google_chrome/BRANDING have the short names, etc.; | |
| 1959 # should we try to extract from there instead? | |
| 1960 'product_name': '<(branding)', | |
| 1961 'conditions': [ | 1957 'conditions': [ |
| 1962 ['branding=="Chrome"', { | 1958 ['branding=="Chrome"', { |
| 1963 'mac_bundle_resources': ['app/theme/google_chrome/app.icns'], | 1959 'mac_bundle_resources': ['app/theme/google_chrome/app.icns'], |
| 1964 'variables': { | 1960 'variables': { |
| 1965 'bundle_id': 'com.google.Chrome', | 1961 'bundle_id': 'com.google.Chrome', |
| 1966 }, | 1962 }, |
| 1967 }, { # else: 'branding!="Chrome" | 1963 }, { # else: 'branding!="Chrome" |
| 1968 'mac_bundle_resources': ['app/theme/chromium/app.icns'], | 1964 'mac_bundle_resources': ['app/theme/chromium/app.icns'], |
| 1969 'variables': { | 1965 'variables': { |
| 1970 'bundle_id': 'org.chromium.Chromium', | 1966 'bundle_id': 'org.chromium.Chromium', |
| 1971 }, | 1967 }, |
| 1972 }], | 1968 }], |
| 1973 ['mac_breakpad==1', { | 1969 ['mac_breakpad==1', { |
| 1974 # Only include breakpad in official builds. | 1970 # Only include breakpad in official builds. |
| 1975 'dependencies': [ | 1971 'dependencies': [ |
| 1976 '../breakpad/breakpad.gyp:breakpad', | 1972 '../breakpad/breakpad.gyp:breakpad', |
| 1977 '../breakpad/breakpad.gyp:dump_syms', | 1973 '../breakpad/breakpad.gyp:dump_syms', |
| 1978 '../breakpad/breakpad.gyp:symupload', | 1974 '../breakpad/breakpad.gyp:symupload', |
| 1979 ], | 1975 ], |
| 1980 'copies': [ | 1976 'copies': [ |
| 1981 { | 1977 { |
| 1982 'destination': '<(PRODUCT_DIR)/<(branding).app/Contents/Resour
ces/', | 1978 'destination': '<(PRODUCT_DIR)/<(mac_product_name).app/Content
s/Resources/', |
| 1983 'files': ['<(PRODUCT_DIR)/crash_inspector', '<(PRODUCT_DIR)/cr
ash_report_sender.app'], | 1979 'files': ['<(PRODUCT_DIR)/crash_inspector', '<(PRODUCT_DIR)/cr
ash_report_sender.app'], |
| 1984 }, | 1980 }, |
| 1985 ], | 1981 ], |
| 1986 'target_conditions': [ | 1982 'target_conditions': [ |
| 1987 # We use target_conditions here that is always true to force | 1983 # We use target_conditions here that is always true to force |
| 1988 # this post build to run last. This lets the strip from | 1984 # this post build to run last. This lets the strip from |
| 1989 # common.gypi go ahead of it, so we can always hit the | 1985 # common.gypi go ahead of it, so we can always hit the |
| 1990 # upstripped app within the fake dSYM. | 1986 # upstripped app within the fake dSYM. |
| 1991 ['1', { | 1987 ['1', { |
| 1992 'postbuilds': [ | 1988 'postbuilds': [ |
| 1993 { | 1989 { |
| 1994 'postbuild_name': 'Dump Symbols', | 1990 'postbuild_name': 'Dump Symbols', |
| 1995 'action': ['<(DEPTH)/build/mac/dump_app_syms', | 1991 'action': ['<(DEPTH)/build/mac/dump_app_syms', |
| 1996 '<(branding)'], | 1992 '<(branding)'], |
| 1997 }, | 1993 }, |
| 1998 ], | 1994 ], |
| 1999 }], | 1995 }], |
| 2000 ], | 1996 ], |
| 2001 }], # mac_breakpad | 1997 }], # mac_breakpad |
| 2002 ], | 1998 ], |
| 1999 'product_name': '<(mac_product_name)', |
| 2003 'xcode_settings': { | 2000 'xcode_settings': { |
| 2004 # chrome/app/app-Info.plist has a CFBundleIdentifier of | 2001 # chrome/app/app-Info.plist has: |
| 2005 # CHROMIUM_BUNDLE_ID to be replaced by a branded bundle ID in Xcode | 2002 # CFBundleIdentifier of CHROMIUM_BUNDLE_ID |
| 2006 # with this settings. | 2003 # CFBundleName of CHROMIUM_SHORT_NAME |
| 2004 # Xcode then replaces these values with the branded values we set |
| 2005 # as settings on the target. |
| 2007 'CHROMIUM_BUNDLE_ID': '<(bundle_id)', | 2006 'CHROMIUM_BUNDLE_ID': '<(bundle_id)', |
| 2007 'CHROMIUM_SHORT_NAME': '<(branding)', |
| 2008 }, | 2008 }, |
| 2009 }, { # else: OS != "mac" | 2009 }, { # else: OS != "mac" |
| 2010 'conditions': [ | 2010 'conditions': [ |
| 2011 ['branding=="Chrome"', { | 2011 ['branding=="Chrome"', { |
| 2012 'product_name': 'chrome' | 2012 'product_name': 'chrome' |
| 2013 }, { # else: Branding!="Chrome" | 2013 }, { # else: Branding!="Chrome" |
| 2014 # TODO: change to: | 2014 # TODO: change to: |
| 2015 # 'product_name': 'chromium' | 2015 # 'product_name': 'chromium' |
| 2016 # whenever we convert the rest of the infrastructure | 2016 # whenever we convert the rest of the infrastructure |
| 2017 # (buildbots etc.) to use "gyp -Dbranding=Chrome". | 2017 # (buildbots etc.) to use "gyp -Dbranding=Chrome". |
| (...skipping 962 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2980 }], | 2980 }], |
| 2981 ['OS!="win"', { | 2981 ['OS!="win"', { |
| 2982 'sources!': [ | 2982 'sources!': [ |
| 2983 'test/perf/mem_usage.cc', | 2983 'test/perf/mem_usage.cc', |
| 2984 ], | 2984 ], |
| 2985 }], | 2985 }], |
| 2986 ], | 2986 ], |
| 2987 }, | 2987 }, |
| 2988 ], | 2988 ], |
| 2989 'conditions': [ | 2989 'conditions': [ |
| 2990 # We set a few feature variables so the different parts that need to check | 2990 # We set a feature variable so the different parts that need to check for |
| 2991 # for the mac build, check that flag instead of coding it based on branding. | 2991 # the mac build use of breakpad, check that flag instead of coding it based |
| 2992 # on branding. |
| 2993 # We need the Mac app name on disk, so we stick this into a variable so |
| 2994 # the different places that need it can use the common variable. |
| 2995 # NOTE: chrome/app/theme/chromium/BRANDING and |
| 2996 # chrome/app/theme/google_chrome/BRANDING have the short names, etc.; |
| 2997 # but extracting from there still means xcodeproject are out of date until |
| 2998 # the next project regeneration. |
| 2992 ['OS=="mac" and branding=="Chrome"', { | 2999 ['OS=="mac" and branding=="Chrome"', { |
| 2993 'variables': { | 3000 'variables': { |
| 2994 'mac_breakpad%': 1 | 3001 'mac_breakpad%': 1, |
| 3002 'mac_product_name%': 'Google Chrome', |
| 2995 } | 3003 } |
| 2996 }, { | 3004 }, { |
| 2997 'variables': { | 3005 'variables': { |
| 2998 'mac_breakpad%': 0 | 3006 'mac_breakpad%': 0, |
| 3007 'mac_product_name%': 'Chromium', |
| 2999 } | 3008 } |
| 3000 }], | 3009 }], |
| 3001 ['OS=="linux"', { | 3010 ['OS=="linux"', { |
| 3002 'targets': [ | 3011 'targets': [ |
| 3003 { | 3012 { |
| 3004 'target_name': 'convert_dict', | 3013 'target_name': 'convert_dict', |
| 3005 'type': 'executable', | 3014 'type': 'executable', |
| 3006 'dependencies': [ | 3015 'dependencies': [ |
| 3007 '../base/base.gyp:base', | 3016 '../base/base.gyp:base', |
| 3008 'third_party/hunspell/hunspell.gyp:hunspell', | 3017 'third_party/hunspell/hunspell.gyp:hunspell', |
| (...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3531 # Use outputs of this action as inputs for the main target build. | 3540 # Use outputs of this action as inputs for the main target build. |
| 3532 # Seems as a misnomer but makes this happy on Linux (scons). | 3541 # Seems as a misnomer but makes this happy on Linux (scons). |
| 3533 'process_outputs_as_sources': 1, | 3542 'process_outputs_as_sources': 1, |
| 3534 }, | 3543 }, |
| 3535 ], # 'actions' | 3544 ], # 'actions' |
| 3536 }, | 3545 }, |
| 3537 ] | 3546 ] |
| 3538 }], | 3547 }], |
| 3539 ], # 'conditions' | 3548 ], # 'conditions' |
| 3540 } | 3549 } |
| OLD | NEW |