1# Copyright 2015 The Chromium Authors 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5declare_args() { 6 # Select the desired branding flavor. False means normal Chromium branding, 7 # true means official Google Chrome branding (requires extra Google-internal 8 # resources). 9 is_chrome_branded = false 10 11 # Whether to enable the Chrome for Testing (CfT) flavor. This arg is not 12 # compatible with `is_chrome_branded`. 13 # 14 # Design document: https://goo.gle/chrome-for-testing 15 is_chrome_for_testing = false 16 17 # Whether to use internal Chrome for Testing (CfT). 18 # Requires `src-internal/` and `is_chrome_for_testing = true`. 19 # 20 # When true, use Google-internal icons, otherwise fall back to Chromium icons. 21 is_chrome_for_testing_branded = false 22 23 # Set to true to enable settings for high end Android devices, typically 24 # enhancing speed at the expense of resources such as binary sizes and memory. 25 is_high_end_android = false 26 27 if (is_android) { 28 # By default, Trichrome channels are compiled using separate package names. 29 # Set this to 'true' to compile Trichrome channels using the Stable channel's 30 # package name. This currently only affects builds with `android_channel = 31 # "beta"`. 32 use_stable_package_name_for_trichrome = false 33 } 34} 35 36assert(!is_chrome_for_testing || !is_chrome_branded, 37 "`is_chrome_for_testing` is incompatible with `is_chrome_branded`") 38 39assert(is_chrome_for_testing || !is_chrome_for_testing_branded, 40 "`is_chrome_for_testing_branded` requires `is_chrome_for_testing`") 41 42declare_args() { 43 # Refers to the subdirectory for branding in various places including 44 # chrome/app/theme. 45 # 46 # `branding_path_product` must not contain slashes. 47 if (is_chrome_for_testing) { 48 if (is_chrome_for_testing_branded) { 49 branding_path_component = "google_chrome/google_chrome_for_testing" 50 } else { 51 branding_path_component = "chromium" 52 } 53 branding_path_product = "chromium" 54 } else if (is_chrome_branded) { 55 branding_path_component = "google_chrome" 56 branding_path_product = "google_chrome" 57 } else { 58 branding_path_component = "chromium" 59 branding_path_product = "chromium" 60 } 61} 62 63declare_args() { 64 # The path to the BRANDING file in chrome/app/theme. 65 branding_file_path = "//chrome/app/theme/$branding_path_component/BRANDING" 66} 67