-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactoring:mingw:simplify toolchain
- Loading branch information
Showing
7 changed files
with
46 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
SET(CMAKE_SYSTEM_NAME Windows) | ||
|
||
SET(CMAKE_C_COMPILER ${TARGET_ARCH}-gcc) | ||
SET(CMAKE_CXX_COMPILER ${TARGET_ARCH}-g++) | ||
SET(CMAKE_RC_COMPILER_INIT ${TARGET_ARCH}-windres) | ||
SET(PKG_CONFIG_EXECUTABLE ${TARGET_ARCH}-pkg-config) | ||
|
||
SET(QT_MOC_EXECUTABLE bin/moc) | ||
SET(QT_RCC_EXECUTABLE ${MINGW_INSTALL_PREFIX}/bin/rcc) | ||
SET(QT_UIC_EXECUTABLE ${MINGW_INSTALL_PREFIX}/bin/uic) | ||
|
||
LIST(APPEND CMAKE_PROGRAM_PATH @CMAKE_INSTALL_PREFIX@/bin ...) | ||
SET(CMAKE_FIND_ROOT_PATH ${MINGW_INSTALL_PREFIX}) | ||
SET(CMAKE_INSTALL_PREFIX ${MINGW_INSTALL_PREFIX}) | ||
|
||
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) | ||
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) | ||
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,27 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
# our support gettext version is uncompatible with mingw-w64 mingw-w64-tools | ||
apt-get update && apt-get install -y mingw32 mingw32-binutils mingw32-runtime default-jdk nsis libsaxonb-java | ||
|
||
mkdir win32 | ||
pushd win32 | ||
cmake -Dbinding/python:BOOL=FALSE -DSAMPLE_MAP=n -DBUILD_MAPTOOL=n -DXSLTS=windows -DCMAKE_TOOLCHAIN_FILE=../Toolchain/mingw32.cmake ../ && make -j $(nproc --all) && make -j $(nproc --all) package | ||
# use i686-w64-mingw32 for mingw-w64 | ||
cmake -DTARGET_ARCH=i586-mingw32msvc -DCMAKE_SYSTEM_NAME=WindowsCE \ | ||
-DCMAKE_TOOLCHAIN_FILE=../Toolchain/mingw.cmake \ | ||
-Dbinding/python:BOOL=FALSE -DSAMPLE_MAP=n -DBUILD_MAPTOOL=n -DXSLTS=windows ../ | ||
|
||
if ! make -j $(nproc --all) | ||
then | ||
echo "make" | ||
make -d | ||
exit 1 | ||
fi | ||
if ! make -j $(nproc --all) package | ||
then | ||
echo "make package" | ||
make -d package | ||
exit 1 | ||
fi | ||
popd | ||
|
||
cp win32/*.exe $CIRCLE_ARTIFACTS/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters