Update V8 to version 4.5.80.
[chromium-blink-merge.git] / remoting / remoting_android.gypi
blob5894e92f578f73e43deeacdbd0434a567998e5e0
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_android_resources',
45           'type': 'none',
46           'copies': [
47             {
48               'destination': '<(SHARED_INTERMEDIATE_DIR)/remoting/android/res/raw',
49               'files': [
50                 '<(SHARED_INTERMEDIATE_DIR)/remoting/credits.html',
51                 'webapp/base/html/credits_css.css',
52                 'webapp/base/html/main.css',
53                 'webapp/base/js/credits_js.js',
54               ],
55             },
56           ],
57           'dependencies': [
58             'remoting_client_credits',
59           ],
60         },  # end of target 'remoting_android_resources'
61         {
62           'target_name': 'remoting_apk_manifest',
63           'type': 'none',
64           'sources': [
65             'android/java/AndroidManifest.xml.jinja2',
66           ],
67           'rules': [{
68             'rule_name': 'generate_manifest',
69             'extension': 'jinja2',
70             'inputs': [
71               '<(remoting_localize_path)',
72               '<(branding_path)',
73             ],
74             'outputs': [
75               '<(SHARED_INTERMEDIATE_DIR)/remoting/android/<(RULE_INPUT_ROOT)',
76             ],
77             'action': [
78               'python', '<(remoting_localize_path)',
79               '--variables', '<(branding_path)',
80               '--template', '<(RULE_INPUT_PATH)',
81               '--locale_output', '<@(_outputs)',
82               'en',
83             ],
84           }],
85         },  # end of target 'remoting_apk_manifest'
86         {
87           'target_name': 'remoting_android_client_java',
88           'type': 'none',
89           'variables': {
90             'java_in_dir': 'android/java',
91             'has_java_resources': 1,
92             'R_package': 'org.chromium.chromoting',
93             'R_package_relpath': 'org/chromium/chromoting',
94             'res_extra_dirs': [ '<(SHARED_INTERMEDIATE_DIR)/remoting/android/res' ],
95             'res_extra_files': [
96               '<!@pymod_do_main(grit_info <@(grit_defines) --outputs "<(SHARED_INTERMEDIATE_DIR)" resources/remoting_strings.grd)',
97             ],
98           },
99           'dependencies': [
100             'remoting_android_resources',
101             '../base/base.gyp:base_java',
102             '../ui/android/ui_android.gyp:ui_java',
103             '../third_party/android_tools/android_tools.gyp:android_support_v7_appcompat_javalib',
104             '../third_party/android_tools/android_tools.gyp:android_support_v7_mediarouter_javalib',
105             '../third_party/android_tools/android_tools.gyp:android_support_v13_javalib',
106             '../third_party/android_tools/android_tools.gyp:google_play_services_javalib',
107           ],
108           'includes': [ '../build/java.gypi' ],
109           'conditions' : [
110             ['enable_cast==1', {
111               'variables': {
112                 'additional_src_dirs': [
113                   'android/cast',
114                 ],
115               },
116             }],
117           ],
118         },
119         {
120           'target_name': 'remoting_apk',
121           'type': 'none',
122           'dependencies': [
123             'remoting_apk_manifest',
124             'remoting_client_jni',
125             'remoting_android_client_java',
126           ],
127           'variables': {
128             'apk_name': '<!(python <(version_py_path) -f <(branding_path) -t "@APK_FILE_NAME@")',
129             'android_app_version_name': '<(version_full)',
130             'android_app_version_code': '<!(python tools/android_version.py <(android_app_version_name))',
131             'android_manifest_path': '<(SHARED_INTERMEDIATE_DIR)/remoting/android/AndroidManifest.xml',
132             'java_in_dir': 'android/apk',
133             'native_lib_target': 'libremoting_client_jni',
134           },
135           'includes': [ '../build/java_apk.gypi' ],
136         },  # end of target 'remoting_apk'
137         {
138           'target_name': 'remoting_test_apk',
139           'type': 'none',
140           'dependencies': [
141             '../base/base.gyp:base_java_test_support',
142             'remoting_android_client_java',
143           ],
144           'variables': {
145             'apk_name': 'ChromotingTest',
146             'java_in_dir': 'android/javatests',
147             'is_test_apk': 1,
148           },
149           'includes': [ '../build/java_apk.gypi' ],
150         },  # end of target 'remoting_test_apk'
151       ], # end of 'targets'
152     }],  # 'OS=="android"'
154     ['OS=="android"', {
155       'targets': [
156         {
157           'target_name': 'remoting_unittests_apk',
158           'type': 'none',
159           'dependencies': [
160             'remoting_unittests',
161           ],
162           'variables': {
163             'test_suite_name': 'remoting_unittests',
164           },
165           'includes': [ '../build/apk_test.gypi' ],
166         },
167       ],
168     }],  # 'OS=="android"
169   ],  # end of 'conditions'