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/gfx/gfx.gyp:gfx',
33 'client/jni/android_keymap.cc',
34 'client/jni/android_keymap.h',
35 'client/jni/chromoting_jni_instance.cc',
36 'client/jni/chromoting_jni_instance.h',
37 'client/jni/chromoting_jni_runtime.cc',
38 'client/jni/chromoting_jni_runtime.h',
39 'client/jni/jni_client.cc',
40 'client/jni/jni_client.h',
41 'client/jni/jni_frame_consumer.cc',
42 'client/jni/jni_frame_consumer.h',
43 'client/jni/remoting_jni_onload.cc',
44 'client/jni/remoting_jni_registrar.cc',
45 'client/jni/remoting_jni_registrar.h',
47 }, # end of target 'remoting_client_jni'
49 'target_name': 'remoting_android_resources',
53 'destination': '<(SHARED_INTERMEDIATE_DIR)/remoting/android/res/raw',
55 '<(SHARED_INTERMEDIATE_DIR)/remoting/credits.html',
56 'webapp/base/html/credits_css.css',
57 'webapp/base/html/main.css',
58 'webapp/base/js/credits_js.js',
63 'remoting_client_credits',
65 }, # end of target 'remoting_android_resources'
67 'target_name': 'remoting_apk_manifest',
70 'android/java/AndroidManifest.xml.jinja2',
73 'rule_name': 'generate_manifest',
74 'extension': 'jinja2',
76 '<(remoting_localize_path)',
80 '<(SHARED_INTERMEDIATE_DIR)/remoting/android/<(RULE_INPUT_ROOT)',
83 'python', '<(remoting_localize_path)',
84 '--variables', '<(branding_path)',
85 '--template', '<(RULE_INPUT_PATH)',
86 '--locale_output', '<@(_outputs)',
87 '--define', 'ENABLE_CARDBOARD=<(enable_cardboard)',
91 }, # end of target 'remoting_apk_manifest'
93 'target_name': 'remoting_android_client_java',
96 'java_in_dir': 'android/java',
97 'has_java_resources': 1,
98 'R_package': 'org.chromium.chromoting',
99 'R_package_relpath': 'org/chromium/chromoting',
100 'res_extra_dirs': [ '<(SHARED_INTERMEDIATE_DIR)/remoting/android/res' ],
102 '<!@pymod_do_main(grit_info <@(grit_defines) --outputs "<(SHARED_INTERMEDIATE_DIR)" resources/remoting_strings.grd)',
106 'remoting_android_resources',
107 '../base/base.gyp:base_java',
108 '../ui/android/ui_android.gyp:ui_java',
109 '../third_party/android_tools/android_tools.gyp:android_support_v7_appcompat_javalib',
110 '../third_party/android_tools/android_tools.gyp:android_support_v7_mediarouter_javalib',
111 '../third_party/android_tools/android_tools.gyp:android_support_v13_javalib',
112 '../third_party/android_tools/android_tools.gyp:google_play_services_javalib',
113 '../third_party/cardboard-java/cardboard.gyp:cardboard_jar',
115 'includes': [ '../build/java.gypi' ],
119 'additional_src_dirs': [
127 'target_name': 'remoting_apk',
130 'remoting_apk_manifest',
131 'remoting_client_jni',
132 'remoting_android_client_java',
135 'apk_name': '<!(python <(version_py_path) -f <(branding_path) -t "@APK_FILE_NAME@")',
136 'android_app_version_name': '<(version_full)',
137 'android_app_version_code': '<!(python tools/android_version.py <(android_app_version_name))',
138 'android_manifest_path': '<(SHARED_INTERMEDIATE_DIR)/remoting/android/AndroidManifest.xml',
139 'java_in_dir': 'android/apk',
140 'native_lib_target': 'libremoting_client_jni',
142 'includes': [ '../build/java_apk.gypi' ],
143 }, # end of target 'remoting_apk'
145 'target_name': 'remoting_test_apk',
148 '../base/base.gyp:base_java_test_support',
149 'remoting_android_client_java',
152 'apk_name': 'ChromotingTest',
153 'java_in_dir': 'android/javatests',
156 'includes': [ '../build/java_apk.gypi' ],
157 }, # end of target 'remoting_test_apk'
158 ], # end of 'targets'
159 }], # 'OS=="android"'
164 'target_name': 'remoting_unittests_apk',
167 'remoting_unittests',
170 'test_suite_name': 'remoting_unittests',
172 'includes': [ '../build/apk_test.gypi' ],
176 ], # end of 'conditions'