1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
7 'lastchange_path': '../build/util/LASTCHANGE',
8 'libpeer_target_type%': 'static_library',
9 # 'branding_dir' is set in the 'conditions' section at the bottom.
15 'target_name': 'gcapi_dll',
16 'type': 'loadable_module',
24 'installer/gcapi/gcapi.def',
25 'installer/gcapi/gcapi_dll.cc',
29 'target_name': 'gcapi_lib',
30 'type': 'static_library',
33 '../base/base.gyp:base',
34 '../chrome/chrome.gyp:launcher_support',
35 '../google_update/google_update.gyp:google_update',
41 'installer/gcapi/gcapi.cc',
42 'installer/gcapi/gcapi.h',
43 'installer/gcapi/gcapi_omaha_experiment.cc',
44 'installer/gcapi/gcapi_omaha_experiment.h',
45 'installer/gcapi/gcapi_reactivation.cc',
46 'installer/gcapi/gcapi_reactivation.h',
48 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
49 'msvs_disabled_warnings': [ 4267, ],
52 'target_name': 'gcapi_test',
59 '../base/base.gyp:base',
60 '../base/base.gyp:test_support_base',
61 '../testing/gtest.gyp:gtest',
67 'installer/gcapi/gcapi_last_run_test.cc',
68 'installer/gcapi/gcapi_reactivation_test.cc',
69 'installer/gcapi/gcapi_test.cc',
70 'installer/gcapi/gcapi_test.rc',
71 'installer/gcapi/resource.h',
75 'target_name': 'installer_util_unittests',
79 'installer_util_strings',
80 'installer/upgrade_test.gyp:alternate_version_generator_lib',
81 '../base/base.gyp:base',
82 '../base/base.gyp:base_i18n',
83 '../base/base.gyp:test_support_base',
84 '../chrome/chrome.gyp:chrome_version_resources',
85 '../content/content.gyp:content_common',
86 '../testing/gmock.gyp:gmock',
87 '../testing/gtest.gyp:gtest',
93 'installer/setup/compat_checks_unittest.cc',
94 'installer/setup/setup_constants.cc',
95 'installer/util/callback_work_item_unittest.cc',
96 'installer/util/channel_info_unittest.cc',
97 'installer/util/copy_reg_key_work_item_unittest.cc',
98 'installer/util/copy_tree_work_item_unittest.cc',
99 'installer/util/create_dir_work_item_unittest.cc',
100 'installer/util/create_reg_key_work_item_unittest.cc',
101 'installer/util/delete_after_reboot_helper_unittest.cc',
102 'installer/util/delete_reg_key_work_item_unittest.cc',
103 'installer/util/delete_reg_value_work_item_unittest.cc',
104 'installer/util/delete_tree_work_item_unittest.cc',
105 'installer/util/duplicate_tree_detector_unittest.cc',
106 'installer/util/fake_installation_state.h',
107 'installer/util/fake_product_state.h',
108 'installer/util/google_update_settings_unittest.cc',
109 'installer/util/install_util_unittest.cc',
110 'installer/util/installation_validation_helper.cc',
111 'installer/util/installation_validation_helper.h',
112 'installer/util/installation_validator_unittest.cc',
113 'installer/util/installer_state_unittest.cc',
114 'installer/util/installer_util_test_common.cc',
115 'installer/util/installer_util_test_common.h',
116 'installer/util/installer_util_unittests.rc',
117 'installer/util/installer_util_unittests_resource.h',
118 'installer/util/language_selector_unittest.cc',
119 'installer/util/logging_installer_unittest.cc',
120 'installer/util/lzma_util_unittest.cc',
121 'installer/util/master_preferences_unittest.cc',
122 'installer/util/move_tree_work_item_unittest.cc',
123 'installer/util/product_state_unittest.cc',
124 'installer/util/product_unittest.cc',
125 'installer/util/product_unittest.h',
126 'installer/util/registry_key_backup_unittest.cc',
127 'installer/util/registry_test_data.cc',
128 'installer/util/registry_test_data.h',
129 'installer/util/run_all_unittests.cc',
130 'installer/util/self_cleaning_temp_dir_unittest.cc',
131 'installer/util/set_reg_value_work_item_unittest.cc',
132 'installer/util/shell_util_unittest.cc',
133 'installer/util/uninstall_metrics_unittest.cc',
134 'installer/util/wmi_unittest.cc',
135 'installer/util/work_item_list_unittest.cc',
136 '<(SHARED_INTERMEDIATE_DIR)/chrome_version/other_version.rc',
140 'AdditionalManifestFiles': '$(ProjectDir)\\installer\\mini_installer\\mini_installer.exe.manifest',
143 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
144 'msvs_disabled_warnings': [ 4267, ],
147 'target_name': 'installer_util_strings',
151 'rule_name': 'installer_util_strings',
154 'create_string_rc_py' : 'installer/util/prebuild/create_string_rc.py',
157 '<(create_string_rc_py)',
158 '<(RULE_INPUT_PATH)',
161 # Don't use <(RULE_INPUT_ROOT) to create the output file
162 # name, because the base name of the input
163 # (generated_resources.grd) doesn't match the generated file
164 # (installer_util_strings.h).
165 '<(SHARED_INTERMEDIATE_DIR)/installer_util_strings/installer_util_strings.h',
166 '<(SHARED_INTERMEDIATE_DIR)/installer_util_strings/installer_util_strings.rc',
169 '<(create_string_rc_py)',
170 '<(SHARED_INTERMEDIATE_DIR)/installer_util_strings',
172 'message': 'Generating resources from <(RULE_INPUT_PATH)',
173 'msvs_cygwin_shell': 1,
177 'app/chromium_strings.grd',
179 'direct_dependent_settings': {
181 '<(SHARED_INTERMEDIATE_DIR)/installer_util_strings',
186 'target_name': 'launcher_support',
187 'type': 'static_library',
191 'direct_dependent_settings': {
197 '<(DEPTH)/base/base.gyp:base',
200 'installer/launcher_support/chrome_launcher_support.cc',
201 'installer/launcher_support/chrome_launcher_support.h',
205 'target_name': 'mini_installer_test',
206 'type': 'executable',
209 'installer_util_strings',
210 '../base/base.gyp:base',
211 '../base/base.gyp:base_i18n',
212 '../base/base.gyp:test_support_base',
213 '../chrome/chrome.gyp:test_support_common',
214 '../testing/gtest.gyp:gtest',
220 '<(SHARED_INTERMEDIATE_DIR)/installer_util_strings/installer_util_strings.rc',
221 'installer/util/installation_validation_helper.cc',
222 'installer/util/installation_validation_helper.h',
223 'test/mini_installer_test/installer_path_provider.cc',
224 'test/mini_installer_test/installer_path_provider.h',
225 'test/mini_installer_test/installer_test_util.cc',
226 'test/mini_installer_test/installer_test_util.h',
227 'test/mini_installer_test/mini_installer_test_constants.cc',
228 'test/mini_installer_test/mini_installer_test_constants.h',
229 'test/mini_installer_test/run_all_unittests.cc',
230 'test/mini_installer_test/switch_builder.cc',
231 'test/mini_installer_test/switch_builder.h',
232 'test/mini_installer_test/test.cc',
236 'AdditionalManifestFiles': '$(ProjectDir)\\installer\\mini_installer\\mini_installer.exe.manifest',
241 'target_name': 'setup',
242 'type': 'executable',
245 'installer_util_strings',
247 '../base/base.gyp:base',
248 '../breakpad/breakpad.gyp:breakpad_handler',
249 '../chrome/common_constants.gyp:common_constants',
250 '../chrome_frame/chrome_frame.gyp:chrome_tab_idl',
251 '../chrome_frame/chrome_frame.gyp:npchrome_frame',
252 '../rlz/rlz.gyp:rlz_lib',
253 '../third_party/zlib/zlib.gyp:zlib',
257 '<(INTERMEDIATE_DIR)',
258 '<(SHARED_INTERMEDIATE_DIR)/setup',
260 'direct_dependent_settings': {
262 '<(SHARED_INTERMEDIATE_DIR)/setup',
266 'installer/mini_installer/chrome.release',
267 'installer/setup/chrome_frame_quick_enable.cc',
268 'installer/setup/chrome_frame_quick_enable.h',
269 'installer/setup/chrome_frame_ready_mode.cc',
270 'installer/setup/chrome_frame_ready_mode.h',
271 'installer/setup/install.cc',
272 'installer/setup/install.h',
273 'installer/setup/install_worker.cc',
274 'installer/setup/install_worker.h',
275 'installer/setup/setup_main.cc',
276 'installer/setup/setup.ico',
277 'installer/setup/setup.rc',
278 'installer/setup/setup_constants.cc',
279 'installer/setup/setup_constants.h',
280 'installer/setup/setup_exe_version.rc.version',
281 'installer/setup/setup_resource.h',
282 'installer/setup/setup_util.cc',
283 'installer/setup/setup_util.h',
284 'installer/setup/uninstall.cc',
285 'installer/setup/uninstall.h',
289 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
292 'AdditionalManifestFiles': '$(ProjectDir)\\installer\\setup\\setup.exe.manifest',
295 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
296 'msvs_disabled_warnings': [ 4267, ],
299 'rule_name': 'setup_version',
300 'extension': 'version',
302 'version_py_path': '../chrome/tools/build/version.py',
303 'template_input_path': 'installer/setup/setup_exe_version.rc.version',
306 '<(template_input_path)',
308 '<(lastchange_path)',
309 '<(branding_dir)/BRANDING',
312 '<(SHARED_INTERMEDIATE_DIR)/setup/setup_exe_version.rc',
315 'python', '<(version_py_path)',
316 '-f', '<(version_path)',
317 '-f', '<(lastchange_path)',
318 '-f', '<(branding_dir)/BRANDING',
319 '<(template_input_path)',
322 'process_outputs_as_sources': 1,
323 'message': 'Generating version information'
326 'rule_name': 'server_dlls',
327 'extension': 'release',
329 'scan_server_dlls_py' : 'tools/build/win/scan_server_dlls.py',
330 'template_file': 'installer/mini_installer/chrome.release',
333 '<(scan_server_dlls_py)',
337 '<(INTERMEDIATE_DIR)/registered_dlls.h',
341 '<(scan_server_dlls_py)',
342 '--output_dir=<(PRODUCT_DIR)',
343 '--input_file=<(RULE_INPUT_PATH)',
344 '--header_output_dir=<(INTERMEDIATE_DIR)',
345 # TODO(sgk): may just use environment variables
346 #'--distribution=$(CHROMIUM_BUILD)',
347 '--distribution=_google_chrome',
349 'msvs_cygwin_shell': 1,
353 ['component == "shared_library"', {
356 'EmbedManifest': 'false',
360 # TODO(mark): <(branding_dir) should be defined by the
361 # global condition block at the bottom of the file, but
362 # this doesn't work due to the following issue:
364 # http://code.google.com/p/gyp/issues/detail?id=22
366 # Remove this block once the above issue is fixed.
367 [ 'branding == "Chrome"', {
369 'branding_dir': 'app/theme/google_chrome',
370 'branding_dir_100': 'app/theme/default_100_percent/google_chrome',
372 }, { # else branding!="Chrome"
374 'branding_dir': 'app/theme/chromium',
375 'branding_dir_100': 'app/theme/default_100_percent/chromium',
378 ['target_arch=="x64"', {
380 '../chrome_frame/chrome_frame.gyp:chrome_tab_idl',
381 '../chrome_frame/chrome_frame.gyp:npchrome_frame',
390 'target_name': 'setup_unittests',
391 'type': 'executable',
394 'installer_util_strings',
396 '../base/base.gyp:base',
397 '../base/base.gyp:base_i18n',
398 '../base/base.gyp:test_support_base',
399 '../chrome_frame/chrome_frame.gyp:chrome_tab_idl',
400 '../testing/gmock.gyp:gmock',
401 '../testing/gtest.gyp:gtest',
405 '<(INTERMEDIATE_DIR)',
407 # TODO(robertshield): Move the items marked with "Move to lib"
408 # below into a separate lib and then link both setup.exe and
409 # setup_unittests.exe against that.
411 'installer/mini_installer/chrome.release', # Move to lib
412 'installer/mini_installer/appid.h',
413 'installer/mini_installer/chrome_appid.cc',
414 'installer/mini_installer/configuration.cc',
415 'installer/mini_installer/configuration.h',
416 'installer/mini_installer/configuration_test.cc',
417 'installer/mini_installer/decompress.cc',
418 'installer/mini_installer/decompress.h',
419 'installer/mini_installer/decompress_test.cc',
420 'installer/mini_installer/mini_string.cc',
421 'installer/mini_installer/mini_string.h',
422 'installer/mini_installer/mini_string_test.cc',
423 'installer/setup/install.cc', # Move to lib
424 'installer/setup/install.h', # Move to lib
425 'installer/setup/install_unittest.cc',
426 'installer/setup/install_worker.cc', # Move to lib
427 'installer/setup/install_worker.h', # Move to lib
428 'installer/setup/install_worker_unittest.cc',
429 'installer/setup/run_all_unittests.cc',
430 'installer/setup/setup_constants.cc', # Move to lib
431 'installer/setup/setup_constants.h', # Move to lib
432 'installer/setup/setup_unittests.rc',
433 'installer/setup/setup_unittests_resource.h',
434 'installer/setup/setup_util.cc',
435 'installer/setup/setup_util_unittest.cc',
436 'installer/setup/setup_util_unittest.h',
440 'rule_name': 'server_dlls', # Move to lib
441 'extension': 'release',
443 'scan_server_dlls_py' : 'tools/build/win/scan_server_dlls.py',
444 'template_file': 'installer/mini_installer/chrome.release',
447 '<(scan_server_dlls_py)',
451 '<(INTERMEDIATE_DIR)/registered_dlls.h',
455 '<(scan_server_dlls_py)',
456 '--output_dir=<(PRODUCT_DIR)',
457 '--input_file=<(RULE_INPUT_PATH)',
458 '--header_output_dir=<(INTERMEDIATE_DIR)',
459 # TODO(sgk): may just use environment variables
460 #'--distribution=$(CHROMIUM_BUILD)',
461 '--distribution=_google_chrome',
463 'msvs_cygwin_shell': 1,
466 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
467 'msvs_disabled_warnings': [ 4267, ],
471 ['OS=="win" and target_arch=="ia32"', {
474 'target_name': 'launcher_support64',
475 'type': 'static_library',
479 'direct_dependent_settings': {
485 '<@(nacl_win64_defines)',
488 '<(DEPTH)/base/base.gyp:base_nacl_win64',
492 'msvs_target_platform': 'x64',
496 'installer/launcher_support/chrome_launcher_support.cc',
497 'installer/launcher_support/chrome_launcher_support.h',
502 ['OS=="linux" and branding=="Chrome"', {
504 # Always google_chrome since this only applies to branding==Chrome.
505 'branding_dir': 'app/theme/google_chrome',
506 'branding_dir_100': 'app/theme/default_100_percent/google_chrome',
507 'version' : '<!(python <(version_py_path) -f ../chrome/VERSION -t "@MAJOR@.@MINOR@.@BUILD@.@PATCH@")',
508 'revision' : '<!(python ../build/util/lastchange.py --revision-only)',
509 'packaging_files_common': [
510 'installer/linux/common/apt.include',
511 'installer/linux/common/default-app.template',
512 'installer/linux/common/default-app-block.template',
513 'installer/linux/common/desktop.template',
514 'installer/linux/common/google-chrome/google-chrome.info',
515 'installer/linux/common/installer.include',
516 'installer/linux/common/postinst.include',
517 'installer/linux/common/prerm.include',
518 'installer/linux/common/repo.cron',
519 'installer/linux/common/rpm.include',
520 'installer/linux/common/rpmrepo.cron',
521 'installer/linux/common/symlinks.include',
522 'installer/linux/common/updater',
523 'installer/linux/common/variables.include',
524 'installer/linux/common/wrapper',
526 'packaging_files_deb': [
527 'installer/linux/debian/build.sh',
528 'installer/linux/debian/changelog.template',
529 'installer/linux/debian/control.template',
530 'installer/linux/debian/debian.menu',
531 'installer/linux/debian/expected_deps',
532 'installer/linux/debian/postinst',
533 'installer/linux/debian/postrm',
534 'installer/linux/debian/prerm',
536 'packaging_files_rpm': [
537 'installer/linux/rpm/build.sh',
538 'installer/linux/rpm/chrome.spec.template',
539 'installer/linux/rpm/expected_deps_i386',
540 'installer/linux/rpm/expected_deps_x86_64',
542 'packaging_files_binaries': [
543 # TODO(mmoss) Any convenient way to get all the relevant build
544 # files? (e.g. all locales, resources, etc.)
545 '<(PRODUCT_DIR)/chrome',
546 '<(PRODUCT_DIR)/chrome.pak',
547 '<(PRODUCT_DIR)/chrome_sandbox',
548 '<(PRODUCT_DIR)/libffmpegsumo.so',
549 '<(PRODUCT_DIR)/libppGoogleNaClPluginChrome.so',
550 '<(PRODUCT_DIR)/xdg-mime',
551 '<(PRODUCT_DIR)/xdg-settings',
552 '<(PRODUCT_DIR)/locales/en-US.pak',
553 '<(PRODUCT_DIR)/nacl_helper',
554 '<(PRODUCT_DIR)/nacl_helper_bootstrap',
555 '<(PRODUCT_DIR)/PepperFlash/libpepflashplayer.so',
556 '<(PRODUCT_DIR)/PepperFlash/manifest.json',
557 '<@(default_apps_list_linux_dest)',
559 'flock_bash': ['flock', '--', '/tmp/linux_package_lock', 'bash'],
560 'deb_build': '<(PRODUCT_DIR)/installer/debian/build.sh',
561 'rpm_build': '<(PRODUCT_DIR)/installer/rpm/build.sh',
562 'deb_cmd': ['<@(flock_bash)', '<(deb_build)', '-o' '<(PRODUCT_DIR)',
563 '-b', '<(PRODUCT_DIR)', '-a', '<(target_arch)'],
564 'rpm_cmd': ['<@(flock_bash)', '<(rpm_build)', '-o' '<(PRODUCT_DIR)',
565 '-b', '<(PRODUCT_DIR)', '-a', '<(target_arch)'],
567 ['target_arch=="ia32"', {
570 'packaging_files_binaries': [
571 '<(PRODUCT_DIR)/nacl_irt_x86_32.nexe',
572 '<(PRODUCT_DIR)/libwidevinecdmadapter.so',
573 '<(PRODUCT_DIR)/libwidevinecdm.so',
576 ['target_arch=="x64"', {
578 'rpm_arch': 'x86_64',
579 'packaging_files_binaries': [
580 '<(PRODUCT_DIR)/nacl_irt_x86_64.nexe',
581 '<(PRODUCT_DIR)/libwidevinecdmadapter.so',
582 '<(PRODUCT_DIR)/libwidevinecdm.so',
585 ['target_arch=="arm"', {
590 'packaging_files_binaries': [
591 '<(PRODUCT_DIR)/libpdf.so',
594 ['libpeer_target_type!="static_library"', {
595 'packaging_files_binaries': [
596 '<(PRODUCT_DIR)/lib/libpeerconnection.so',
603 'target_name': 'linux_installer_configs',
605 # Add these files to the build output so the build archives will be
606 # "hermetic" for packaging. This is only for branding="Chrome" since
607 # we only create packages for official builds.
610 'destination': '<(PRODUCT_DIR)/installer/debian/',
612 '<@(packaging_files_deb)',
616 'destination': '<(PRODUCT_DIR)/installer/rpm/',
618 '<@(packaging_files_rpm)',
622 'destination': '<(PRODUCT_DIR)/installer/common/',
624 '<@(packaging_files_common)',
627 # Additional theme resources needed for package building.
629 'destination': '<(PRODUCT_DIR)/installer/theme/',
631 '<(branding_dir_100)/product_logo_16.png',
632 '<(branding_dir)/product_logo_22.png',
633 '<(branding_dir)/product_logo_24.png',
634 '<(branding_dir_100)/product_logo_32.png',
635 '<(branding_dir)/product_logo_48.png',
636 '<(branding_dir)/product_logo_64.png',
637 '<(branding_dir)/product_logo_128.png',
638 '<(branding_dir)/product_logo_256.png',
639 '<(branding_dir)/product_logo_32.xpm',
640 '<(branding_dir)/BRANDING',
646 'action_name': 'save_build_info',
648 '<(branding_dir)/BRANDING',
650 '<(lastchange_path)',
653 '<(PRODUCT_DIR)/installer/version.txt',
655 # Just output the default version info variables.
657 'python', '<(version_py_path)',
658 '-f', '<(branding_dir)/BRANDING',
659 '-f', '<(version_path)',
660 '-f', '<(lastchange_path)',
667 'target_name': 'linux_packages_all',
668 'suppress_wildcard': 1,
671 'linux_packages_unstable',
672 'linux_packages_beta',
673 'linux_packages_stable',
677 # 'asan' is a developer, testing-only package, so it shouldn't be
678 # included in the 'linux_packages_all' collection.
679 'target_name': 'linux_packages_asan',
680 'suppress_wildcard': 1,
683 'linux_packages_asan_deb',
685 # ChromeOS doesn't care about RPM packages.
689 'linux_packages_asan_rpm',
695 # 'trunk' is a developer, testing-only package, so it shouldn't be
696 # included in the 'linux_packages_all' collection.
697 'target_name': 'linux_packages_trunk',
698 'suppress_wildcard': 1,
701 'linux_packages_trunk_deb',
703 # ChromeOS doesn't care about RPM packages.
707 'linux_packages_trunk_rpm',
713 'target_name': 'linux_packages_unstable',
714 'suppress_wildcard': 1,
717 'linux_packages_unstable_deb',
719 # ChromeOS doesn't care about RPM packages.
723 'linux_packages_unstable_rpm',
729 'target_name': 'linux_packages_beta',
730 'suppress_wildcard': 1,
733 'linux_packages_beta_deb',
735 # ChromeOS doesn't care about RPM packages.
739 'linux_packages_beta_rpm',
745 'target_name': 'linux_packages_stable',
746 'suppress_wildcard': 1,
749 'linux_packages_stable_deb',
751 # ChromeOS doesn't care about RPM packages.
755 'linux_packages_stable_rpm',
760 # TODO(mmoss) gyp looping construct would be handy here ...
761 # These package actions are the same except for the 'channel' variable.
763 'target_name': 'linux_packages_asan_deb',
764 'suppress_wildcard': 1,
768 'linux_installer_configs',
775 'action_name': 'deb_packages_<(channel)',
776 'process_outputs_as_sources': 1,
779 '<@(packaging_files_binaries)',
780 '<@(packaging_files_common)',
781 '<@(packaging_files_deb)',
784 '<(PRODUCT_DIR)/google-chrome-<(channel)_<(version)-1_<(deb_arch).deb',
786 'action': [ '<@(deb_cmd)', '-c', '<(channel)', ],
791 'target_name': 'linux_packages_trunk_deb',
792 'suppress_wildcard': 1,
796 'linux_installer_configs',
803 'action_name': 'deb_packages_<(channel)',
804 'process_outputs_as_sources': 1,
807 '<@(packaging_files_binaries)',
808 '<@(packaging_files_common)',
809 '<@(packaging_files_deb)',
812 '<(PRODUCT_DIR)/google-chrome-<(channel)_<(version)-1_<(deb_arch).deb',
814 'action': [ '<@(deb_cmd)', '-c', '<(channel)', ],
819 'target_name': 'linux_packages_unstable_deb',
820 'suppress_wildcard': 1,
824 'linux_installer_configs',
829 'channel': 'unstable',
831 'action_name': 'deb_packages_<(channel)',
832 'process_outputs_as_sources': 1,
835 '<@(packaging_files_binaries)',
836 '<@(packaging_files_common)',
837 '<@(packaging_files_deb)',
840 '<(PRODUCT_DIR)/google-chrome-<(channel)_<(version)-1_<(deb_arch).deb',
842 'action': [ '<@(deb_cmd)', '-c', '<(channel)', ],
847 'target_name': 'linux_packages_beta_deb',
848 'suppress_wildcard': 1,
852 'linux_installer_configs',
859 'action_name': 'deb_packages_<(channel)',
860 'process_outputs_as_sources': 1,
863 '<@(packaging_files_binaries)',
864 '<@(packaging_files_common)',
865 '<@(packaging_files_deb)',
868 '<(PRODUCT_DIR)/google-chrome-<(channel)_<(version)-1_<(deb_arch).deb',
870 'action': [ '<@(deb_cmd)', '-c', '<(channel)', ],
875 'target_name': 'linux_packages_stable_deb',
876 'suppress_wildcard': 1,
880 'linux_installer_configs',
887 'action_name': 'deb_packages_<(channel)',
888 'process_outputs_as_sources': 1,
891 '<@(packaging_files_binaries)',
892 '<@(packaging_files_common)',
893 '<@(packaging_files_deb)',
896 '<(PRODUCT_DIR)/google-chrome-<(channel)_<(version)-1_<(deb_arch).deb',
898 'action': [ '<@(deb_cmd)', '-c', '<(channel)', ],
903 'target_name': 'linux_packages_asan_rpm',
904 'suppress_wildcard': 1,
908 'linux_installer_configs',
915 'action_name': 'rpm_packages_<(channel)',
916 'process_outputs_as_sources': 1,
919 '<(PRODUCT_DIR)/installer/rpm/chrome.spec.template',
920 '<@(packaging_files_binaries)',
921 '<@(packaging_files_common)',
922 '<@(packaging_files_rpm)',
925 '<(PRODUCT_DIR)/google-chrome-<(channel)-<(version)-1.<(rpm_arch).rpm',
927 'action': [ '<@(rpm_cmd)', '-c', '<(channel)', ],
932 'target_name': 'linux_packages_trunk_rpm',
933 'suppress_wildcard': 1,
937 'linux_installer_configs',
944 'action_name': 'rpm_packages_<(channel)',
945 'process_outputs_as_sources': 1,
948 '<(PRODUCT_DIR)/installer/rpm/chrome.spec.template',
949 '<@(packaging_files_binaries)',
950 '<@(packaging_files_common)',
951 '<@(packaging_files_rpm)',
954 '<(PRODUCT_DIR)/google-chrome-<(channel)-<(version)-1.<(rpm_arch).rpm',
956 'action': [ '<@(rpm_cmd)', '-c', '<(channel)', ],
961 'target_name': 'linux_packages_unstable_rpm',
962 'suppress_wildcard': 1,
966 'linux_installer_configs',
971 'channel': 'unstable',
973 'action_name': 'rpm_packages_<(channel)',
974 'process_outputs_as_sources': 1,
977 '<(PRODUCT_DIR)/installer/rpm/chrome.spec.template',
978 '<@(packaging_files_binaries)',
979 '<@(packaging_files_common)',
980 '<@(packaging_files_rpm)',
983 '<(PRODUCT_DIR)/google-chrome-<(channel)-<(version)-1.<(rpm_arch).rpm',
985 'action': [ '<@(rpm_cmd)', '-c', '<(channel)', ],
990 'target_name': 'linux_packages_beta_rpm',
991 'suppress_wildcard': 1,
995 'linux_installer_configs',
1002 'action_name': 'rpm_packages_<(channel)',
1003 'process_outputs_as_sources': 1,
1006 '<(PRODUCT_DIR)/installer/rpm/chrome.spec.template',
1007 '<@(packaging_files_binaries)',
1008 '<@(packaging_files_common)',
1009 '<@(packaging_files_rpm)',
1012 '<(PRODUCT_DIR)/google-chrome-<(channel)-<(version)-1.<(rpm_arch).rpm',
1014 'action': [ '<@(rpm_cmd)', '-c', '<(channel)', ],
1019 'target_name': 'linux_packages_stable_rpm',
1020 'suppress_wildcard': 1,
1024 'linux_installer_configs',
1029 'channel': 'stable',
1031 'action_name': 'rpm_packages_<(channel)',
1032 'process_outputs_as_sources': 1,
1035 '<(PRODUCT_DIR)/installer/rpm/chrome.spec.template',
1036 '<@(packaging_files_binaries)',
1037 '<@(packaging_files_common)',
1038 '<@(packaging_files_rpm)',
1041 '<(PRODUCT_DIR)/google-chrome-<(channel)-<(version)-1.<(rpm_arch).rpm',
1043 'action': [ '<@(rpm_cmd)', '-c', '<(channel)', ],
1051 'mac_packaging_dir':
1052 '<(PRODUCT_DIR)/<(mac_product_name) Packaging',
1053 # <(PRODUCT_DIR) expands to $(BUILT_PRODUCTS_DIR), which doesn't
1054 # work properly in a shell script, where ${BUILT_PRODUCTS_DIR} is
1056 'mac_packaging_sh_dir':
1057 '${BUILT_PRODUCTS_DIR}/<(mac_product_name) Packaging',
1061 'target_name': 'installer_packaging',
1064 'installer/mac/third_party/bsdiff/goobsdiff.gyp:*',
1065 'installer/mac/third_party/xz/xz.gyp:*',
1068 ['buildtype=="Official"', {
1071 # Create sign.sh, the script that the packaging system will
1072 # use to sign the .app bundle.
1073 'action_name': 'Make sign.sh',
1075 'make_signers_sh_path': 'installer/mac/make_signers.sh',
1078 '<(make_signers_sh_path)',
1079 'installer/mac/sign_app.sh.in',
1080 'installer/mac/sign_versioned_dir.sh.in',
1081 'installer/mac/app_resource_rules.plist.in',
1085 '<(mac_packaging_dir)/sign_app.sh',
1086 '<(mac_packaging_dir)/sign_versioned_dir.sh',
1087 '<(mac_packaging_dir)/app_resource_rules.plist',
1090 '<(make_signers_sh_path)',
1091 '<(mac_packaging_sh_dir)',
1092 '<(mac_product_name)',
1097 }], # buildtype=="Official"
1098 ['branding=="Chrome" and buildtype=="Official"', {
1101 # copy_keychain_reauthorize.sh explains why this isn't in a
1102 # 'copies' block, but briefly: this is a prebuilt signed
1103 # binary component that relies on a correct signature to
1104 # function properly, and a normal 'copies' block sadly makes
1105 # a trivial modification to the file such that its signature
1106 # is no longer valid.
1107 'action_name': 'Copy keychain_reauthorize',
1109 'keychain_reauthorize_path': 'tools/build/mac/copy_keychain_reauthorize.sh',
1110 'keychain_reauthorize_normal_path': 'installer/mac/internal/keychain_reauthorize/com.google.Chrome',
1111 'keychain_reauthorize_canary_path': 'installer/mac/internal/keychain_reauthorize/com.google.Chrome.canary',
1112 'keychain_reauthorize_output_dir': '<(mac_packaging_dir)/.keychain_reauthorize',
1115 '<(keychain_reauthorize_path)',
1116 '<(keychain_reauthorize_normal_path)',
1117 '<(keychain_reauthorize_canary_path)',
1120 '<(keychain_reauthorize_output_dir)/com.google.Chrome',
1121 '<(keychain_reauthorize_output_dir)/com.google.Chrome.canary',
1124 '<(keychain_reauthorize_path)',
1125 '<(keychain_reauthorize_output_dir)',
1126 '<(keychain_reauthorize_normal_path)',
1127 '<(keychain_reauthorize_canary_path)',
1131 }], # branding=="Chrome" and buildtype=="Official"
1135 # Put the files where the packaging system will find them. The
1136 # packager will use these when building the "full installer"
1137 # disk images and delta/differential update disk images.
1138 'destination': '<(mac_packaging_dir)',
1140 '<(PRODUCT_DIR)/goobsdiff',
1141 '<(PRODUCT_DIR)/goobspatch',
1142 '<(PRODUCT_DIR)/liblzma_decompress.dylib',
1143 '<(PRODUCT_DIR)/xz',
1144 '<(PRODUCT_DIR)/xzdec',
1145 'installer/mac/dirdiffer.sh',
1146 'installer/mac/dirpatcher.sh',
1147 'installer/mac/dmgdiffer.sh',
1148 'installer/mac/pkg-dmg',
1151 ['mac_keystone==1', {
1153 'installer/mac/keystone_install.sh',
1156 ['branding=="Chrome" and buildtype=="Official"', {
1158 'app/theme/google_chrome/app_canary.icns',
1159 'app/theme/google_chrome/document_canary.icns',
1160 'installer/mac/internal/chrome_canary_dmg_dsstore',
1161 'installer/mac/internal/chrome_canary_dmg_icon.icns',
1162 'installer/mac/internal/chrome_dmg_background.png',
1163 'installer/mac/internal/chrome_dmg_dsstore',
1164 'installer/mac/internal/chrome_dmg_icon.icns',
1165 'installer/mac/internal/generate_dmgs',
1167 }], # branding=="Chrome" and buildtype=="Official"
1171 }, # target: installer_packaging
1173 'target_name': 'gcapi_lib',
1174 'type': 'static_library',
1179 'installer/gcapi_mac/gcapi.h',
1180 'installer/gcapi_mac/gcapi.mm',
1184 '$(SDKROOT)/System/Library/Frameworks/Cocoa.framework',
1188 'ARCHS': [ 'i386', 'x86_64' ],
1189 'MACOSX_DEPLOYMENT_TARGET': '10.4',
1190 'GCC_ENABLE_OBJC_GC': 'supported',
1194 'target_name': 'gcapi_example',
1195 'type': 'executable',
1203 'installer/gcapi_mac/gcapi_example_client.mm',
1208 [ 'branding == "Chrome"', {
1210 'branding_dir': 'app/theme/google_chrome',
1211 'branding_dir_100': 'app/theme/default_100_percent/google_chrome',
1213 }, { # else branding!="Chrome"
1215 'branding_dir': 'app/theme/chromium',
1216 'branding_dir_100': 'app/theme/default_100_percent/chromium',