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

Side by Side Diff: build/config/android/config.gni

Issue 2753273002: 📱 Add enable_chrome_android_internal GN flag (Closed)
Patch Set: Created 3 years, 9 months 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
« no previous file with comments | « BUILD.gn ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 # This file contains common system config stuff for the Android build. 5 # This file contains common system config stuff for the Android build.
6 6
7 if (is_android) { 7 if (is_android) {
8 import("//build_overrides/build.gni") 8 import("//build_overrides/build.gni")
9 9
10 has_chrome_android_internal = 10 has_chrome_android_internal =
11 exec_script("//build/dir_exists.py", 11 exec_script("//build/dir_exists.py",
12 [ rebase_path("//clank", root_build_dir) ], 12 [ rebase_path("//clank", root_build_dir) ],
13 "string") == "True" 13 "string") == "True"
14 14
15 if (has_chrome_android_internal) { 15 # We are using a separate declare_args block for only this argument so that
16 # we can decide if we have to pull in definitions from the internal config
17 # early.
18 declare_args() {
19 # Enables using the internal Chrome for Android repository. The default
20 # value depends on whether the repository is available, and if it's not but
21 # this argument is manually set to True, the generation will fail.
22 # The main purpose of this argument is to avoid having to maintain 2
23 # repositories to support both public only and internal builds.
24 enable_chrome_android_internal = has_chrome_android_internal
25 }
26
27 if (enable_chrome_android_internal) {
16 import("//clank/config.gni") 28 import("//clank/config.gni")
17 } 29 }
18 30
19 if (!defined(extra_chrome_shared_library_configs)) { 31 if (!defined(extra_chrome_shared_library_configs)) {
20 extra_chrome_shared_library_configs = [] 32 extra_chrome_shared_library_configs = []
21 } 33 }
22 34
23 if (!defined(default_android_ndk_root)) { 35 if (!defined(default_android_ndk_root)) {
24 default_android_ndk_root = "//third_party/android_tools/ndk" 36 default_android_ndk_root = "//third_party/android_tools/ndk"
25 default_android_ndk_version = "r12b" 37 default_android_ndk_version = "r12b"
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 "//build/toolchain/android:android_${android_secondary_abi_cpu}" 365 "//build/toolchain/android:android_${android_secondary_abi_cpu}"
354 } 366 }
355 } 367 }
356 } 368 }
357 369
358 declare_args() { 370 declare_args() {
359 # Enables used resource whitelist generation. Set for official builds only 371 # Enables used resource whitelist generation. Set for official builds only
360 # as a large amount of build output is generated. 372 # as a large amount of build output is generated.
361 enable_resource_whitelist_generation = is_android && is_official_build 373 enable_resource_whitelist_generation = is_android && is_official_build
362 } 374 }
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698