Files
third_party_ejdb/WINDOWS.md
T
stesen 86b1d0e7f3 Description:[feature] add ejdb
Signed-off-by: stesen <stesen.ma@huawei.com>
Change-Id: Idd85e9f93d8c2fb983958db2c79c1cfdb6f75275
2021-08-18 22:07:30 +08:00

815 B

Windows cross compilation

Note: HTTP/Websocket network API is disabled and not supported on Windows until porting of http://facil.io library

Nodejs/Dart bindings not yet ported to Windows.

Prerequisites

sudo apt-get install bison flex libtool ruby scons intltool libtool-bin p7zip-full wine

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 \
         -DENABLE_HTTP=OFF

make package