mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-05 23:41:44 +00:00
41 lines
2.1 KiB
Bash
Executable File
41 lines
2.1 KiB
Bash
Executable File
###############################################################################
|
|
# #
|
|
# This file is part of IfcOpenShell. #
|
|
# #
|
|
# IfcOpenShell is free software: you can redistribute it and/or modify #
|
|
# it under the terms of the Lesser GNU General Public License as published by #
|
|
# the Free Software Foundation, either version 3.0 of the License, or #
|
|
# (at your option) any later version. #
|
|
# #
|
|
# IfcOpenShell is distributed in the hope that it will be useful, #
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
|
|
# Lesser GNU General Public License for more details. #
|
|
# #
|
|
# You should have received a copy of the Lesser GNU General Public License #
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>. #
|
|
# #
|
|
###############################################################################
|
|
|
|
set -e
|
|
|
|
export PATH=/mingw64/bin/:$PATH
|
|
|
|
BUILD_DIR=../build-msys
|
|
[ -d $BUILD_DIR ] || mkdir -p $BUILD_DIR
|
|
|
|
CMAKE_INSTALL_PREFIX=../installed-msys
|
|
|
|
pushd $BUILD_DIR
|
|
|
|
# PYTHON_INCLUDE_DIR=/mingw64/include/python2.7 \
|
|
# PYTHON_LIBRARY=/mingw64/lib/python2.7/config/libpython2.7.a \
|
|
OCC_INCLUDE_DIR=`pwd`/../deps-msys-installed/oce/include/oce/ \
|
|
OCC_LIBRARY_DIR=`pwd`/../deps-msys-installed/oce/Win64/lib/ \
|
|
OPENCOLLADA_INCLUDE_DIR=`pwd`/../deps-msys-installed/OpenCOLLADA/include/opencollada/ \
|
|
OPENCOLLADA_LIBRARY_DIR=`pwd`/../deps-msys-installed/OpenCOLLADA/lib/opencollada/ \
|
|
cmake -G "MSYS Makefiles" ../cmake -DSWIG_DIR=/usr/bin -DCMAKE_INSTALL_PREFIX=$CMAKE_INSTALL_PREFIX \
|
|
-DCMAKE_MAKE_PROGRAM=/mingw64/bin/mingw32-make.exe $@
|
|
|
|
popd
|