summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--remoting/client/ios/build/InfoPlist.strings.jinja23
-rw-r--r--remoting/client/ios/build/localizable_string_id_list.txt26
-rw-r--r--remoting/remoting.gyp1
-rw-r--r--remoting/remoting_ios.gypi102
5 files changed, 133 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 39f0863..75fcbc9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -247,6 +247,7 @@ vs-chromium-project.txt
/remoting/android/internal/
/remoting/appengine/
/remoting/host/installer/linux/internal/
+/remoting/ios/
/remoting/internal/
/remoting/proto/chromotocol_proto_lib.xml
/remoting/remoting_core_resources.xml
diff --git a/remoting/client/ios/build/InfoPlist.strings.jinja2 b/remoting/client/ios/build/InfoPlist.strings.jinja2
new file mode 100644
index 0000000..b264b99
--- /dev/null
+++ b/remoting/client/ios/build/InfoPlist.strings.jinja2
@@ -0,0 +1,3 @@
+"CFBundleName" = "{{ ids.IDS_PRODUCT_NAME }}";
+"CFBundleDisplayName" = "{{ ids.IDS_PRODUCT_NAME }}";
+
diff --git a/remoting/client/ios/build/localizable_string_id_list.txt b/remoting/client/ios/build/localizable_string_id_list.txt
new file mode 100644
index 0000000..3349c32
--- /dev/null
+++ b/remoting/client/ios/build/localizable_string_id_list.txt
@@ -0,0 +1,26 @@
+IDS_ACTIONBAR_HELP
+IDS_ASK_PIN_DIALOG_LABEL
+IDS_CANCEL
+IDS_CONNECT_BUTTON
+IDS_CREDITS
+IDS_HOST_LIST_EMPTY_ANDROID
+IDS_HOST_OFFLINE_SUBTITLE
+IDS_HOST_SETUP_LINK_ANDROID
+IDS_LAST_ONLINE_SUBTITLE
+IDS_MODE_ME2ME
+IDS_PIN_MESSAGE_ANDROID
+IDS_REMEMBER_PIN
+IDS_SEND_CTRL_ALT_DEL
+IDS_SIGN_IN_BUTTON
+IDS_TITLE_AUTHENTICATE
+IDS_ACTIONBAR_HELP_TITLE
+IDS_ERROR_HOST_IS_OFFLINE
+IDS_ERROR_INVALID_ACCESS_CODE
+IDS_ERROR_INCOMPATIBLE_PROTOCOL
+IDS_ERROR_UNEXPECTED
+IDS_ERROR_HOST_OVERLOAD
+IDS_ERROR_P2P_FAILURE
+IDS_SELECT_TOUCH_MODE
+IDS_SELECT_TRACKPAD_MODE
+IDS_WELCOME
+IDS_SHORT_DESCRIPTION
diff --git a/remoting/remoting.gyp b/remoting/remoting.gyp
index b645eff..e45e264 100644
--- a/remoting/remoting.gyp
+++ b/remoting/remoting.gyp
@@ -33,6 +33,7 @@
'remoting_client.gypi',
'remoting_host.gypi',
'remoting_host_srcs.gypi',
+ 'remoting_ios.gypi',
'remoting_key_tester.gypi',
'remoting_locales.gypi',
'remoting_options.gypi',
diff --git a/remoting/remoting_ios.gypi b/remoting/remoting_ios.gypi
new file mode 100644
index 0000000..83f1d45
--- /dev/null
+++ b/remoting/remoting_ios.gypi
@@ -0,0 +1,102 @@
+# Copyright 2016 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+{
+ 'conditions': [
+ ['OS=="ios"', {
+ 'variables': {
+ 'remoting_ios_locales': [
+ 'ar', 'ca', 'cs', 'da', 'de', 'el', 'en', 'en-GB', 'es', 'es-MX',
+ 'fi', 'fr', 'he', 'hi', 'hr', 'hu', 'id', 'it', 'ja', 'ko', 'ms',
+ 'nb', 'nl', 'pl', 'pt', 'pt-PT', 'ro', 'ru', 'sk', 'sv', 'th', 'tr',
+ 'uk', 'vi', 'zh-CN', 'zh-TW',
+ ],
+ 'locales_out_dir': '<(SHARED_INTERMEDIATE_DIR)/remoting/ios/resources',
+ 'remoting_ios_locale_files': [
+ '<!@pymod_do_main(remoting_ios_localize --print-outputs '
+ ' --to-dir <(locales_out_dir) '
+ '<(remoting_ios_locales))',
+ ],
+ 'remoting_ios_credits_files': [
+ '<(SHARED_INTERMEDIATE_DIR)/remoting/ios/credits',
+ ],
+ 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/remoting/ios/grit',
+ }, # variables
+
+ 'targets': [
+ {
+ 'target_name': 'remoting_ios_l10n',
+ 'type': 'none',
+ 'variables': {
+ 'string_id_list': 'client/ios/build/localizable_string_id_list.txt',
+ 'infoplist_template': 'client/ios/build/InfoPlist.strings.jinja2',
+ },
+ 'actions': [
+ {
+ 'action_name': 'Generate <locale>.pak from remoting_strings.grd',
+ 'variables': {
+ 'grit_grd_file': 'resources/remoting_strings.grd',
+ 'grit_whitelist': '',
+ 'grit_additional_defines': [
+ '-D', '_google_chrome'
+ ],
+ },
+ 'includes': [ '../build/grit_action.gypi' ],
+ },
+ {
+ 'action_name': 'Generate Localizable.strings and InfoPlist.strings for each locale',
+ 'inputs': [
+ 'tools/build/remoting_ios_localize.py',
+ '<(string_id_list)',
+ '<(infoplist_template)',
+ '<!@pymod_do_main(remoting_ios_localize --print-inputs '
+ '--from-dir <(grit_out_dir)/remoting/resources '
+ '<(remoting_ios_locales))',
+ ],
+ 'outputs': [
+ '<@(remoting_ios_locale_files)'
+ ],
+ 'action': [
+ 'python', 'tools/build/remoting_ios_localize.py',
+ '--from-dir', '<(grit_out_dir)/remoting/resources',
+ '--to-dir', '<(locales_out_dir)',
+ '--localizable-list', '<(string_id_list)',
+ '--infoplist-template', '<(infoplist_template)',
+ '--resources-header', '<(grit_out_dir)/remoting/base/string_resources.h',
+ '<@(remoting_ios_locales)',
+ ],
+ },
+ ],
+ # Copy string_resources.h from gen/remoting/ios/grit/remoting/resources
+ # to gen/remoting/ios for a nicer include path.
+ 'copies': [
+ {
+ 'destination': '<(SHARED_INTERMEDIATE_DIR)/remoting/ios',
+ 'files': [
+ '<(grit_out_dir)/remoting/base/string_resources.h',
+ ],
+ },
+ ],
+ }, # end of target 'remoting_ios_l10n'
+
+ {
+ 'target_name': 'remoting_ios_credits',
+ 'type': 'shared_library',
+ 'product_extension': 'bundle',
+ 'mac_bundle': 1,
+ 'mac_bundle_resources': [
+ '<(SHARED_INTERMEDIATE_DIR)/remoting/credits.html',
+ 'webapp/base/html/credits_css.css',
+ 'webapp/base/html/main.css',
+ 'webapp/base/js/credits_js.js',
+ ],
+ 'dependencies': [
+ 'remoting_client_credits',
+ ],
+ }, # end of target remoting_ios_credits
+
+ ], # end of 'targets'
+ }], # 'OS=="ios"
+ ], # end of 'conditions'
+}