55 lines
1.4 KiB
Plaintext
55 lines
1.4 KiB
Plaintext
|
|
|
|
#~/code/
|
|
# automate/
|
|
# automate-git.py <-- CEF build script
|
|
# chromium_git/
|
|
# cef/ <-- CEF source checkout
|
|
# chromium/
|
|
# src/ <-- Chromium source checkout
|
|
# update.[bat|sh] <-- Bootstrap script for automate-git.py
|
|
# depot_tools/ <-- Chromium build tools
|
|
export ibce_root=""
|
|
export ibce_automate=""
|
|
export ibce_depot_tools=""
|
|
export ibce_ver="7680"
|
|
|
|
|
|
|
|
init_build_cef_env() {
|
|
LOG_PATH="./build.log"
|
|
|
|
ibce_root=$1
|
|
ibce_automate="${ibce_root}/automate"
|
|
ibce_depot_tools="${ibce_root}/depot_tools"
|
|
check_and_create_dir_var ibce_automate
|
|
check_and_create_dir_var ibce_depot_tools
|
|
clear_dir_contents "${ibce_automate}"
|
|
clear_dir_contents "${ibce_depot_tools}"
|
|
|
|
local depot_tools_url="https://storage.googleapis.com/chrome-infra/depot_tools.zip"
|
|
local automate_url="https://raw.githubusercontent.com/chromiumembedded/cef/${ibce_ver}/tools/automate/automate-git.py"
|
|
|
|
download_cached_as "$automate_url" "$ibce_automate" "automate-git.py" "automate-git/automate-git-${ibce_ver}.py"
|
|
local tmp
|
|
get_src_from_wget tmp "$ibce_depot_tools" "$depot_tools_url"
|
|
|
|
run_bat_native_env "${ibce_depot_tools}/update_depot_tools.bat"
|
|
|
|
|
|
# exec_record_fast_fail "${ibce_depot_tools}/python3 ${ibce_automate}/automate-git.py --help"
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#init_build_cef_env "/d/cef_builds/cef_4_3_840"
|
|
|
|
|
|
run_native_cmd_script "D:/cef_builds/cef_4_3_840/depot_tools" "D:/cef_builds/cef_4_3_840/depot_tools/update_depot_tools.bat" "k"
|
|
|