| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 # This file is meant to be included into a target to provide a rule | 5 # This file is meant to be included into a target to provide a rule |
| 6 # to build Android APKs in a consistent manner. | 6 # to build Android APKs in a consistent manner. |
| 7 # | 7 # |
| 8 # To use this, create a gyp target with the following form: | 8 # To use this, create a gyp target with the following form: |
| 9 # { | 9 # { |
| 10 # 'target_name': 'my_package_apk', | 10 # 'target_name': 'my_package_apk', |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 # that are generated at build time. This should be set automatically by a | 45 # that are generated at build time. This should be set automatically by a |
| 46 # target's dependencies. The .java files in these directories are not | 46 # target's dependencies. The .java files in these directories are not |
| 47 # included in the 'inputs' list (unlike additional_src_dirs). | 47 # included in the 'inputs' list (unlike additional_src_dirs). |
| 48 # input_jars_paths - The path to jars to be included in the classpath. This | 48 # input_jars_paths - The path to jars to be included in the classpath. This |
| 49 # should be filled automatically by depending on the appropriate targets. | 49 # should be filled automatically by depending on the appropriate targets. |
| 50 # native_libs_paths - The path to any native library to be included in this | 50 # native_libs_paths - The path to any native library to be included in this |
| 51 # target. | 51 # target. |
| 52 | 52 |
| 53 { | 53 { |
| 54 'variables': { | 54 'variables': { |
| 55 'asset_location': '', | 55 'asset_location%': '', |
| 56 'additional_input_paths': [], | 56 'additional_input_paths': [], |
| 57 'input_jars_paths': [], | 57 'input_jars_paths': [], |
| 58 'native_libs_paths': [], | 58 'native_libs_paths': [], |
| 59 'additional_src_dirs': [], | 59 'additional_src_dirs': [], |
| 60 'generated_src_dirs': [], | 60 'generated_src_dirs': [], |
| 61 }, | 61 }, |
| 62 'actions': [ | 62 'actions': [ |
| 63 { | 63 { |
| 64 'action_name': 'ant_<(package_name)_apk', | 64 'action_name': 'ant_<(package_name)_apk', |
| 65 'message': 'Building <(package_name) apk.', | 65 'message': 'Building <(package_name) apk.', |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 '-DPACKAGE_NAME=<(package_name)', | 100 '-DPACKAGE_NAME=<(package_name)', |
| 101 '-DRESOURCE_DIR=<(resource_dir)', | 101 '-DRESOURCE_DIR=<(resource_dir)', |
| 102 | 102 |
| 103 '-Dbasedir=<(java_in_dir)', | 103 '-Dbasedir=<(java_in_dir)', |
| 104 '-buildfile', | 104 '-buildfile', |
| 105 '<(DEPTH)/build/android/ant/chromium-apk.xml' | 105 '<(DEPTH)/build/android/ant/chromium-apk.xml' |
| 106 ] | 106 ] |
| 107 }, | 107 }, |
| 108 ], | 108 ], |
| 109 } | 109 } |
| OLD | NEW |