mirror of
https://github.com/lighttransport/tinyusdz.git
synced 2026-01-18 01:11:17 +01:00
Add msys build script(Git for Windows + llvm-mingw)
This commit is contained in:
14
scripts/bootstrap-cmake-msys.sh
Normal file
14
scripts/bootstrap-cmake-msys.sh
Normal file
@@ -0,0 +1,14 @@
|
||||
curdir=`pwd`
|
||||
|
||||
builddir=${curdir}/build-msys
|
||||
|
||||
rm -rf ${builddir}
|
||||
mkdir ${builddir}
|
||||
|
||||
# Assume mingw-32-make, clang, etc is installed
|
||||
# Easyest way is to unpack llvm-mingw32 and add path to it.
|
||||
|
||||
cd ${builddir} && CXX=clang++.exe CC=clang.exe cmake \
|
||||
-G "MinGW Makefiles" \
|
||||
-DCMAKE_VERBOSE_MAKEFILE=1 \
|
||||
..
|
||||
@@ -41,9 +41,11 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
#ifdef _WIN32
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#ifndef NOMINMAX
|
||||
#define NOMINMAX
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef WIN32_LEAN_AND_MEAN
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
@@ -51,7 +53,10 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
#include <windows.h> // include API for expanding a file path
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#undef NOMINMAX
|
||||
#endif
|
||||
|
||||
#undef WIN32_LEAN_AND_MEAN
|
||||
|
||||
#if defined(__GLIBCXX__) // mingw
|
||||
|
||||
Reference in New Issue
Block a user