OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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 'conditions': [ | 6 'conditions': [ |
7 ['OS=="ios"', { | 7 ['OS=="ios"', { |
8 'variables': { | 8 'variables': { |
| 9 'bundle_identifier' : 'org.chromium.ChromotingDemo', |
9 'remoting_ios_locales': [ | 10 'remoting_ios_locales': [ |
10 'ar', 'ca', 'cs', 'da', 'de', 'el', 'en', 'en-GB', 'es', 'es-MX', | 11 'ar', 'ca', 'cs', 'da', 'de', 'el', 'en', 'en-GB', 'es', 'es-MX', |
11 'fi', 'fr', 'he', 'hi', 'hr', 'hu', 'id', 'it', 'ja', 'ko', 'ms', | 12 'fi', 'fr', 'he', 'hi', 'hr', 'hu', 'id', 'it', 'ja', 'ko', 'ms', |
12 'nb', 'nl', 'pl', 'pt', 'pt-PT', 'ro', 'ru', 'sk', 'sv', 'th', 'tr', | 13 'nb', 'nl', 'pl', 'pt', 'pt-PT', 'ro', 'ru', 'sk', 'sv', 'th', 'tr', |
13 'uk', 'vi', 'zh-CN', 'zh-TW', | 14 'uk', 'vi', 'zh-CN', 'zh-TW', |
14 ], | 15 ], |
15 'locales_out_dir': '<(SHARED_INTERMEDIATE_DIR)/remoting/ios/resources', | 16 'locales_out_dir': '<(SHARED_INTERMEDIATE_DIR)/remoting/ios/resources', |
16 'remoting_ios_locale_files': [ | 17 'remoting_ios_locale_files': [ |
17 '<!@pymod_do_main(remoting_ios_localize --print-outputs ' | 18 '<!@pymod_do_main(remoting_ios_localize --print-outputs ' |
18 ' --to-dir <(locales_out_dir) ' | 19 ' --to-dir <(locales_out_dir) ' |
19 '<(remoting_ios_locales))', | 20 '<(remoting_ios_locales))', |
20 ], | 21 ], |
21 'remoting_ios_credits_files': [ | 22 'remoting_ios_credits_files': [ |
22 '<(SHARED_INTERMEDIATE_DIR)/remoting/ios/credits', | 23 '<(SHARED_INTERMEDIATE_DIR)/remoting/ios/credits', |
23 ], | 24 ], |
24 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/remoting/ios/grit', | 25 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/remoting/ios/grit', |
25 }, # variables | 26 }, # variables |
26 | 27 |
27 'targets': [ | 28 'targets': [ |
28 { | 29 { |
| 30 'target_name': 'remoting_client_ios_demo', |
| 31 'type': 'executable', |
| 32 'mac_bundle': 1, |
| 33 'product_name': 'Chromoting Demo', |
| 34 'sources': [ |
| 35 'client/ios/main.mm', |
| 36 ], |
| 37 'xcode_settings': { |
| 38 'CLANG_ENABLE_OBJC_ARC': 'YES', |
| 39 'INFOPLIST_FILE': 'client/ios/remoting_ios-Info.plist', |
| 40 'BUNDLE_SHORT_VERSION': '<(version_short)', |
| 41 'BUNDLE_VERSION': '<(version_full)', |
| 42 'BUNDLE_IDENTIFIER': '<(bundle_identifier)', |
| 43 }, |
| 44 'include_dirs': [ |
| 45 '<(DEPTH)', |
| 46 ], |
| 47 'mac_bundle_resources': [ |
| 48 ], |
| 49 'dependencies': [ |
| 50 'remoting_client_ios_static', |
| 51 ], |
| 52 }, # end of target 'remoting_client_ios_demo' |
| 53 |
| 54 { |
| 55 'target_name': 'remoting_client_ios_static', |
| 56 'type': 'static_library', |
| 57 'sources': [ |
| 58 'client/ios/app_delegate.h', |
| 59 'client/ios/app_delegate.mm', |
| 60 'client/ios/example_view_controller.h', |
| 61 'client/ios/example_view_controller.mm', |
| 62 ], |
| 63 'xcode_settings': { |
| 64 'CLANG_ENABLE_OBJC_ARC': 'YES', |
| 65 'CLANG_CXX_LANGUAGE_STANDARD': 'gnu++11', |
| 66 }, |
| 67 'include_dirs': [ |
| 68 '<(DEPTH)', |
| 69 '<(DEPTH)/third_party', |
| 70 ], |
| 71 'dependencies': [ |
| 72 'remoting_base', |
| 73 'remoting_client', |
| 74 'remoting_protocol', |
| 75 '<(DEPTH)/base/base.gyp:base', |
| 76 '<(DEPTH)/base/base.gyp:base_i18n', |
| 77 '<(DEPTH)/base/base.gyp:base_static', |
| 78 '<(DEPTH)/ui/base/ui_base.gyp:ui_base', |
| 79 ], |
| 80 'link_settings': { |
| 81 'libraries': [ |
| 82 '$(SDKROOT)/System/Library/Frameworks/Accelerate.framework', |
| 83 '$(SDKROOT)/System/Library/Frameworks/AudioToolbox.framework', |
| 84 '$(SDKROOT)/System/Library/Frameworks/CoreAudio.framework', |
| 85 '$(SDKROOT)/System/Library/Frameworks/CoreData.framework', |
| 86 '$(SDKROOT)/System/Library/Frameworks/CoreMIDI.framework', |
| 87 '$(SDKROOT)/System/Library/Frameworks/CoreVideo.framework', |
| 88 '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework', |
| 89 '$(SDKROOT)/System/Library/Frameworks/GLKit.framework', |
| 90 '$(SDKROOT)/System/Library/Frameworks/OpenGLES.framework', |
| 91 ], |
| 92 }, |
| 93 }, # end of target 'remoting_client_ios_static' |
| 94 |
| 95 { |
29 'target_name': 'remoting_ios_l10n', | 96 'target_name': 'remoting_ios_l10n', |
30 'type': 'none', | 97 'type': 'none', |
31 'variables': { | 98 'variables': { |
32 'string_id_list': 'client/ios/build/localizable_string_id_list.txt', | 99 'string_id_list': 'client/ios/build/localizable_string_id_list.txt', |
33 'infoplist_template': 'client/ios/build/InfoPlist.strings.jinja2', | 100 'infoplist_template': 'client/ios/build/InfoPlist.strings.jinja2', |
34 }, | 101 }, |
35 'actions': [ | 102 'actions': [ |
36 { | 103 { |
37 'action_name': 'Generate <locale>.pak from remoting_strings.grd', | 104 'action_name': 'Generate <locale>.pak from remoting_strings.grd', |
38 'variables': { | 105 'variables': { |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 ], | 160 ], |
94 'dependencies': [ | 161 'dependencies': [ |
95 'remoting_client_credits', | 162 'remoting_client_credits', |
96 ], | 163 ], |
97 }, # end of target remoting_ios_credits | 164 }, # end of target remoting_ios_credits |
98 | 165 |
99 ], # end of 'targets' | 166 ], # end of 'targets' |
100 }], # 'OS=="ios" | 167 }], # 'OS=="ios" |
101 ], # end of 'conditions' | 168 ], # end of 'conditions' |
102 } | 169 } |
OLD | NEW |