mirror of
https://github.com/openharmony/third_party_iowow.git
synced 2026-07-01 14:23:51 -04:00
70c12f3930
Signed-off-by: stesen <stesen.ma@huawei.com> Change-Id: I9303d30deed6066005e21bb955e4f6b0d3035caa
654 B
654 B
Cross compilation
Prerequisites
sudo apt-get install bison flex libtool ruby scons intltool libtool-bin p7zip-full wine wine32
Build
Prepare MXE
git submodule update --init
nano ./mxe/settings.mk:
JOBS := 1
MXE_TARGETS := x86_64-w64-mingw32.static
LOCAL_PKG_LIST := cunit libiberty
.DEFAULT local-pkg-list:
local-pkg-list: $(LOCAL_PKG_LIST)
cd ./mxe
make
Cross compilation
mkdir ./build
cd ./build
export MXE_HOME=<path to project>/mxe
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=../win64-tc.cmake \
-DBUILD_TESTS=ON -DTEST_TOOL_CMD=wine
make package