Update V8 to version 4.5.23.
[chromium-blink-merge.git] / remoting / remoting_android.gypi
blobb6d77c8981921c8cb0c06a8d253f823436de7371
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.
6   'conditions': [
7     ['OS=="android"', {
8       'targets': [
9         {
10           'target_name': 'remoting_jni_headers',
11           'type': 'none',
12           'sources': [
13             'android/java/src/org/chromium/chromoting/jni/JniInterface.java',
14           ],
15           'variables': {
16             'jni_gen_package': 'remoting',
17           },
18           'includes': [ '../build/jni_generator.gypi' ],
19         },  # end of target 'remoting_jni_headers'
20         {
21           'target_name': 'remoting_client_jni',
22           'type': 'shared_library',
23           'dependencies': [
24             'remoting_base',
25             'remoting_client',
26             'remoting_jni_headers',
27             'remoting_protocol',
28             '../google_apis/google_apis.gyp:google_apis',
29             '../ui/gfx/gfx.gyp:gfx',
30           ],
31           'sources': [
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',
41           ],
42         },  # end of target 'remoting_client_jni'
43         {
44           'target_name': 'remoting_apk_manifest',
45           'type': 'none',
46           'sources': [
47             'android/java/AndroidManifest.xml.jinja2',
48           ],
49           'rules': [{
50             'rule_name': 'generate_manifest',
51             'extension': 'jinja2',
52             'inputs': [
53               '<(remoting_localize_path)',
54               '<(branding_path)',
55             ],
56             'outputs': [
57               '<(SHARED_INTERMEDIATE_DIR)/remoting/android/<(RULE_INPUT_ROOT)',
58             ],
59             'action': [
60               'python', '<(remoting_localize_path)',
61               '--variables', '<(branding_path)',
62               '--template', '<(RULE_INPUT_PATH)',
63               '--locale_output', '<@(_outputs)',
64               'en',
65             ],
66           }],
67         },  # end of target 'remoting_apk_manifest'
68         {
69           'target_name': 'remoting_android_client_java',
70           'type': 'none',
71           'variables': {
72             'java_in_dir': 'android/java',
73             'has_java_resources': 1,
74             'R_package': 'org.chromium.chromoting',
75             'R_package_relpath': 'org/chromium/chromoting',
76             'res_extra_dirs': [ '<(SHARED_INTERMEDIATE_DIR)/remoting/android/res' ],
77             'res_extra_files': [
78               '<!@pymod_do_main(grit_info <@(grit_defines) --outputs "<(SHARED_INTERMEDIATE_DIR)" resources/remoting_strings.grd)',
79             ],
80           },
81           'dependencies': [
82             '../base/base.gyp:base_java',
83             '../ui/android/ui_android.gyp:ui_java',
84             '../third_party/android_tools/android_tools.gyp:android_support_v7_appcompat_javalib',
85             '../third_party/android_tools/android_tools.gyp:android_support_v7_mediarouter_javalib',
86             '../third_party/android_tools/android_tools.gyp:android_support_v13_javalib',
87             '../third_party/android_tools/android_tools.gyp:google_play_services_javalib',
88           ],
89           'includes': [ '../build/java.gypi' ],
90           'conditions' : [
91             ['enable_cast==1', {
92               'variables': {
93                 'additional_src_dirs': [
94                   'android/cast',
95                 ],
96               },
97             }],
98           ],
99         },
100         {
101           'target_name': 'remoting_apk',
102           'type': 'none',
103           'dependencies': [
104             'remoting_apk_manifest',
105             'remoting_client_jni',
106             'remoting_android_client_java',
107           ],
108           'variables': {
109             'apk_name': '<!(python <(version_py_path) -f <(branding_path) -t "@APK_FILE_NAME@")',
110             'android_app_version_name': '<(version_full)',
111             'android_app_version_code': '<!(python tools/android_version.py <(android_app_version_name))',
112             'android_manifest_path': '<(SHARED_INTERMEDIATE_DIR)/remoting/android/AndroidManifest.xml',
113             'java_in_dir': 'android/apk',
114             'native_lib_target': 'libremoting_client_jni',
115           },
116           'includes': [ '../build/java_apk.gypi' ],
117         },  # end of target 'remoting_apk'
118         {
119           'target_name': 'remoting_test_apk',
120           'type': 'none',
121           'dependencies': [
122             '../base/base.gyp:base_java_test_support',
123             'remoting_android_client_java',
124           ],
125           'variables': {
126             'apk_name': 'ChromotingTest',
127             'java_in_dir': 'android/javatests',
128             'is_test_apk': 1,
129           },
130           'includes': [ '../build/java_apk.gypi' ],
131         },  # end of target 'remoting_test_apk'
132       ], # end of 'targets'
133     }],  # 'OS=="android"'
135     ['OS=="android"', {
136       'targets': [
137         {
138           'target_name': 'remoting_unittests_apk',
139           'type': 'none',
140           'dependencies': [
141             'remoting_unittests',
142           ],
143           'variables': {
144             'test_suite_name': 'remoting_unittests',
145           },
146           'includes': [ '../build/apk_test.gypi' ],
147         },
148       ],
149     }],  # 'OS=="android"
150   ],  # end of 'conditions'