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 # Define the common dependencies that contain all the actual | 8 # Define the common dependencies that contain all the actual |
9 # Chromium functionality. This list gets pulled in below by | 9 # Chromium functionality. This list gets pulled in below by |
10 # the link of the actual chrome (or chromium) executable on | 10 # the link of the actual chrome (or chromium) executable on |
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
445 'common/owned_widget_gtk.cc', | 445 'common/owned_widget_gtk.cc', |
446 'common/owned_widget_gtk.h', | 446 'common/owned_widget_gtk.h', |
447 'common/page_action.h', | 447 'common/page_action.h', |
448 'common/page_action.cc', | 448 'common/page_action.cc', |
449 'common/page_transition_types.h', | 449 'common/page_transition_types.h', |
450 'common/page_zoom.h', | 450 'common/page_zoom.h', |
451 'common/platform_util.h', | 451 'common/platform_util.h', |
452 'common/platform_util_linux.cc', | 452 'common/platform_util_linux.cc', |
453 'common/platform_util_mac.mm', | 453 'common/platform_util_mac.mm', |
454 'common/platform_util_win.cc', | 454 'common/platform_util_win.cc', |
| 455 'common/plugin_carbon_interpose_constants_mac.h', |
| 456 'common/plugin_carbon_interpose_constants_mac.cc', |
455 'common/plugin_messages.h', | 457 'common/plugin_messages.h', |
456 'common/plugin_messages_internal.h', | 458 'common/plugin_messages_internal.h', |
457 'common/pref_member.cc', | 459 'common/pref_member.cc', |
458 'common/pref_member.h', | 460 'common/pref_member.h', |
459 'common/pref_names.cc', | 461 'common/pref_names.cc', |
460 'common/pref_names.h', | 462 'common/pref_names.h', |
461 'common/pref_service.cc', | 463 'common/pref_service.cc', |
462 'common/pref_service.h', | 464 'common/pref_service.h', |
463 'common/process_watcher_posix.cc', | 465 'common/process_watcher_posix.cc', |
464 'common/process_watcher_win.cc', | 466 'common/process_watcher_win.cc', |
(...skipping 2470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2935 ['branding=="Chrome"', { | 2937 ['branding=="Chrome"', { |
2936 'mac_bundle_resources': ['app/theme/google_chrome/app.icns'], | 2938 'mac_bundle_resources': ['app/theme/google_chrome/app.icns'], |
2937 'variables': { | 2939 'variables': { |
2938 'bundle_id': 'com.google.Chrome', | 2940 'bundle_id': 'com.google.Chrome', |
2939 }, | 2941 }, |
2940 'copies': [ | 2942 'copies': [ |
2941 { | 2943 { |
2942 'destination': '<(PRODUCT_DIR)/<(mac_product_name).app/Content
s/MacOS/', | 2944 'destination': '<(PRODUCT_DIR)/<(mac_product_name).app/Content
s/MacOS/', |
2943 'files': ['../third_party/ffmpeg/binaries/chrome/libavcodec.52
.dylib', | 2945 'files': ['../third_party/ffmpeg/binaries/chrome/libavcodec.52
.dylib', |
2944 '../third_party/ffmpeg/binaries/chrome/libavformat.5
2.dylib', | 2946 '../third_party/ffmpeg/binaries/chrome/libavformat.5
2.dylib', |
2945 '../third_party/ffmpeg/binaries/chrome/libavutil.50.
dylib'], | 2947 '../third_party/ffmpeg/binaries/chrome/libavutil.50.
dylib', |
| 2948 '<(PRODUCT_DIR)/plugin_carbon_interpose.dylib'], |
2946 }, | 2949 }, |
2947 ], | 2950 ], |
2948 }, { # else: 'branding!="Chrome" | 2951 }, { # else: 'branding!="Chrome" |
2949 'mac_bundle_resources': ['app/theme/chromium/app.icns'], | 2952 'mac_bundle_resources': ['app/theme/chromium/app.icns'], |
2950 'variables': { | 2953 'variables': { |
2951 'bundle_id': 'org.chromium.Chromium', | 2954 'bundle_id': 'org.chromium.Chromium', |
2952 }, | 2955 }, |
2953 'copies': [ | 2956 'copies': [ |
2954 { | 2957 { |
2955 'destination': '<(PRODUCT_DIR)/<(mac_product_name).app/Content
s/MacOS/', | 2958 'destination': '<(PRODUCT_DIR)/<(mac_product_name).app/Content
s/MacOS/', |
2956 'files': ['../third_party/ffmpeg/binaries/chromium/libavcodec.
52.dylib', | 2959 'files': ['../third_party/ffmpeg/binaries/chromium/libavcodec.
52.dylib', |
2957 '../third_party/ffmpeg/binaries/chromium/libavformat
.52.dylib', | 2960 '../third_party/ffmpeg/binaries/chromium/libavformat
.52.dylib', |
2958 '../third_party/ffmpeg/binaries/chromium/libavutil.5
0.dylib'], | 2961 '../third_party/ffmpeg/binaries/chromium/libavutil.5
0.dylib', |
| 2962 '<(PRODUCT_DIR)/plugin_carbon_interpose.dylib'], |
2959 }, | 2963 }, |
2960 ], | 2964 ], |
2961 }], | 2965 }], |
2962 ['mac_breakpad==1', { | 2966 ['mac_breakpad==1', { |
2963 'variables': { | 2967 'variables': { |
2964 # A real .dSYM is needed for dump_syms to operate on. | 2968 # A real .dSYM is needed for dump_syms to operate on. |
2965 'mac_real_dsym': 1, | 2969 'mac_real_dsym': 1, |
2966 }, | 2970 }, |
2967 'dependencies': [ | 2971 'dependencies': [ |
2968 '../breakpad/breakpad.gyp:dump_syms', | 2972 '../breakpad/breakpad.gyp:dump_syms', |
(...skipping 28 matching lines...) Expand all Loading... |
2997 # CFBundleIdentifier of CHROMIUM_BUNDLE_ID | 3001 # CFBundleIdentifier of CHROMIUM_BUNDLE_ID |
2998 # CFBundleName of CHROMIUM_SHORT_NAME | 3002 # CFBundleName of CHROMIUM_SHORT_NAME |
2999 # Xcode then replaces these values with the branded values we set | 3003 # Xcode then replaces these values with the branded values we set |
3000 # as settings on the target. | 3004 # as settings on the target. |
3001 'CHROMIUM_BUNDLE_ID': '<(bundle_id)', | 3005 'CHROMIUM_BUNDLE_ID': '<(bundle_id)', |
3002 'CHROMIUM_SHORT_NAME': '<(branding)', | 3006 'CHROMIUM_SHORT_NAME': '<(branding)', |
3003 }, | 3007 }, |
3004 # Bring in pdfsqueeze and run it on all pdfs | 3008 # Bring in pdfsqueeze and run it on all pdfs |
3005 'dependencies': [ | 3009 'dependencies': [ |
3006 '../build/temp_gyp/pdfsqueeze.gyp:pdfsqueeze', | 3010 '../build/temp_gyp/pdfsqueeze.gyp:pdfsqueeze', |
| 3011 'interpose_dependency_shim', |
3007 ], | 3012 ], |
3008 'rules': [ | 3013 'rules': [ |
3009 { | 3014 { |
3010 'rule_name': 'pdfsqueeze', | 3015 'rule_name': 'pdfsqueeze', |
3011 'extension': 'pdf', | 3016 'extension': 'pdf', |
3012 'inputs': [ | 3017 'inputs': [ |
3013 '<(PRODUCT_DIR)/pdfsqueeze', | 3018 '<(PRODUCT_DIR)/pdfsqueeze', |
3014 ], | 3019 ], |
3015 'outputs': [ | 3020 'outputs': [ |
3016 '<(INTERMEDIATE_DIR)/pdfsqueeze/<(RULE_INPUT_ROOT).pdf', | 3021 '<(INTERMEDIATE_DIR)/pdfsqueeze/<(RULE_INPUT_ROOT).pdf', |
(...skipping 1398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4415 '<(PRODUCT_DIR)/<(branding).app', | 4420 '<(PRODUCT_DIR)/<(branding).app', |
4416 ], | 4421 ], |
4417 'outputs': [ | 4422 'outputs': [ |
4418 '<(PRODUCT_DIR)/<(branding).dmg', | 4423 '<(PRODUCT_DIR)/<(branding).dmg', |
4419 ], | 4424 ], |
4420 'action_name': 'build_app_dmg', | 4425 'action_name': 'build_app_dmg', |
4421 'action': ['<(build_app_dmg_script_path)', '<@(branding)'], | 4426 'action': ['<(build_app_dmg_script_path)', '<@(branding)'], |
4422 }, | 4427 }, |
4423 ], # 'actions' | 4428 ], # 'actions' |
4424 }, | 4429 }, |
| 4430 { |
| 4431 # Dummy target to allow chrome to require plugin_carbon_interpose to |
| 4432 # build without actually linking to the resulting library. |
| 4433 'target_name': 'interpose_dependency_shim', |
| 4434 'type': 'executable', |
| 4435 'dependencies': [ |
| 4436 'plugin_carbon_interpose', |
| 4437 ], |
| 4438 # In release, we end up with a strip step that is unhappy if there is |
| 4439 # no binary. Rather than check in a new file for this temporary hack, |
| 4440 # just generate a source file on the fly. |
| 4441 'actions': [ |
| 4442 { |
| 4443 'action_name': 'generate_stub_main', |
| 4444 'process_outputs_as_sources': 1, |
| 4445 'inputs': [], |
| 4446 'outputs': [ '<(INTERMEDIATE_DIR)/dummy_main.c' ], |
| 4447 'action': [ |
| 4448 'bash', '-c', |
| 4449 'echo "int main() { return 0; }" > <(INTERMEDIATE_DIR)/dummy_mai
n.c' |
| 4450 ], |
| 4451 }, |
| 4452 ], |
| 4453 }, |
| 4454 { |
| 4455 # dylib for interposing Carbon calls in the plugin process. |
| 4456 'target_name': 'plugin_carbon_interpose', |
| 4457 'type': 'shared_library', |
| 4458 'dependencies': [ |
| 4459 'chrome_dll', |
| 4460 ], |
| 4461 'sources': [ |
| 4462 'browser/plugin_carbon_interpose_mac.cc', |
| 4463 ], |
| 4464 'include_dirs': [ |
| 4465 '..', |
| 4466 ], |
| 4467 'link_settings': { |
| 4468 'libraries': [ |
| 4469 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework', |
| 4470 ], |
| 4471 }, |
| 4472 }, |
4425 ] | 4473 ] |
4426 }, { # else: OS != "mac" | 4474 }, { # else: OS != "mac" |
4427 'targets': [ | 4475 'targets': [ |
4428 { | 4476 { |
4429 'target_name': 'convert_dict', | 4477 'target_name': 'convert_dict', |
4430 'type': 'executable', | 4478 'type': 'executable', |
4431 'msvs_guid': '42ECD5EC-722F-41DE-B6B8-83764C8016DF', | 4479 'msvs_guid': '42ECD5EC-722F-41DE-B6B8-83764C8016DF', |
4432 'dependencies': [ | 4480 'dependencies': [ |
4433 '../base/base.gyp:base', | 4481 '../base/base.gyp:base', |
4434 'convert_dict_lib', | 4482 'convert_dict_lib', |
(...skipping 838 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5273 # Use outputs of this action as inputs for the main target build. | 5321 # Use outputs of this action as inputs for the main target build. |
5274 # Seems as a misnomer but makes this happy on Linux (scons). | 5322 # Seems as a misnomer but makes this happy on Linux (scons). |
5275 'process_outputs_as_sources': 1, | 5323 'process_outputs_as_sources': 1, |
5276 }, | 5324 }, |
5277 ], # 'actions' | 5325 ], # 'actions' |
5278 }, | 5326 }, |
5279 ] | 5327 ] |
5280 }], | 5328 }], |
5281 ], # 'conditions' | 5329 ], # 'conditions' |
5282 } | 5330 } |
OLD | NEW |