* Add certain variables to find Qt's dependencies to the CMake toolchain file because these variables would otherwise needed to be set every time Qt 6 is used * Add a static variant * Not fully tested yet * Further repos besides base and svg will be added later
16 lines
518 B
Bash
16 lines
518 B
Bash
#!/bin/sh
|
|
|
|
source mingw-env @TRIPLE@
|
|
|
|
mingw_prefix=/usr/@TRIPLE@
|
|
|
|
PATH=${mingw_prefix}/bin:$PATH cmake \
|
|
-DCMAKE_INSTALL_PREFIX:PATH=${mingw_prefix} \
|
|
-DCMAKE_INSTALL_LIBDIR:PATH=lib \
|
|
-DCMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES:PATH=${mingw_prefix}/include \
|
|
-DCMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES:PATH=${mingw_prefix}/include \
|
|
-DBUILD_SHARED_LIBS:BOOL=ON \
|
|
-DCMAKE_TOOLCHAIN_FILE=/usr/share/mingw/toolchain-@TRIPLE@.cmake \
|
|
-DCMAKE_CROSSCOMPILING_EMULATOR=/usr/bin/@TRIPLE@-wine \
|
|
"$@"
|