mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-28 00:06:09 +03:00
Refactor build.sh
This commit is contained in:
parent
7929e0850e
commit
e4baf137a3
@ -6,12 +6,12 @@ mkdir -p "$TMPDIR"
|
|||||||
|
|
||||||
if [ "$1" = debug ]; then
|
if [ "$1" = debug ]; then
|
||||||
out=out/Debug
|
out=out/Debug
|
||||||
flags="$EXTRA_FLAGS
|
flags="
|
||||||
is_debug=true
|
is_debug=true
|
||||||
is_component_build=true"
|
is_component_build=true"
|
||||||
else
|
else
|
||||||
out=out/Release
|
out=out/Release
|
||||||
flags="$EXTRA_FLAGS
|
flags="
|
||||||
is_official_build=true
|
is_official_build=true
|
||||||
use_jumbo_build=true
|
use_jumbo_build=true
|
||||||
exclude_unwind_tables=true
|
exclude_unwind_tables=true
|
||||||
@ -54,6 +54,7 @@ flags="$flags"'
|
|||||||
enable_mdns=false
|
enable_mdns=false
|
||||||
enable_reporting=false
|
enable_reporting=false
|
||||||
include_transport_security_state_preload_list=false
|
include_transport_security_state_preload_list=false
|
||||||
|
rtc_use_pipewire=false
|
||||||
'
|
'
|
||||||
|
|
||||||
if [ "$(uname)" = Linux ]; then
|
if [ "$(uname)" = Linux ]; then
|
||||||
@ -70,6 +71,6 @@ mkdir -p out
|
|||||||
python2=$(which python2 2>/dev/null || which python 2>/dev/null)
|
python2=$(which python2 2>/dev/null || which python 2>/dev/null)
|
||||||
export DEPOT_TOOLS_WIN_TOOLCHAIN=0
|
export DEPOT_TOOLS_WIN_TOOLCHAIN=0
|
||||||
|
|
||||||
./gn/out/gn gen "$out" --args="$flags" --script-executable=$python2
|
./gn/out/gn gen "$out" --args="$flags $EXTRA_FLAGS" --script-executable=$python2
|
||||||
|
|
||||||
ninja -C "$out" naive
|
ninja -C "$out" naive
|
||||||
|
Loading…
Reference in New Issue
Block a user