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/JniInterface.java',
16 'jni_gen_package': 'remoting',
17 'jni_generator_ptr_type': 'long',
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',
32 'client/jni/android_keymap.cc',
33 'client/jni/android_keymap.h',
34 'client/jni/chromoting_jni_instance.cc',
35 'client/jni/chromoting_jni_instance.h',
36 'client/jni/chromoting_jni_onload.cc',
37 'client/jni/chromoting_jni_runtime.cc',
38 'client/jni/chromoting_jni_runtime.h',
39 'client/jni/jni_frame_consumer.cc',
40 'client/jni/jni_frame_consumer.h',
42 }, # end of target 'remoting_client_jni'
44 'target_name': 'remoting_android_resources',
48 'destination': '<(SHARED_INTERMEDIATE_DIR)/remoting/android/res/drawable',
50 'resources/chromoting128.png',
51 'resources/icon_host.png',
55 }, # end of target 'remoting_android_resources'
57 'target_name': 'remoting_apk_manifest',
60 'android/java/AndroidManifest.xml.jinja2',
63 'rule_name': 'generate_manifest',
64 'extension': 'jinja2',
66 '<(remoting_localize_path)',
70 '<(SHARED_INTERMEDIATE_DIR)/remoting/android/<(RULE_INPUT_ROOT)',
73 'python', '<(remoting_localize_path)',
74 '--variables', '<(branding_path)',
75 '--template', '<(RULE_INPUT_PATH)',
76 '--locale_output', '<@(_outputs)',
80 }, # end of target 'remoting_apk_manifest'
82 'target_name': 'remoting_apk',
85 'remoting_android_resources',
86 'remoting_apk_manifest',
87 'remoting_client_jni',
90 'apk_name': '<!(python <(version_py_path) -f <(branding_path) -t "@APK_FILE_NAME@")',
91 'android_app_version_name': '<(version_full)',
92 'android_app_version_code': '<!(python tools/android_version.py <(android_app_version_name))',
93 'android_manifest_path': '<(SHARED_INTERMEDIATE_DIR)/remoting/android/AndroidManifest.xml',
94 'native_lib_target': 'libremoting_client_jni',
95 'java_in_dir': 'android/java',
96 'R_package': 'org.chromium.chromoting',
97 'package_name': '<(_target_name)',
98 'resource_dir': 'resources/android',
99 'additional_res_dirs': [ '<(SHARED_INTERMEDIATE_DIR)/remoting/android/res' ],
100 'additional_input_paths': [
101 '<(PRODUCT_DIR)/obj/remoting/remoting_android_resources.actions_rules_copies.stamp',
102 '<(PRODUCT_DIR)/obj/remoting/remoting_resources.actions_rules_copies.stamp',
105 'includes': [ '../build/java_apk.gypi' ],
106 }, # end of target 'remoting_apk'
108 # remoting_apk creates a .jar file as a side effect. Any Java targets
109 # that need that .jar in their classpath should depend on this target.
110 'target_name': 'remoting_apk_java',
115 'includes': [ '../build/apk_fake_jar.gypi' ],
116 }, # end of target 'remoting_apk_java'
118 'target_name': 'remoting_test_apk',
121 '../base/base.gyp:base_java_test_support',
125 'apk_name': 'ChromotingTest',
126 'java_in_dir': 'android/javatests',
129 'includes': [ '../build/java_apk.gypi' ],
130 }, # end of target 'remoting_test_apk'
131 ], # end of 'targets'
132 }], # 'OS=="android"'
134 ['OS=="android" and gtest_target_type=="shared_library"', {
137 'target_name': 'remoting_unittests_apk',
140 'remoting_unittests',
143 'test_suite_name': 'remoting_unittests',
144 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)remoting_unittests<(SHARED_LIB_SUFFIX)',
146 'includes': [ '../build/apk_test.gypi' ],
149 }], # 'OS=="android" and gtest_target_type=="shared_library"'
150 ], # end of 'conditions'