OLD | NEW |
---|---|
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 # Build the rezip build tool. | 5 # Build the rezip build tool. |
6 { | 6 { |
7 'targets': [ | 7 'targets': [ |
8 { | 8 { |
9 'target_name': 'rezip', | 9 'target_name': 'rezip', |
10 'type': 'executable', | 10 'type': 'executable', |
11 'toolsets': [ 'host' ], | 11 'toolsets': [ 'host' ], |
12 'dependencies': [ | 12 'dependencies': [ |
13 '<(DEPTH)/third_party/zlib/zlib.gyp:minizip', | 13 '<(DEPTH)/third_party/zlib/zlib.gyp:minizip', |
14 ], | 14 ], |
15 'include_dirs': [ | 15 'include_dirs': [ |
16 '<(DEPTH)', | 16 '<(DEPTH)', |
17 ], | 17 ], |
18 'sources': [ | 18 'sources': [ |
19 'rezip/rezip.cc', | 19 'rezip/rezip.cc', |
20 ], | 20 ], |
21 }, | |
22 { | |
23 'target_name': 'rezip_jar', | |
rmcilroy
2014/09/30 09:36:32
rezip_apk_jar?
Anton
2014/09/30 10:30:01
Done.
| |
24 'type': 'none', | |
25 'variables': { | |
26 'java_in_dir': 'rezip', | |
27 'compile_stamp': '<(SHARED_INTERMEDIATE_DIR)/<(_target_name)/compile.sta mp', | |
28 'javac_jar_path': '<(PRODUCT_DIR)/lib.java/rezip.jar', | |
cjhopman
2014/09/29 18:33:03
this can probably use build/host_jar.gypi (it look
Anton
2014/09/30 09:52:34
I tried this, but it doesn't work. Proguard fails,
| |
29 }, | |
30 'sources': [ | |
cjhopman
2014/09/29 18:33:03
'sources' here doesn't do anything.
Anton
2014/09/30 09:52:34
Removed.
| |
31 '>(java_in_dir)/RezipApk.java', | |
32 ], | |
33 'actions': [ | |
34 { | |
35 'action_name': 'javac_<(_target_name)', | |
36 'message': 'Compiling <(_target_name) java sources', | |
37 'variables': { | |
38 'java_sources': ['>!@(find >(java_in_dir) -name "*.java")'], | |
39 }, | |
40 'inputs': [ | |
41 '<(DEPTH)/build/android/gyp/util/build_utils.py', | |
42 '<(DEPTH)/build/android/gyp/javac.py', | |
43 '>@(java_sources)', | |
44 ], | |
45 'outputs': [ | |
46 '<(compile_stamp)', | |
47 '<(javac_jar_path)', | |
48 ], | |
49 'action': [ | |
50 'python', '<(DEPTH)/build/android/gyp/javac.py', | |
51 '--classpath=', | |
52 '--classes-dir=<(SHARED_INTERMEDIATE_DIR)/<(_target_name)', | |
53 '--jar-path=<(javac_jar_path)', | |
54 '--stamp=<(compile_stamp)', | |
55 '>@(java_sources)', | |
56 ] | |
57 }, | |
58 ], | |
21 } | 59 } |
22 ], | 60 ], |
23 } | 61 } |
OLD | NEW |