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

Side by Side Diff: build/host_jar.gypi

Issue 1124763003: Update from https://crrev.com/327068 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: update nacl, buildtools, fix display_change_notifier_unittest Created 5 years, 7 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
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 to build 5 # This file is meant to be included into a target to provide a rule to build
6 # a JAR file for use on a host in a consistent manner. 6 # a JAR file for use on a host in a consistent manner. If a main class is
7 # specified, this file will also generate an executable to run the jar in the
8 # output folder's /bin/ directory.
7 # 9 #
8 # To use this, create a gyp target with the following form: 10 # To use this, create a gyp target with the following form:
9 # { 11 # {
10 # 'target_name': 'my_jar', 12 # 'target_name': 'my_jar',
11 # 'type': 'none', 13 # 'type': 'none',
12 # 'variables': { 14 # 'variables': {
13 # 'src_paths': [ 15 # 'src_paths': [
14 # 'path/to/directory', 16 # 'path/to/directory',
15 # 'path/to/other/directory', 17 # 'path/to/other/directory',
16 # 'path/to/individual_file.java', 18 # 'path/to/individual_file.java',
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 'action_name': 'javac_<(_target_name)', 64 'action_name': 'javac_<(_target_name)',
63 'message': 'Compiling <(_target_name) java sources', 65 'message': 'Compiling <(_target_name) java sources',
64 'variables': { 66 'variables': {
65 'extra_options': [], 67 'extra_options': [],
66 'java_sources': [ '<!@(find <@(src_paths) -name "*.java")' ], 68 'java_sources': [ '<!@(find <@(src_paths) -name "*.java")' ],
67 'conditions': [ 69 'conditions': [
68 ['"<(excluded_src_paths)" != ""', { 70 ['"<(excluded_src_paths)" != ""', {
69 'java_sources!': ['<!@(find <@(excluded_src_paths) -name "*.java")'] 71 'java_sources!': ['<!@(find <@(excluded_src_paths) -name "*.java")']
70 }], 72 }],
71 ['"<(jar_excluded_classes)" != ""', { 73 ['"<(jar_excluded_classes)" != ""', {
72 'extra_options': ['--excluded-classes=<(jar_excluded_classes)'] 74 'extra_options': ['--jar-excluded-classes=<(jar_excluded_classes)']
73 }], 75 }],
74 ['">(main_class)" != ""', { 76 ['main_class != ""', {
75 'extra_options': ['--main-class=>(main_class)'] 77 'extra_options': ['--main-class=>(main_class)']
76 }] 78 }]
77 ], 79 ],
78 }, 80 },
79 'inputs': [ 81 'inputs': [
80 '<(DEPTH)/build/android/gyp/util/build_utils.py', 82 '<(DEPTH)/build/android/gyp/util/build_utils.py',
81 '<(DEPTH)/build/android/gyp/javac.py', 83 '<(DEPTH)/build/android/gyp/javac.py',
82 '^@(java_sources)', 84 '^@(java_sources)',
83 '>@(input_jars_paths)', 85 '>@(input_jars_paths)',
84 ], 86 ],
85 'outputs': [ 87 'outputs': [
86 '<(jar_path)', 88 '<(jar_path)',
87 '<(stamp)', 89 '<(stamp)',
88 ], 90 ],
89 'action': [ 91 'action': [
90 'python', '<(DEPTH)/build/android/gyp/javac.py', 92 'python', '<(DEPTH)/build/android/gyp/javac.py',
91 '--classpath=>(input_jars_paths)', 93 '--classpath=>(input_jars_paths)',
92 '--src-gendirs=>(generated_src_dirs)', 94 '--src-gendirs=>(generated_src_dirs)',
93 '--chromium-code=<(chromium_code)', 95 '--chromium-code=<(chromium_code)',
94 '--stamp=<(stamp)', 96 '--stamp=<(stamp)',
95 '--jar-path=<(jar_path)', 97 '--jar-path=<(jar_path)',
96 '<@(extra_options)', 98 '<@(extra_options)',
97 '^@(java_sources)', 99 '^@(java_sources)',
98 ], 100 ],
99 }, 101 },
102 ],
103 'conditions': [
104 ['main_class != ""', {
105 'actions': [
106 {
107 'action_name': 'create_java_binary_script_<(_target_name)',
108 'message': 'Creating java binary script <(_target_name)',
109 'variables': {
110 'output': '<(PRODUCT_DIR)/bin/<(_target_name)',
111 },
112 'inputs': [
113 '<(DEPTH)/build/android/gyp/create_java_binary_script.py',
114 '<(jar_path)',
115 ],
116 'outputs': [
117 '<(output)',
118 ],
119 'action': [
120 'python', '<(DEPTH)/build/android/gyp/create_java_binary_script.py',
121 '--classpath=>(input_jars_paths)',
122 '--jar-path=<(jar_path)',
123 '--output=<(output)',
124 '--main-class=>(main_class)',
125 ]
126 }
127 ]
128 }]
100 ] 129 ]
101 } 130 }
102 131
OLDNEW
« no previous file with comments | « build/gyp_helper.py ('k') | build/install-build-deps.sh » ('j') | mojo/public/tools/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698