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.
10 'target_name': 'remoting_jni_headers',
13 'android/java/src/org/chromium/chromoting/jni/Client.java',
14 'android/java/src/org/chromium/chromoting/jni/JniInterface.java',
17 'jni_gen_package': 'remoting',
19 'includes': [ '../build/jni_generator.gypi' ],
20 }, # end of target 'remoting_jni_headers'
22 'target_name': 'remoting_client_jni',
23 'type': 'shared_library',
27 'remoting_jni_headers',
29 '../google_apis/google_apis.gyp:google_apis',
30 '../ui/events/events.gyp:dom_keycode_converter',
31 '../ui/gfx/gfx.gyp:gfx',
34 'client/jni/android_keymap.cc',
35 'client/jni/android_keymap.h',
36 'client/jni/chromoting_jni_instance.cc',
37 'client/jni/chromoting_jni_instance.h',
38 'client/jni/chromoting_jni_runtime.cc',
39 'client/jni/chromoting_jni_runtime.h',
40 'client/jni/jni_client.cc',
41 'client/jni/jni_client.h',
42 'client/jni/jni_frame_consumer.cc',
43 'client/jni/jni_frame_consumer.h',
44 'client/jni/remoting_jni_onload.cc',
45 'client/jni/remoting_jni_registrar.cc',
46 'client/jni/remoting_jni_registrar.h',
48 }, # end of target 'remoting_client_jni'
50 'target_name': 'remoting_android_resources',
54 'destination': '<(SHARED_INTERMEDIATE_DIR)/remoting/android/res/raw',
56 '<(SHARED_INTERMEDIATE_DIR)/remoting/credits.html',
57 'webapp/base/html/credits_css.css',
58 'webapp/base/html/main.css',
59 'webapp/base/js/credits_js.js',
64 'remoting_client_credits',
66 }, # end of target 'remoting_android_resources'
68 'target_name': 'remoting_apk_manifest',
71 'android/java/AndroidManifest.xml.jinja2',
74 'rule_name': 'generate_manifest',
75 'extension': 'jinja2',
77 '<(remoting_localize_path)',
81 '<(SHARED_INTERMEDIATE_DIR)/remoting/android/<(RULE_INPUT_ROOT)',
84 'python', '<(remoting_localize_path)',
85 '--variables', '<(branding_path)',
86 '--template', '<(RULE_INPUT_PATH)',
87 '--locale_output', '<@(_outputs)',
88 '--define', 'ENABLE_CARDBOARD=<(enable_cardboard)',
92 }, # end of target 'remoting_apk_manifest'
94 'target_name': 'remoting_android_client_java',
97 'java_in_dir': 'android/java',
98 'has_java_resources': 1,
99 'R_package': 'org.chromium.chromoting',
100 'R_package_relpath': 'org/chromium/chromoting',
101 'res_extra_dirs': [ '<(SHARED_INTERMEDIATE_DIR)/remoting/android/res' ],
103 '<!@pymod_do_main(grit_info <@(grit_defines) --outputs "<(SHARED_INTERMEDIATE_DIR)" resources/remoting_strings.grd)',
107 'remoting_android_resources',
108 '../base/base.gyp:base_java',
109 '../ui/android/ui_android.gyp:ui_java',
110 '../third_party/android_tools/android_tools.gyp:android_support_v7_appcompat_javalib',
111 '../third_party/android_tools/android_tools.gyp:android_support_v7_mediarouter_javalib',
112 '../third_party/android_tools/android_tools.gyp:android_support_v13_javalib',
113 '../third_party/android_tools/android_tools.gyp:google_play_services_javalib',
114 '../third_party/cardboard-java/cardboard.gyp:cardboard_jar',
116 'includes': [ '../build/java.gypi' ],
120 'additional_src_dirs': [
128 'target_name': 'remoting_apk',
131 'remoting_apk_manifest',
132 'remoting_client_jni',
133 'remoting_android_client_java',
136 'apk_name': '<!(python <(version_py_path) -f <(branding_path) -t "@APK_FILE_NAME@")',
137 'android_app_version_name': '<(version_full)',
138 'android_app_version_code': '<!(python tools/android_version.py <(android_app_version_name))',
139 'android_manifest_path': '<(SHARED_INTERMEDIATE_DIR)/remoting/android/AndroidManifest.xml',
140 'java_in_dir': 'android/apk',
141 'native_lib_target': 'libremoting_client_jni',
143 'includes': [ '../build/java_apk.gypi' ],
144 }, # end of target 'remoting_apk'
146 'target_name': 'remoting_test_apk',
149 '../base/base.gyp:base_java_test_support',
150 'remoting_android_client_java',
153 'apk_name': 'ChromotingTest',
154 'java_in_dir': 'android/javatests',
157 'includes': [ '../build/java_apk.gypi' ],
158 }, # end of target 'remoting_test_apk'
159 ], # end of 'targets'
160 }], # 'OS=="android"'
165 'target_name': 'remoting_unittests_apk',
168 'remoting_unittests',
171 'test_suite_name': 'remoting_unittests',
173 'includes': [ '../build/apk_test.gypi' ],
177 ], # end of 'conditions'