Chromium Code Reviews| Index: build/android/java_google_api_keys.gyp |
| diff --git a/build/android/java_google_api_keys.gyp b/build/android/java_google_api_keys.gyp |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..4cad29c5e160a0e508d1e2cc00f665a5cfd57f34 |
| --- /dev/null |
| +++ b/build/android/java_google_api_keys.gyp |
| @@ -0,0 +1,45 @@ |
| +# Copyright 2015 The Chromium Authors. All rights reserved. |
| +# Use of this source code is governed by a BSD-style license that can be |
| +# found in the LICENSE file. |
| + |
| +# This file provides an action to generate Java source files from the Google |
| +# API keys using a Python script. |
| + |
| +{ |
| + 'targets': [ |
| + { |
| + 'target_name': 'google_api_keys_srcjar', |
| + 'type': 'none', |
| + 'variables': { |
| + # Location where all generated Java sources will be placed. |
| + 'output_dir': '<(SHARED_INTERMEDIATE_DIR)/java_google_api_keys', |
| + 'generator_path': '<(DEPTH)/build/android/gyp/java_google_api_keys.py', |
| + 'output_file': '<(output_dir)/java_google_api_keys.jar', |
| + }, |
| + 'direct_dependent_settings': { |
| + 'variables': { |
| + # Ensure that the output directory is used in the class path |
| + # when building targets that depend on this one. |
| + 'generated_src_dirs': [ |
| + '<(output_dir)/', |
| + ], |
| + }, |
| + }, |
| + 'actions': [ |
| + { |
| + 'action_name': 'generate_java_google_api_keys', |
| + 'inputs': [ |
| + '<(generator_path)', |
| + ], |
| + 'outputs': [ |
| + '<(output_file)', |
| + ], |
| + 'action': [ |
| + 'python', '<(generator_path)', '--srcjar', '<(output_file)' |
|
agrieve
2015/11/03 20:27:35
I don't think GYP supports srcjars. Might have loo
dvh
2015/11/04 00:08:43
Done.
|
| + ], |
| + 'message': 'Generating Java from Google API Keys header', |
| + }, |
| + ], |
| + }, |
| + ], |
| +} |