From 05e3b710fc0be69899fc375eec9538be1d1dd155 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Mon, 4 Dec 2017 15:15:49 +0100 Subject: [PATCH] Fix build with Visual Studio 2017. --- build/msbuild/lol.rules.props | 33 ++++++++++++++++++--- src/3rdparty/README.md | 4 +-- src/3rdparty/lol-bullet.vcxproj | 52 ++++++++++++++++----------------- 3 files changed, 57 insertions(+), 32 deletions(-) diff --git a/build/msbuild/lol.rules.props b/build/msbuild/lol.rules.props index 1fa2a528..5f277e55 100644 --- a/build/msbuild/lol.rules.props +++ b/build/msbuild/lol.rules.props @@ -8,6 +8,9 @@ Level3 + + stdcpplatest + true false @@ -15,10 +18,32 @@ $(IntDir)/%(Directory)/ - $(LolDir)\src;$(LolDir)\src\3rdparty\bullet3\src;$(LolDir)\tools\lolunit;$(PegtlIncludes);$(ImguiIncludes);$(BtPhysIncludes);%(AdditionalIncludeDirectories) - $(GlIncludes);$(SdlIncludes);$(FfmpegIncludes);$(AssimpIncludes);$(XinputIncludes);%(AdditionalIncludeDirectories) - $(GlIncludes);$(SdlIncludes);$(FfmpegIncludes);$(AssimpIncludes);$(XinputIncludes);%(AdditionalIncludeDirectories) - NOMINMAX;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) + + $(LolDir)\src; + $(LolDir)\src\3rdparty\bullet3\src; + $(LolDir)\tools\lolunit; + $(PegtlIncludes); + $(ImguiIncludes); + $(BtPhysIncludes); + %(AdditionalIncludeDirectories) + + + + $(GlIncludes); + $(SdlIncludes); + $(FfmpegIncludes); + $(AssimpIncludes); + $(XinputIncludes); + %(AdditionalIncludeDirectories) + + + + NOMINMAX; + _CRT_SECURE_NO_WARNINGS; + B3_USE_CLEW; + LUA_ANSI; + %(PreprocessorDefinitions) + diff --git a/src/3rdparty/README.md b/src/3rdparty/README.md index 0b38d51a..27beee1e 100644 --- a/src/3rdparty/README.md +++ b/src/3rdparty/README.md @@ -4,6 +4,6 @@ Generate vcxproj for Bullet: cat lol-bullet.am | \ awk '/bullet_source/ { print " " } \ /NULL/ { print " " } \ - /bullet3.*\.c/ { print " " } \ - /bullet3.*\.h/ { print " " }' + /bullet3.*\.(c|cpp)\>/ { print " " } \ + /bullet3.*\.(h|hpp|cl)\>/ { print " " }' diff --git a/src/3rdparty/lol-bullet.vcxproj b/src/3rdparty/lol-bullet.vcxproj index acf5d64d..99575381 100644 --- a/src/3rdparty/lol-bullet.vcxproj +++ b/src/3rdparty/lol-bullet.vcxproj @@ -166,11 +166,11 @@ - + - + - + @@ -199,16 +199,16 @@ - + - + - + - - + + - + @@ -225,21 +225,21 @@ - + - + - + - - + + - + - + @@ -260,25 +260,25 @@ - + - + - + - + - + - + - + - + - + - +