media/webrtc/trunk/build/java_aidl.gypi

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
michael@0 2 # Use of this source code is governed by a BSD-style license that can be
michael@0 3 # found in the LICENSE file.
michael@0 4
michael@0 5 # This file is meant to be included into a target to provide a rule
michael@0 6 # to build Java aidl files in a consistent manner.
michael@0 7 #
michael@0 8 # To use this, create a gyp target with the following form:
michael@0 9 # {
michael@0 10 # 'target_name': 'aidl_aidl-file-name',
michael@0 11 # 'type': 'none',
michael@0 12 # 'variables': {
michael@0 13 # 'package_name': <name-of-package>
michael@0 14 # 'aidl_interface_file': '<interface-path>/<interface-file>.aidl',
michael@0 15 # },
michael@0 16 # 'sources': {
michael@0 17 # '<input-path1>/<input-file1>.aidl',
michael@0 18 # '<input-path2>/<input-file2>.aidl',
michael@0 19 # ...
michael@0 20 # },
michael@0 21 # 'includes': ['<path-to-this-file>/java_aidl.gypi'],
michael@0 22 # }
michael@0 23 #
michael@0 24 #
michael@0 25 # The generated java files will be:
michael@0 26 # <(PRODUCT_DIR)/lib.java/<input-file1>.java
michael@0 27 # <(PRODUCT_DIR)/lib.java/<input-file2>.java
michael@0 28 # ...
michael@0 29 #
michael@0 30 # TODO(cjhopman): dependents need to rebuild when this target's inputs have changed.
michael@0 31
michael@0 32 {
michael@0 33 'direct_dependent_settings': {
michael@0 34 'variables': {
michael@0 35 'generated_src_dirs': ['<(SHARED_INTERMEDIATE_DIR)/<(package_name)/aidl/'],
michael@0 36 },
michael@0 37 },
michael@0 38 'rules': [
michael@0 39 {
michael@0 40 'rule_name': 'compile_aidl',
michael@0 41 'extension': 'aidl',
michael@0 42 'inputs': [
michael@0 43 '<(android_sdk)/framework.aidl',
michael@0 44 '<(aidl_interface_file)',
michael@0 45 ],
michael@0 46 'outputs': [
michael@0 47 '<(SHARED_INTERMEDIATE_DIR)/<(package_name)/aidl/<(RULE_INPUT_ROOT).java',
michael@0 48 ],
michael@0 49 'action': [
michael@0 50 '<(android_sdk_tools)/aidl',
michael@0 51 '-p<(android_sdk)/framework.aidl',
michael@0 52 '-p<(aidl_interface_file)',
michael@0 53 '<(RULE_INPUT_PATH)',
michael@0 54 '<(SHARED_INTERMEDIATE_DIR)/<(package_name)/aidl/<(RULE_INPUT_ROOT).java',
michael@0 55 ],
michael@0 56 },
michael@0 57 ],
michael@0 58 }

mercurial