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

Side by Side Diff: build/android/java_google_api_keys.gypi

Issue 1411913005: Make Google API keys available for the Java codebase (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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
(Empty)
1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 # This file is meant to be included into a target to provide an action
6 # to generate Java source files from the Google API keys using a Python script.
7 #
8 # To use this, create a gyp target with the following form:
9 # {
10 # 'target_name': 'google_api_keys_java',
11 # 'type': 'none',
12 # 'includes': [ '../build/android/java_google_api_keys.gypi' ],
13 # },
14 #
15 # Then have the gyp target which compiles the java code depend on the newly
16 # created target.
17
18 {
19 'variables': {
20 # Location where all generated Java sources will be placed.
21 'output_dir': '<(SHARED_INTERMEDIATE_DIR)/java_google_api_keys',
22 'generator_path': '<(DEPTH)/build/android/gyp/java_google_api_keys.py',
23 'output_file': '<(output_dir)/GoogleAPIKeys.java',
24 },
25 'direct_dependent_settings': {
26 'variables': {
27 # Ensure that the output directory is used in the class path
28 # when building targets that depend on this one.
29 'generated_src_dirs': [
30 '<(output_dir)/',
31 ],
32 },
33 },
34 'actions': [
35 {
36 'action_name': 'generate_java_google_api_keys',
37 'inputs': [
38 '<(DEPTH)/build/android/gyp/java_google_api_keys.py',
39 '<(generator_path)',
40 ],
41 'outputs': [
42 '<(output_file)',
43 ],
44 'action': [
45 'python', '<(generator_path)', '--out', '<(output_file)'
46 ],
47 'message': 'Generating Java from Google API Keys header',
48 },
49 ],
50 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698