0266c8a4e6
This lets it be something other than cxx, e.g. to compile with Goma but to link with the NDK locally, declare_args() { home = getenv("HOME") use_goma = true _target = "aarch64-linux-android21" } ndk = "$home/ndk" extra_asmflags = [] extra_cflags = [] extra_ldflags = [] if (use_goma) { cc = "$home/chromium/src/third_party/llvm-build/Release+Asserts/bin/clang" cxx = "$home/chromium/src/third_party/llvm-build/Release+Asserts/bin/clang++" cc_wrapper = "$home/depot_tools/.cipd_bin/gomacc" target_cc = cc target_cxx = cxx target_link = "$ndk/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=$_target" extra_asmflags += [ "--target=$_target" ] extra_cflags += [ "--target=$_target" ] } else { cc_wrapper = "ccache" } is_debug = true if (is_debug) { extra_cflags += [ "-Os" ] } Change-Id: I17b9c3f72bc308e40c1565536d04d0673efd4ef1 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/332616 Reviewed-by: Greg Daniel <egdaniel@google.com> Commit-Queue: Mike Klein <mtklein@google.com> |
||
---|---|---|
.. | ||
toolchain | ||
__init__.py | ||
bench.gni | ||
BUILD.gn | ||
BUILDCONFIG.gn | ||
call.py | ||
checkdir.py | ||
checkpath.py | ||
codesign_ios.py | ||
compile_ib_files.py | ||
compile_processors.py | ||
compile_sksl_tests.py | ||
copy_git_directory.py | ||
core.gni | ||
cp.py | ||
create_sksl_fp.py | ||
dehydrate_sksl.py | ||
effects_imagefilters.gni | ||
effects.gni | ||
find_headers.py | ||
find_msvc.py | ||
find_xcode_sysroot.py | ||
flutter_defines.gni | ||
fuchsia_defines.gni | ||
gen_plist_ios.py | ||
gm.gni | ||
gn_meta_sln.py | ||
gn_to_bp_utils.py | ||
gn_to_bp.py | ||
gn_to_cmake.py | ||
gpu.gni | ||
highest_version_dir.py | ||
ios.gni | ||
is_clang.py | ||
make_gm_gni.py | ||
opts.gni | ||
pdf.gni | ||
push_to_android.py | ||
rm.py | ||
run_sksllex.py | ||
samples.gni | ||
shared_sources.gni | ||
skia.gni | ||
sksl_tests.gni | ||
sksl.gni | ||
tests.gni | ||
utils.gni | ||
xps.gni |