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',
18 'includes': [ '../build/jni_generator.gypi' ],
19 }, # end of target 'remoting_jni_headers'
21 'target_name': 'remoting_client_jni',
22 'type': 'shared_library',
26 'remoting_jni_headers',
28 '../google_apis/google_apis.gyp:google_apis',
29 '../ui/gfx/gfx.gyp:gfx',
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',
62 'android/cast/AndroidManifest.xml.jinja2'
64 }, { # 'enable_cast != 1'
66 'android/java/AndroidManifest.xml.jinja2',
71 'rule_name': 'generate_manifest',
72 'extension': 'jinja2',
74 '<(remoting_localize_path)',
78 '<(SHARED_INTERMEDIATE_DIR)/remoting/android/<(RULE_INPUT_ROOT)',
81 'python', '<(remoting_localize_path)',
82 '--variables', '<(branding_path)',
83 '--template', '<(RULE_INPUT_PATH)',
84 '--locale_output', '<@(_outputs)',
88 }, # end of target 'remoting_apk_manifest'
90 'target_name': 'remoting_android_client_java',
93 'java_in_dir': 'android/java',
94 'has_java_resources': 1,
95 'R_package': 'org.chromium.chromoting',
96 'R_package_relpath': 'org/chromium/chromoting',
97 'res_extra_dirs': [ '<(SHARED_INTERMEDIATE_DIR)/remoting/android/res' ],
99 '<!@pymod_do_main(grit_info <@(grit_defines) --outputs "<(SHARED_INTERMEDIATE_DIR)" resources/remoting_strings.grd)',
100 '<(SHARED_INTERMEDIATE_DIR)/remoting/android/res/drawable/chromoting128.png',
101 '<(SHARED_INTERMEDIATE_DIR)/remoting/android/res/drawable/icon_host.png',
105 'android_support_v4_javalib_no_res',
106 '../base/base.gyp:base_java',
107 '../ui/android/ui_android.gyp:ui_java',
108 'remoting_android_resources',
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',
112 'includes': [ '../build/java.gypi' ],
116 'additional_src_dirs': [
121 'google_play_services_javalib',
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'
159 # This jar contains the Android support v4 libary. It does not have
160 # any associated resources.
161 'target_name': 'android_support_v4_javalib_no_res',
164 'jar_path': '../third_party/android_tools/sdk/extras/android/support/v4/android-support-v4.jar',
166 'includes': ['../build/java_prebuilt.gypi'],
167 }, # end of target 'android_support_v4_javalib_no_res'
168 ], # end of 'targets'
173 # This jar contains the Google Play services library without the
174 # resources needed for the library to work. See crbug.com/274697 or
175 # ../third_party/android_tools/android_tools.gyp for more info.
176 # This target will fail to build unless you have a local version
177 # of the Google Play services jar.
178 'target_name': 'google_play_services_javalib_no_res',
181 'jar_path': 'android/google-play-services_lib/libs/google-play-services.jar',
183 'includes': ['../build/java_prebuilt.gypi'],
185 }, # end of target 'google_play_services_javalib_no_res'
187 # This target contains the Google Play services library with the
188 # resources needed. It will fail to build unless you have a local
189 # version of the Google Play services libary project.
190 # TODO(aiguha): Solve issue of needing to use local version. Also,
191 # watch crbug.com/274697.
192 'target_name': 'google_play_services_javalib',
195 'java_in_dir': 'android/google-play-services_lib/',
196 'R_package': ['com.google.android.gms'],
197 'R_package_relpath': ['com/google/android/gms'],
198 'has_java_resources': 1,
199 'res_v14_verify_only': 1,
202 'google_play_services_javalib_no_res',
204 'includes': ['../build/java.gypi'],
205 }, # end of target 'google_play_services_javalib'
209 }], # 'OS=="android"'
214 'target_name': 'remoting_unittests_apk',
217 'remoting_unittests',
220 'test_suite_name': 'remoting_unittests',
222 'includes': [ '../build/apk_test.gypi' ],
226 ], # end of 'conditions'