| OLD | NEW |
| (Empty) | |
| 1 # Copyright 2014 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. |
| 4 |
| 5 { |
| 6 'variables': { |
| 7 'remoting_host_installer_mac_roots': [ |
| 8 'host/installer/mac/', |
| 9 '<(DEPTH)/chrome/installer/mac/', |
| 10 ], |
| 11 'remoting_host_installer_mac_files': [ |
| 12 'host/installer/mac/do_signing.sh', |
| 13 'host/installer/mac/do_signing.props', |
| 14 'host/installer/mac/ChromotingHost.pkgproj', |
| 15 'host/installer/mac/ChromotingHostService.pkgproj', |
| 16 'host/installer/mac/ChromotingHostUninstaller.pkgproj', |
| 17 'host/installer/mac/LaunchAgents/org.chromium.chromoting.plist', |
| 18 'host/installer/mac/PrivilegedHelperTools/org.chromium.chromoting.me2me.sh
', |
| 19 'host/installer/mac/Config/org.chromium.chromoting.conf', |
| 20 'host/installer/mac/Scripts/keystone_install.sh', |
| 21 'host/installer/mac/Scripts/remoting_postflight.sh', |
| 22 'host/installer/mac/Scripts/remoting_preflight.sh', |
| 23 'host/installer/mac/Keystone/GoogleSoftwareUpdate.pkg', |
| 24 '<(DEPTH)/chrome/installer/mac/pkg-dmg', |
| 25 ], |
| 26 }, |
| 27 |
| 28 'conditions': [ |
| 29 ['OS=="mac"', { |
| 30 'targets': [ |
| 31 { |
| 32 'target_name': 'remoting_host_uninstaller', |
| 33 'type': 'executable', |
| 34 'mac_bundle': 1, |
| 35 'variables': { |
| 36 'bundle_id': '<!(python <(version_py_path) -f <(branding_path) -t "@
MAC_UNINSTALLER_BUNDLE_ID@")', |
| 37 }, |
| 38 'dependencies': [ |
| 39 '<(DEPTH)/base/base.gyp:base', |
| 40 'remoting_infoplist_strings', |
| 41 ], |
| 42 'sources': [ |
| 43 'host/constants_mac.cc', |
| 44 'host/constants_mac.h', |
| 45 'host/installer/mac/uninstaller/remoting_uninstaller.h', |
| 46 'host/installer/mac/uninstaller/remoting_uninstaller.mm', |
| 47 'host/installer/mac/uninstaller/remoting_uninstaller_app.h', |
| 48 'host/installer/mac/uninstaller/remoting_uninstaller_app.mm', |
| 49 ], |
| 50 'xcode_settings': { |
| 51 'INFOPLIST_FILE': 'host/installer/mac/uninstaller/remoting_uninstall
er-Info.plist', |
| 52 'INFOPLIST_PREPROCESS': 'YES', |
| 53 'INFOPLIST_PREPROCESSOR_DEFINITIONS': 'VERSION_FULL="<(version_full)
" VERSION_SHORT="<(version_short)" BUNDLE_ID="<(bundle_id)"', |
| 54 }, |
| 55 'mac_bundle_resources': [ |
| 56 'host/installer/mac/uninstaller/remoting_uninstaller.icns', |
| 57 'host/installer/mac/uninstaller/remoting_uninstaller.xib', |
| 58 'host/installer/mac/uninstaller/remoting_uninstaller-Info.plist', |
| 59 |
| 60 # Localized strings for 'Info.plist' |
| 61 '<!@pymod_do_main(remoting_localize --locale_output ' |
| 62 '"<(SHARED_INTERMEDIATE_DIR)/remoting/remoting_uninstaller-InfoP
list.strings/@{json_suffix}.lproj/InfoPlist.strings" ' |
| 63 '--print_only <(remoting_locales))', |
| 64 ], |
| 65 'mac_bundle_resources!': [ |
| 66 'host/installer/mac/uninstaller/remoting_uninstaller-Info.plist', |
| 67 ], |
| 68 }, # end of target 'remoting_host_uninstaller' |
| 69 |
| 70 # This packages up the files needed for the remoting host installer so |
| 71 # they can be sent off to be signed. |
| 72 # We don't build an installer here because we don't have signed binaries
. |
| 73 { |
| 74 'target_name': 'remoting_me2me_host_archive', |
| 75 'type': 'none', |
| 76 'dependencies': [ |
| 77 'remoting_host_prefpane', |
| 78 'remoting_host_uninstaller', |
| 79 'remoting_me2me_host', |
| 80 'remoting_me2me_native_messaging_host', |
| 81 'remoting_native_messaging_manifests', |
| 82 ], |
| 83 'variables': { |
| 84 'host_name': '<!(python <(version_py_path) -f <(branding_path) -t "@
HOST_PLUGIN_FILE_NAME@")', |
| 85 'host_service_name': '<!(python <(version_py_path) -f <(branding_pat
h) -t "@DAEMON_FILE_NAME@")', |
| 86 'host_uninstaller_name': '<!(python <(version_py_path) -f <(branding
_path) -t "@MAC_UNINSTALLER_NAME@")', |
| 87 'bundle_prefix': '<!(python <(version_py_path) -f <(branding_path) -
t "@MAC_UNINSTALLER_BUNDLE_PREFIX@")', |
| 88 }, |
| 89 'actions': [ |
| 90 { |
| 91 'action_name': 'Zip installer files for signing', |
| 92 'temp_dir': '<(SHARED_INTERMEDIATE_DIR)/remoting/remoting-me2me-ho
st', |
| 93 'zip_path': '<(PRODUCT_DIR)/remoting-me2me-host-<(OS).zip', |
| 94 'variables': { |
| 95 'host_name_nospace': '<!(echo <(host_name) | sed "s/ //g")', |
| 96 'host_service_name_nospace': '<!(echo <(host_service_name) | sed
"s/ //g")', |
| 97 'host_uninstaller_name_nospace': '<!(echo <(host_uninstaller_nam
e) | sed "s/ //g")', |
| 98 }, |
| 99 'generated_files': [ |
| 100 '<(PRODUCT_DIR)/remoting_host_prefpane.prefPane', |
| 101 '<(PRODUCT_DIR)/remoting_me2me_host.app', |
| 102 '<(PRODUCT_DIR)/remoting_host_uninstaller.app', |
| 103 '<(PRODUCT_DIR)/remoting_native_messaging_host', |
| 104 '<(PRODUCT_DIR)/remoting/com.google.chrome.remote_desktop.json', |
| 105 ], |
| 106 'generated_files_dst': [ |
| 107 'PreferencePanes/org.chromium.chromoting.prefPane', |
| 108 'PrivilegedHelperTools/org.chromium.chromoting.me2me_host.app', |
| 109 'Applications/<(host_uninstaller_name).app', |
| 110 'PrivilegedHelperTools/org.chromium.chromoting.me2me_host.app/Co
ntents/MacOS/native_messaging_host', |
| 111 'Config/com.google.chrome.remote_desktop.json', |
| 112 ], |
| 113 'source_files': [ |
| 114 '<@(remoting_host_installer_mac_files)', |
| 115 ], |
| 116 'defs': [ |
| 117 'VERSION=<(version_full)', |
| 118 'VERSION_SHORT=<(version_short)', |
| 119 'VERSION_MAJOR=<(version_major)', |
| 120 'VERSION_MINOR=<(version_minor)', |
| 121 'HOST_NAME=<(host_name)', |
| 122 'HOST_SERVICE_NAME=<(host_service_name)', |
| 123 'HOST_UNINSTALLER_NAME=<(host_uninstaller_name)', |
| 124 'HOST_PKG=<(host_name)', |
| 125 'HOST_SERVICE_PKG=<(host_service_name_nospace)', |
| 126 'HOST_UNINSTALLER_PKG=<(host_uninstaller_name_nospace)', |
| 127 'BUNDLE_ID_HOST=<(bundle_prefix).<(host_name_nospace)', |
| 128 'BUNDLE_ID_HOST_SERVICE=<(bundle_prefix).<(host_service_name_nos
pace)', |
| 129 'BUNDLE_ID_HOST_UNINSTALLER=<(bundle_prefix).<(host_uninstaller_
name_nospace)', |
| 130 'DMG_VOLUME_NAME=<(host_name) <(version_full)', |
| 131 'DMG_FILE_NAME=<!(echo <(host_name) | sed "s/ //g")-<(version_fu
ll)', |
| 132 ], |
| 133 'inputs': [ |
| 134 'host/installer/build-installer-archive.py', |
| 135 '<@(_source_files)', |
| 136 ], |
| 137 'outputs': [ |
| 138 '<(_zip_path)', |
| 139 ], |
| 140 'action': [ |
| 141 'python', 'host/installer/build-installer-archive.py', |
| 142 '<(_temp_dir)', |
| 143 '<(_zip_path)', |
| 144 '--source-file-roots', '<@(remoting_host_installer_mac_roots)', |
| 145 '--source-files', '<@(_source_files)', |
| 146 '--generated-files', '<@(_generated_files)', |
| 147 '--generated-files-dst', '<@(_generated_files_dst)', |
| 148 '--defs', '<@(_defs)', |
| 149 ], |
| 150 }, |
| 151 ], # actions |
| 152 }, # end of target 'remoting_me2me_host_archive' |
| 153 |
| 154 { |
| 155 'target_name': 'remoting_host_prefpane', |
| 156 'type': 'loadable_module', |
| 157 'mac_bundle': 1, |
| 158 'product_extension': 'prefPane', |
| 159 'defines': [ |
| 160 'JSON_USE_EXCEPTION=0', |
| 161 ], |
| 162 'dependencies': [ |
| 163 'remoting_infoplist_strings', |
| 164 ], |
| 165 'include_dirs': [ |
| 166 '../third_party/jsoncpp/overrides/include/', |
| 167 '../third_party/jsoncpp/source/include/', |
| 168 '../third_party/jsoncpp/source/src/lib_json/', |
| 169 ], |
| 170 |
| 171 # These source files are included directly, instead of adding target |
| 172 # dependencies, because the targets are not yet built for 64-bit on |
| 173 # Mac OS X - http://crbug.com/125116. |
| 174 # |
| 175 # TODO(lambroslambrou): Fix this when Chrome supports building for |
| 176 # Mac OS X 64-bit - http://crbug.com/128122. |
| 177 'sources': [ |
| 178 '../third_party/jsoncpp/source/src/lib_json/json_reader.cpp', |
| 179 '../third_party/jsoncpp/overrides/src/lib_json/json_value.cpp', |
| 180 '../third_party/jsoncpp/source/src/lib_json/json_writer.cpp', |
| 181 '../third_party/modp_b64/modp_b64.cc', |
| 182 'host/constants_mac.cc', |
| 183 'host/constants_mac.h', |
| 184 'host/host_config.cc', |
| 185 'host/mac/me2me_preference_pane.h', |
| 186 'host/mac/me2me_preference_pane.mm', |
| 187 'host/mac/me2me_preference_pane_confirm_pin.h', |
| 188 'host/mac/me2me_preference_pane_confirm_pin.mm', |
| 189 'host/mac/me2me_preference_pane_disable.h', |
| 190 'host/mac/me2me_preference_pane_disable.mm', |
| 191 ], |
| 192 'link_settings': { |
| 193 'libraries': [ |
| 194 '$(SDKROOT)/System/Library/Frameworks/Cocoa.framework', |
| 195 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework', |
| 196 '$(SDKROOT)/System/Library/Frameworks/PreferencePanes.framework', |
| 197 '$(SDKROOT)/System/Library/Frameworks/Security.framework', |
| 198 ], |
| 199 }, |
| 200 'variables': { |
| 201 'bundle_id': '<!(python <(version_py_path) -f <(branding_path) -t "@
MAC_PREFPANE_BUNDLE_ID@")', |
| 202 }, |
| 203 'xcode_settings': { |
| 204 'ARCHS': ['i386', 'x86_64'], |
| 205 'GCC_ENABLE_OBJC_GC': 'supported', |
| 206 'INFOPLIST_FILE': 'host/mac/me2me_preference_pane-Info.plist', |
| 207 'INFOPLIST_PREPROCESS': 'YES', |
| 208 'INFOPLIST_PREPROCESSOR_DEFINITIONS': 'VERSION_FULL="<(version_full)
" VERSION_SHORT="<(version_short)" BUNDLE_ID="<(bundle_id)"', |
| 209 }, |
| 210 'mac_bundle_resources': [ |
| 211 'host/mac/me2me_preference_pane.xib', |
| 212 'host/mac/me2me_preference_pane_confirm_pin.xib', |
| 213 'host/mac/me2me_preference_pane_disable.xib', |
| 214 'host/mac/me2me_preference_pane-Info.plist', |
| 215 'resources/chromoting128.png', |
| 216 |
| 217 # Localized strings for 'Info.plist' |
| 218 '<!@pymod_do_main(remoting_localize --locale_output ' |
| 219 '"<(SHARED_INTERMEDIATE_DIR)/remoting/me2me_preference_pane-Info
Plist.strings/@{json_suffix}.lproj/InfoPlist.strings" ' |
| 220 '--print_only <(remoting_locales))', |
| 221 ], |
| 222 'mac_bundle_resources!': [ |
| 223 'host/mac/me2me_preference_pane-Info.plist', |
| 224 ], |
| 225 'conditions': [ |
| 226 ['mac_breakpad==1', { |
| 227 'variables': { |
| 228 # A real .dSYM is needed for dump_syms to operate on. |
| 229 'mac_real_dsym': 1, |
| 230 }, |
| 231 }], # 'mac_breakpad==1' |
| 232 ], # conditions |
| 233 }, # end of target 'remoting_host_prefpane' |
| 234 ], # end of 'targets' |
| 235 }], # 'OS=="mac"' |
| 236 |
| 237 ], # end of 'conditions' |
| 238 } |
| OLD | NEW |