Chromium Code Reviews| Index: build/android/rezip.gyp |
| diff --git a/build/android/rezip.gyp b/build/android/rezip.gyp |
| index b06ac52cb24ccd927e5d08b0ff3eeb113e555d4d..20892e774b50384ed8dd2addc10f36cedf420d8e 100644 |
| --- a/build/android/rezip.gyp |
| +++ b/build/android/rezip.gyp |
| @@ -18,6 +18,44 @@ |
| 'sources': [ |
| 'rezip/rezip.cc', |
| ], |
| + }, |
| + { |
| + 'target_name': 'rezip_jar', |
|
rmcilroy
2014/09/30 09:36:32
rezip_apk_jar?
Anton
2014/09/30 10:30:01
Done.
|
| + 'type': 'none', |
| + 'variables': { |
| + 'java_in_dir': 'rezip', |
| + 'compile_stamp': '<(SHARED_INTERMEDIATE_DIR)/<(_target_name)/compile.stamp', |
| + '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,
|
| + }, |
| + 'sources': [ |
|
cjhopman
2014/09/29 18:33:03
'sources' here doesn't do anything.
Anton
2014/09/30 09:52:34
Removed.
|
| + '>(java_in_dir)/RezipApk.java', |
| + ], |
| + 'actions': [ |
| + { |
| + 'action_name': 'javac_<(_target_name)', |
| + 'message': 'Compiling <(_target_name) java sources', |
| + 'variables': { |
| + 'java_sources': ['>!@(find >(java_in_dir) -name "*.java")'], |
| + }, |
| + 'inputs': [ |
| + '<(DEPTH)/build/android/gyp/util/build_utils.py', |
| + '<(DEPTH)/build/android/gyp/javac.py', |
| + '>@(java_sources)', |
| + ], |
| + 'outputs': [ |
| + '<(compile_stamp)', |
| + '<(javac_jar_path)', |
| + ], |
| + 'action': [ |
| + 'python', '<(DEPTH)/build/android/gyp/javac.py', |
| + '--classpath=', |
| + '--classes-dir=<(SHARED_INTERMEDIATE_DIR)/<(_target_name)', |
| + '--jar-path=<(javac_jar_path)', |
| + '--stamp=<(compile_stamp)', |
| + '>@(java_sources)', |
| + ] |
| + }, |
| + ], |
| } |
| ], |
| } |