# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'conditions': [ ['OS=="android"', { 'targets': [ { 'target_name': 'remoting_jni_headers', 'type': 'none', 'sources': [ 'android/java/src/org/chromium/chromoting/jni/JniInterface.java', ], 'variables': { 'jni_gen_package': 'remoting', 'jni_generator_ptr_type': 'long', }, 'includes': [ '../build/jni_generator.gypi' ], }, # end of target 'remoting_jni_headers' { 'target_name': 'remoting_client_jni', 'type': 'shared_library', 'dependencies': [ 'remoting_base', 'remoting_client', 'remoting_jni_headers', 'remoting_protocol', '../google_apis/google_apis.gyp:google_apis', ], 'sources': [ 'client/jni/android_keymap.cc', 'client/jni/android_keymap.h', 'client/jni/chromoting_jni_instance.cc', 'client/jni/chromoting_jni_instance.h', 'client/jni/chromoting_jni_onload.cc', 'client/jni/chromoting_jni_runtime.cc', 'client/jni/chromoting_jni_runtime.h', 'client/jni/jni_frame_consumer.cc', 'client/jni/jni_frame_consumer.h', ], }, # end of target 'remoting_client_jni' { 'target_name': 'remoting_android_resources', 'type': 'none', 'copies': [ { 'destination': '<(SHARED_INTERMEDIATE_DIR)/remoting/android/res/drawable', 'files': [ 'resources/chromoting128.png', 'resources/icon_host.png', ], }, { 'destination': '<(SHARED_INTERMEDIATE_DIR)/remoting/android/res/layout', 'files': [ 'resources/layout/desktop.xml', 'resources/layout/host.xml', 'resources/layout/main.xml', 'resources/layout/pin_dialog.xml', ], }, { 'destination': '<(SHARED_INTERMEDIATE_DIR)/remoting/android/res/menu', 'files': [ 'resources/menu/chromoting_actionbar.xml', 'resources/menu/desktop_actionbar.xml', ], }, { 'destination': '<(SHARED_INTERMEDIATE_DIR)/remoting/android/res/values', 'files': [ 'resources/strings.xml', ], }, ], }, # end of target 'remoting_android_resources' { 'target_name': 'remoting_apk_manifest', 'type': 'none', 'sources': [ 'android/java/AndroidManifest.xml.jinja2', ], 'rules': [{ 'rule_name': 'generate_manifest', 'extension': 'jinja2', 'inputs': [ '<(remoting_localize_path)', '<(branding_path)', '<(RULE_INPUT_PATH)', ], 'outputs': [ '<(SHARED_INTERMEDIATE_DIR)/remoting/android/<(RULE_INPUT_ROOT)', ], 'action': [ 'python', '<(remoting_localize_path)', '--variables', '<(branding_path)', '--template', '<(RULE_INPUT_PATH)', '--locale_output', '<@(_outputs)', 'en', ], }], }, # end of target 'remoting_apk_manifest' { 'target_name': 'remoting_apk', 'type': 'none', 'dependencies': [ 'remoting_android_resources', 'remoting_apk_manifest', 'remoting_client_jni', ], 'variables': { 'apk_name': '