media/webrtc/trunk/build/java.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 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': 'my-package_java',
michael@0 11 # 'type': 'none',
michael@0 12 # 'variables': {
michael@0 13 # 'package_name': 'my-package',
michael@0 14 # 'java_in_dir': 'path/to/package/root',
michael@0 15 # },
michael@0 16 # 'includes': ['path/to/this/gypi/file'],
michael@0 17 # }
michael@0 18 #
michael@0 19 # The generated jar-file will be:
michael@0 20 # <(PRODUCT_DIR)/lib.java/chromium_<(package_name).jar
michael@0 21 # Required variables:
michael@0 22 # package_name - Used to name the intermediate output directory and in the
michael@0 23 # names of some output files.
michael@0 24 # java_in_dir - The top-level java directory. The src should be in
michael@0 25 # <java_in_dir>/src.
michael@0 26 # Optional/automatic variables:
michael@0 27 # additional_input_paths - These paths will be included in the 'inputs' list to
michael@0 28 # ensure that this target is rebuilt when one of these paths changes.
michael@0 29 # additional_src_dirs - Additional directories with .java files to be compiled
michael@0 30 # and included in the output of this target.
michael@0 31 # generated_src_dirs - Same as additional_src_dirs except used for .java files
michael@0 32 # that are generated at build time. This should be set automatically by a
michael@0 33 # target's dependencies. The .java files in these directories are not
michael@0 34 # included in the 'inputs' list (unlike additional_src_dirs).
michael@0 35 # input_jars_paths - The path to jars to be included in the classpath. This
michael@0 36 # should be filled automatically by depending on the appropriate targets.
michael@0 37
michael@0 38 {
michael@0 39 'dependencies': [
michael@0 40 '<(DEPTH)/build/build_output_dirs_android.gyp:build_output_dirs'
michael@0 41 ],
michael@0 42 # This all_dependent_settings is used for java targets only. This will add the
michael@0 43 # chromium_<(package_name) jar to the classpath of dependent java targets.
michael@0 44 'all_dependent_settings': {
michael@0 45 'variables': {
michael@0 46 'input_jars_paths': ['<(PRODUCT_DIR)/lib.java/chromium_<(package_name).jar'],
michael@0 47 },
michael@0 48 },
michael@0 49 'variables': {
michael@0 50 'input_jars_paths': [],
michael@0 51 'additional_src_dirs': [],
michael@0 52 'additional_input_paths': [],
michael@0 53 'generated_src_dirs': [],
michael@0 54 },
michael@0 55 'actions': [
michael@0 56 {
michael@0 57 'action_name': 'ant_<(package_name)',
michael@0 58 'message': 'Building <(package_name) java sources.',
michael@0 59 'inputs': [
michael@0 60 'android/ant/common.xml',
michael@0 61 'android/ant/chromium-jars.xml',
michael@0 62 '>!@(find >(java_in_dir) >(additional_src_dirs) -name "*.java")',
michael@0 63 '>@(input_jars_paths)',
michael@0 64 '>@(additional_input_paths)',
michael@0 65 ],
michael@0 66 'outputs': [
michael@0 67 '<(PRODUCT_DIR)/lib.java/chromium_<(package_name).jar',
michael@0 68 ],
michael@0 69 'action': [
michael@0 70 'ant',
michael@0 71 '-DCONFIGURATION_NAME=<(CONFIGURATION_NAME)',
michael@0 72 '-DANDROID_SDK=<(android_sdk)',
michael@0 73 '-DANDROID_SDK_ROOT=<(android_sdk_root)',
michael@0 74 '-DANDROID_SDK_TOOLS=<(android_sdk_tools)',
michael@0 75 '-DANDROID_SDK_VERSION=<(android_sdk_version)',
michael@0 76 '-DANDROID_GDBSERVER=<(android_gdbserver)',
michael@0 77 '-DPRODUCT_DIR=<(ant_build_out)',
michael@0 78
michael@0 79 '-DADDITIONAL_SRC_DIRS=>(additional_src_dirs)',
michael@0 80 '-DGENERATED_SRC_DIRS=>(generated_src_dirs)',
michael@0 81 '-DINPUT_JARS_PATHS=>(input_jars_paths)',
michael@0 82 '-DPACKAGE_NAME=<(package_name)',
michael@0 83
michael@0 84 '-Dbasedir=<(java_in_dir)',
michael@0 85 '-buildfile',
michael@0 86 '<(DEPTH)/build/android/ant/chromium-jars.xml'
michael@0 87 ]
michael@0 88 },
michael@0 89 ],
michael@0 90 }

mercurial