Infobar material design refresh: bg color
[chromium-blink-merge.git] / remoting / remoting_android.gypi
blob061465c7980c96d6d3d5451201f0f37533a90d83
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/Client.java',
14             'android/java/src/org/chromium/chromoting/jni/JniInterface.java',
15           ],
16           'variables': {
17             'jni_gen_package': 'remoting',
18           },
19           'includes': [ '../build/jni_generator.gypi' ],
20         },  # end of target 'remoting_jni_headers'
21         {
22           'target_name': 'remoting_client_jni',
23           'type': 'shared_library',
24           'dependencies': [
25             'remoting_base',
26             'remoting_client',
27             'remoting_jni_headers',
28             'remoting_protocol',
29             '../google_apis/google_apis.gyp:google_apis',
30             '../ui/gfx/gfx.gyp:gfx',
31           ],
32           'sources': [
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',
46           ],
47         },  # end of target 'remoting_client_jni'
48         {
49           'target_name': 'remoting_android_resources',
50           'type': 'none',
51           'copies': [
52             {
53               'destination': '<(SHARED_INTERMEDIATE_DIR)/remoting/android/res/raw',
54               'files': [
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',
59               ],
60             },
61           ],
62           'dependencies': [
63             'remoting_client_credits',
64           ],
65         },  # end of target 'remoting_android_resources'
66         {
67           'target_name': 'remoting_apk_manifest',
68           'type': 'none',
69           'sources': [
70             'android/java/AndroidManifest.xml.jinja2',
71           ],
72           'rules': [{
73             'rule_name': 'generate_manifest',
74             'extension': 'jinja2',
75             'inputs': [
76               '<(remoting_localize_path)',
77               '<(branding_path)',
78             ],
79             'outputs': [
80               '<(SHARED_INTERMEDIATE_DIR)/remoting/android/<(RULE_INPUT_ROOT)',
81             ],
82             'action': [
83               'python', '<(remoting_localize_path)',
84               '--variables', '<(branding_path)',
85               '--template', '<(RULE_INPUT_PATH)',
86               '--locale_output', '<@(_outputs)',
87               '--define', 'ENABLE_CARDBOARD=<(enable_cardboard)',
88               'en',
89             ],
90           }],
91         },  # end of target 'remoting_apk_manifest'
92         {
93           'target_name': 'remoting_android_client_java',
94           'type': 'none',
95           'variables': {
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' ],
101             'res_extra_files': [
102               '<!@pymod_do_main(grit_info <@(grit_defines) --outputs "<(SHARED_INTERMEDIATE_DIR)" resources/remoting_strings.grd)',
103             ],
104           },
105           'dependencies': [
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',
114           ],
115           'includes': [ '../build/java.gypi' ],
116           'conditions' : [
117             ['enable_cast==1', {
118               'variables': {
119                 'additional_src_dirs': [
120                   'android/cast',
121                 ],
122               },
123             }],
124           ],
125         },
126         {
127           'target_name': 'remoting_apk',
128           'type': 'none',
129           'dependencies': [
130             'remoting_apk_manifest',
131             'remoting_client_jni',
132             'remoting_android_client_java',
133           ],
134           'variables': {
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',
141           },
142           'includes': [ '../build/java_apk.gypi' ],
143         },  # end of target 'remoting_apk'
144         {
145           'target_name': 'remoting_test_apk',
146           'type': 'none',
147           'dependencies': [
148             '../base/base.gyp:base_java_test_support',
149             'remoting_android_client_java',
150           ],
151           'variables': {
152             'apk_name': 'ChromotingTest',
153             'java_in_dir': 'android/javatests',
154             'is_test_apk': 1,
155           },
156           'includes': [ '../build/java_apk.gypi' ],
157         },  # end of target 'remoting_test_apk'
158       ], # end of 'targets'
159     }],  # 'OS=="android"'
161     ['OS=="android"', {
162       'targets': [
163         {
164           'target_name': 'remoting_unittests_apk',
165           'type': 'none',
166           'dependencies': [
167             'remoting_unittests',
168           ],
169           'variables': {
170             'test_suite_name': 'remoting_unittests',
171           },
172           'includes': [ '../build/apk_test.gypi' ],
173         },
174       ],
175     }],  # 'OS=="android"
176   ],  # end of 'conditions'