Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 'variables': { | 5 'variables': { |
| 6 'chromium_code': 1, | 6 'chromium_code': 1, |
| 7 | 7 |
| 8 'variables': { | 8 'variables': { |
| 9 'version_py_path': 'tools/build/version.py', | 9 'version_py_path': 'tools/build/version.py', |
| 10 'version_path': 'VERSION', | 10 'version_path': 'VERSION', |
| (...skipping 768 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 779 '-change', | 779 '-change', |
| 780 '@executable_path/../Versions/<(version_full)/<(mac_product_name ) Framework.framework/<(mac_product_name) Framework', | 780 '@executable_path/../Versions/<(version_full)/<(mac_product_name ) Framework.framework/<(mac_product_name) Framework', |
| 781 '@executable_path/../../../<(mac_product_name) Framework.framewo rk/<(mac_product_name) Framework', | 781 '@executable_path/../../../<(mac_product_name) Framework.framewo rk/<(mac_product_name) Framework', |
| 782 '${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}' | 782 '${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}' |
| 783 ], | 783 ], |
| 784 }, | 784 }, |
| 785 { | 785 { |
| 786 # Modify the Info.plist as needed. The script explains why this | 786 # Modify the Info.plist as needed. The script explains why this |
| 787 # is needed. This is also done in the chrome and chrome_dll | 787 # is needed. This is also done in the chrome and chrome_dll |
| 788 # targets. In this case, --breakpad=0, -k0, and -s0 are used | 788 # targets. In this case, --breakpad=0, -k0, and -s0 are used |
| 789 # because Breakpad, Keystone, and Subersion keys are never | 789 # because Breakpad, Keystone, and Subversion keys are never |
| 790 # placed into the helper. | 790 # placed into the helper. |
| 791 'postbuild_name': 'Tweak Info.plist', | 791 'postbuild_name': 'Tweak Info.plist', |
| 792 'action': ['<(tweak_info_plist_path)', | 792 'action': ['<(tweak_info_plist_path)', |
| 793 '--breakpad=0', | 793 '--breakpad=0', |
| 794 '-k0', | 794 '-k0', |
| 795 '-s0', | 795 '-s0', |
| 796 '<(branding)', | 796 '<(branding)', |
| 797 '<(mac_bundle_id)'], | 797 '<(mac_bundle_id)'], |
| 798 }, | 798 }, |
| 799 { | 799 { |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 839 'common/mac/app_mode_chrome_locator.h', | 839 'common/mac/app_mode_chrome_locator.h', |
| 840 'common/mac/app_mode_chrome_locator.mm', | 840 'common/mac/app_mode_chrome_locator.mm', |
| 841 'common/mac/app_mode_common.h', | 841 'common/mac/app_mode_common.h', |
| 842 'common/mac/app_mode_common.mm', | 842 'common/mac/app_mode_common.mm', |
| 843 ], | 843 ], |
| 844 'include_dirs': [ | 844 'include_dirs': [ |
| 845 '..', | 845 '..', |
| 846 ], | 846 ], |
| 847 }, # target app_mode_app_support | 847 }, # target app_mode_app_support |
| 848 { | 848 { |
| 849 # This produces the app mode loader, but not as a bundle. Chromium | 849 # This produces the template for app mode loader bundles. It's a |
| 850 # itself is responsible for producing bundles. | 850 # template in the sense that parts of it need to be "filled in" by |
| 851 # Chrome before it can be executed. | |
| 851 'target_name': 'app_mode_app', | 852 'target_name': 'app_mode_app', |
| 852 'type': 'executable', | 853 'type': 'executable', |
| 854 'mac_bundle' : 1, | |
| 853 'variables': { 'enable_wexit_time_destructors': 1, }, | 855 'variables': { 'enable_wexit_time_destructors': 1, }, |
| 854 'product_name': '<(mac_product_name) App Mode Loader', | 856 'product_name': 'app_mode_loader', |
| 855 'dependencies': [ | 857 'dependencies': [ |
| 856 'app_mode_app_support', | 858 'app_mode_app_support', |
| 859 'infoplist_strings_tool', | |
| 857 ], | 860 ], |
| 858 'sources': [ | 861 'sources': [ |
| 859 'app/app_mode_loader_mac.mm', | 862 'app/app_mode_loader_mac.mm', |
| 863 'app/app_mode-Info.plist', | |
| 860 ], | 864 ], |
| 861 'include_dirs': [ | 865 'include_dirs': [ |
| 862 '..', | 866 '..', |
| 863 ], | 867 ], |
| 864 'link_settings': { | 868 'link_settings': { |
| 865 'libraries': [ | 869 'libraries': [ |
| 866 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework', | 870 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework', |
| 867 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', | 871 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', |
| 868 ], | 872 ], |
| 869 }, | 873 }, |
| 874 'mac_bundle_resources!': [ | |
| 875 'app/app_mode-Info.plist', | |
| 876 ], | |
| 877 'mac_bundle_resources/': [ | |
| 878 ['exclude', '.*'], | |
| 879 ], | |
| 880 'xcode_settings': { | |
| 881 'INFOPLIST_FILE': 'app/app_mode-Info.plist', | |
| 882 'APP_MODE_APP_BUNDLE_ID': '<(mac_bundle_id).@APP_MODE_SHORTCUT_ID@', | |
|
Mark Mentovai
2012/02/23 17:46:02
To be safe, we should put all of these into their
| |
| 883 }, | |
| 884 'postbuilds' : [ | |
| 885 { | |
| 886 # Modify the Info.plist as needed. The script explains why this | |
| 887 # is needed. This is also done in the chrome and chrome_dll | |
| 888 # targets. In this case, --breakpad=0, -k0, and -s0 are used | |
| 889 # because Breakpad, Keystone, and Subversion keys are never | |
| 890 # placed into the app mode loader. | |
| 891 'postbuild_name': 'Tweak Info.plist', | |
| 892 'action': ['<(tweak_info_plist_path)', | |
| 893 '--breakpad=0', | |
| 894 '-k0', | |
| 895 '-s0', | |
| 896 '<(branding)', | |
| 897 '<(mac_bundle_id)'], | |
| 898 }, | |
| 899 ], | |
| 870 }, # target app_mode_app | 900 }, # target app_mode_app |
| 871 { | 901 { |
| 872 # Convenience target to build a disk image. | 902 # Convenience target to build a disk image. |
| 873 'target_name': 'build_app_dmg', | 903 'target_name': 'build_app_dmg', |
| 874 # Don't place this in the 'all' list; most won't want it. | 904 # Don't place this in the 'all' list; most won't want it. |
| 875 # In GYP, booleans are 0/1, not True/False. | 905 # In GYP, booleans are 0/1, not True/False. |
| 876 'suppress_wildcard': 1, | 906 'suppress_wildcard': 1, |
| 877 'type': 'none', | 907 'type': 'none', |
| 878 'dependencies': [ | 908 'dependencies': [ |
| 879 'chrome', | 909 'chrome', |
| (...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1323 'sources': [ | 1353 'sources': [ |
| 1324 'browser/safe_browsing/signature_util.h', | 1354 'browser/safe_browsing/signature_util.h', |
| 1325 'browser/safe_browsing/signature_util_win.cc', | 1355 'browser/safe_browsing/signature_util_win.cc', |
| 1326 'tools/safe_browsing/sb_sigutil.cc', | 1356 'tools/safe_browsing/sb_sigutil.cc', |
| 1327 ], | 1357 ], |
| 1328 }, | 1358 }, |
| 1329 ]}, # 'targets' | 1359 ]}, # 'targets' |
| 1330 ], # OS=="win" | 1360 ], # OS=="win" |
| 1331 ], # 'conditions' | 1361 ], # 'conditions' |
| 1332 } | 1362 } |
| OLD | NEW |