43 lines
1.2 KiB
Plaintext
43 lines
1.2 KiB
Plaintext
# https://github.com/emilio/mozconfigs/blob/master/mozconfigs/win-cross
|
|
export MOZBUILD=$HOME/.mozbuild
|
|
|
|
#ac_add_options --with-wasi-sysroot=$MOZBUILD/wrlb
|
|
ac_add_options --without-wasm-sandboxed-libraries
|
|
|
|
#ac_add_options --enable-bootstrap
|
|
|
|
|
|
#
|
|
### original mozconfig
|
|
#
|
|
|
|
ac_add_options --target=x86_64-pc-mingw32
|
|
|
|
CROSS_BUILD=1
|
|
|
|
# win-cross contains:
|
|
#
|
|
# * vs: Generated using ./mach python --virtualenv build build/vs/pack_vs.py build/vs/vs2019.yaml -o vs.tar.zst
|
|
# * liblowercase: .so built from build/liblowercase
|
|
#
|
|
# Note that you need the msitools package for the mach command above to
|
|
# succeed.
|
|
export WINDOWSSDKDIR="$MOZBUILD/win-cross/vs/windows kits/10"
|
|
|
|
# TODO: Use a loop vfat device instead of this?
|
|
mk_add_options "export LD_PRELOAD=$MOZBUILD/win-cross/liblowercase/liblowercase.so"
|
|
mk_add_options "export LOWERCASE_DIRS=$MOZBUILD/win-cross"
|
|
|
|
EXTRA_PATH="$MOZBUILD/win-cross/vs/vc/tools/msvc/14.29.30133/bin/hostx64/x64:"
|
|
|
|
mk_add_options "export PATH=$EXTRA_PATH$PATH"
|
|
|
|
export CC="$MOZBUILD/clang/bin/clang-cl"
|
|
export CXX="$MOZBUILD/clang/bin/clang-cl"
|
|
export HOST_CC="$MOZBUILD/clang/bin/clang"
|
|
export HOST_CXX="$MOZBUILD/clang/bin/clang++"
|
|
|
|
# Other things needed for packaging:
|
|
# * 7z needs to be on your PATH, or specified with export 7Z
|
|
|