siso.gni (976B)
1 # Defines the configuration of siso (next-gen build system) 2 3 import("//chromium/build/config/gclient_args.gni") 4 5 # use_siso_default is default value of use_siso. 6 # need to match with autoninja's logic. 7 use_siso_default = false 8 9 _is_google_corp_machine = false 10 if (path_exists("/usr/bin/gcert") || # linux 11 path_exists("/usr/local/bin/gcert") || # mac 12 path_exists("/c:/gnubby/bin/gcert.exe")) { 13 _is_google_corp_machine = true 14 } 15 16 _is_ninja_used = path_exists(rebase_path(".ninja_deps", root_build_dir)) 17 18 if (path_exists("//chromium/build/config/siso/.sisoenv") && 19 defined(build_with_chromium) && build_with_chromium && 20 _is_google_corp_machine && !_is_ninja_used) { 21 use_siso_default = true 22 } 23 24 declare_args() { 25 # Placeholder to allow having use_siso in args.gn file. 26 # Explicit `use_siso` in args.gn can override default. 27 # This is used only for autoninja (to dispatch siso or ninja), 28 # and for use_reclient's default. 29 use_siso = use_siso_default 30 }