Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(137)

Side by Side Diff: build/uiautomator_test.gypi

Issue 13333004: [uiautomator] Add a gypi for building Android uiautomator test jars. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed comment Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2013 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 package prebuilt Java JARs in a consistent manner. 6 # to build uiautomator dexed tests jar.
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_java', 10 # 'target_name': 'test_suite_name',
11 # 'type': 'none', 11 # 'type': 'none',
12 # 'variables': {
13 # 'jar_path': 'path/to/your.jar',
14 # },
15 # 'includes': ['path/to/this/gypi/file'], 12 # 'includes': ['path/to/this/gypi/file'],
16 # } 13 # }
17 # 14 #
18 # Required variables:
19 # jar_path - The path to the prebuilt Java JAR file.
20 15
21 { 16 {
22 'dependencies': [ 17 'dependencies': [
23 '<(DEPTH)/build/build_output_dirs_android.gyp:build_output_dirs' 18 '<(DEPTH)/tools/android/android_tools.gyp:android_tools',
24 ], 19 ],
25 'variables': { 20 'variables': {
26 'dex_path': '<(PRODUCT_DIR)/lib.java/<(_target_name).dex.jar', 21 'output_dex_path': '<(PRODUCT_DIR)/lib.java/<(_target_name).dex.jar',
27 },
28 'all_dependent_settings': {
29 'variables': {
30 'input_jars_paths': ['<(jar_path)'],
31 'library_dexed_jars_paths': ['<(dex_path)'],
32 },
33 }, 22 },
34 'actions': [ 23 'actions': [
35 { 24 {
36 'action_name': 'dex_<(_target_name)', 25 'action_name': 'dex_<(_target_name)',
37 'message': 'Dexing <(_target_name) jar', 26 'message': 'Dexing <(_target_name) jar',
38 'inputs': [ 27 'inputs': [
39 '<(DEPTH)/build/android/pylib/build_utils.py', 28 '<(DEPTH)/build/android/pylib/build_utils.py',
40 '<(DEPTH)/build/android/dex.py', 29 '<(DEPTH)/build/android/dex.py',
41 '<(jar_path)', 30 '>@(library_dexed_jars_paths)',
42 ], 31 ],
43 'outputs': [ 32 'outputs': [
44 '<(dex_path)', 33 '<(output_dex_path)',
45 ], 34 ],
46 'action': [ 35 'action': [
47 'python', '<(DEPTH)/build/android/dex.py', 36 'python', '<(DEPTH)/build/android/dex.py',
48 '--dex-path=<(dex_path)', 37 '--dex-path=<(output_dex_path)',
49 '--android-sdk-root=<(android_sdk_root)', 38 '--android-sdk-root=<(android_sdk_root)',
50 39
51 # TODO(newt): remove this once http://crbug.com/177552 is fixed in ninja . 40 # TODO(newt): remove this once http://crbug.com/177552 is fixed in ninja .
52 '--ignore=>!(echo \'>(_inputs)\' | md5sum)', 41 '--ignore=>!(echo \'>(_inputs)\' | md5sum)',
Nico 2014/01/30 05:19:26 Since library_dexed_jars_paths is passed as parame
53 42
54 '<(jar_path)', 43 '>@(library_dexed_jars_paths)',
55 ] 44 ],
56 }, 45 },
57
58 ], 46 ],
59 } 47 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698