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

Unified Diff: chrome/android/BUILD.gn

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 side-by-side diff with in-line comments
Download patch
Index: chrome/android/BUILD.gn
diff --git a/chrome/android/BUILD.gn b/chrome/android/BUILD.gn
index fcf8a1f4e374727cc737d576d556c9221fa305ec..2a56e8fe00c7259e0f93c2ef25f4eaab3e2b9404 100644
--- a/chrome/android/BUILD.gn
+++ b/chrome/android/BUILD.gn
@@ -162,6 +162,7 @@ android_library("chrome_java") {
srcjar_deps = [
":chrome_android_java_enums_srcjar",
+ ":chrome_android_java_google_api_keys_srcjar",
":chrome_version_srcjar",
":custom_tabs_service_aidl",
":resource_id_javagen",
@@ -182,6 +183,31 @@ android_library("chrome_java") {
# GYP: //chrome/chrome_browser.gypi:connection_security_levels_java
# GYP: //chrome/chrome_browser.gypi:tab_load_status_java
# GYP: //chrome/chrome_browser.gypi:infobar_action_type_java
+
+action("google_api_keys_java_file") {
+ visibility = [ ":chrome_android_java_google_api_keys_srcjar" ]
+ script = "//build/android/gyp/java_google_api_keys.py"
+ _gen_dir = "${target_gen_dir}/chrome_android_java_google_api_keys_srcjar/java_google_api_keys"
+ _output_path = rebase_path("GoogleAPIKeys.java", ".", _gen_dir)
+ _output_file = get_path_info(_output_path, "abspath")
+ outputs = [
+ _output_file,
+ ]
+ args = [
+ "--out",
+ _output_path,
+ ]
+}
+
+zip("chrome_android_java_google_api_keys_srcjar") {
agrieve 2015/11/03 16:22:42 yep, this looks good :) One more thing you should
dvh 2015/11/03 20:03:54 Done.
+ inputs = get_target_outputs(":google_api_keys_java_file")
+ output = "${target_gen_dir}/${target_name}.srcjar"
+ base_dir = get_label_info(":google_api_keys_java_file", "target_gen_dir")
+ deps = [
+ ":google_api_keys_java_file",
+ ]
+}
+
java_cpp_enum("chrome_android_java_enums_srcjar") {
sources = [
"//chrome/browser/android/activity_type_ids.h",

Powered by Google App Engine
This is Rietveld 408576698