From 52fd070d3bc7823d85ff60b932be228135fdeaf1 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Mon, 3 Feb 2020 14:22:17 +1000 Subject: [PATCH] Build: Compile tinyxml2 as static library instead of dll --- dep/tinyxml2/tinyxml2.vcxproj | 34 ++++++++++++++++++---------------- src/core/core.vcxproj | 16 ++++++++-------- 2 files changed, 26 insertions(+), 24 deletions(-) diff --git a/dep/tinyxml2/tinyxml2.vcxproj b/dep/tinyxml2/tinyxml2.vcxproj index 3faa39cff..cb4d897f4 100644 --- a/dep/tinyxml2/tinyxml2.vcxproj +++ b/dep/tinyxml2/tinyxml2.vcxproj @@ -32,26 +32,26 @@ - DynamicLibrary + StaticLibrary true v142 NotSet - DynamicLibrary + StaticLibrary true v142 NotSet - DynamicLibrary + StaticLibrary false v142 true NotSet - DynamicLibrary + StaticLibrary false v142 true @@ -74,30 +74,30 @@ - $(SolutionDir)bin\$(Platform)\ + $(SolutionDir)build\$(ProjectName)-$(Platform)-$(Configuration)\ $(SolutionDir)build\$(ProjectName)-$(Platform)-$(Configuration)\ - tinyxml2d + $(ProjectName)-$(Platform)-$(Configuration) $(SolutionDir)build\$(ProjectName)-$(Platform)-$(Configuration)\ - tinyxml2d - $(SolutionDir)bin\$(Platform)\ + $(ProjectName)-$(Platform)-$(Configuration) + $(SolutionDir)build\$(ProjectName)-$(Platform)-$(Configuration)\ - $(SolutionDir)bin\$(Platform)\ + $(SolutionDir)build\$(ProjectName)-$(Platform)-$(Configuration)\ $(SolutionDir)build\$(ProjectName)-$(Platform)-$(Configuration)\ - tinyxml2 + $(ProjectName)-$(Platform)-$(Configuration) $(SolutionDir)build\$(ProjectName)-$(Platform)-$(Configuration)\ - tinyxml2 - $(SolutionDir)bin\$(Platform)\ + $(ProjectName)-$(Platform)-$(Configuration) + $(SolutionDir)build\$(ProjectName)-$(Platform)-$(Configuration)\ - _CRT_SECURE_NO_WARNINGS;WIN32;TINYXML2_EXPORT;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + _CRT_SECURE_NO_WARNINGS;WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) true ProgramDatabase $(ProjectDir)include;%(AdditionalIncludeDirectories) @@ -113,7 +113,7 @@ - _CRT_SECURE_NO_WARNINGS;WIN32;TINYXML2_EXPORT;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + _CRT_SECURE_NO_WARNINGS;WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) true ProgramDatabase $(ProjectDir)include;%(AdditionalIncludeDirectories) @@ -130,10 +130,11 @@ - _CRT_SECURE_NO_WARNINGS;WIN32;TINYXML2_EXPORT;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + _CRT_SECURE_NO_WARNINGS;WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) $(ProjectDir)include;%(AdditionalIncludeDirectories) stdcpp17 true + false true @@ -145,10 +146,11 @@ - _CRT_SECURE_NO_WARNINGS;WIN32;TINYXML2_EXPORT;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + _CRT_SECURE_NO_WARNINGS;WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) $(ProjectDir)include;%(AdditionalIncludeDirectories) stdcpp17 true + false true diff --git a/src/core/core.vcxproj b/src/core/core.vcxproj index 3a2f52a74..7005a2a2b 100644 --- a/src/core/core.vcxproj +++ b/src/core/core.vcxproj @@ -281,7 +281,7 @@ Level4 Disabled - WITH_RECOMPILER=1;TINYXML2_IMPORT;_CRT_SECURE_NO_WARNINGS;WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + WITH_RECOMPILER=1;_CRT_SECURE_NO_WARNINGS;WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) true ProgramDatabase $(SolutionDir)dep\msvc\include;$(SolutionDir)dep\glad\include;$(SolutionDir)dep\stb\include;$(SolutionDir)dep\imgui\include;$(SolutionDir)dep\xbyak\xbyak;$(SolutionDir)dep\tinyxml2\include;$(SolutionDir)src;%(AdditionalIncludeDirectories) @@ -303,7 +303,7 @@ Level4 Disabled - WITH_RECOMPILER=1;TINYXML2_IMPORT;_CRT_SECURE_NO_WARNINGS;WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + WITH_RECOMPILER=1;_CRT_SECURE_NO_WARNINGS;WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) true ProgramDatabase $(SolutionDir)dep\msvc\include;$(SolutionDir)dep\glad\include;$(SolutionDir)dep\stb\include;$(SolutionDir)dep\imgui\include;$(SolutionDir)dep\xbyak\xbyak;$(SolutionDir)dep\tinyxml2\include;$(SolutionDir)src;%(AdditionalIncludeDirectories) @@ -325,7 +325,7 @@ Level4 Disabled - WITH_RECOMPILER=1;TINYXML2_IMPORT;_ITERATOR_DEBUG_LEVEL=1;_CRT_SECURE_NO_WARNINGS;WIN32;_DEBUGFAST;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + WITH_RECOMPILER=1;_ITERATOR_DEBUG_LEVEL=1;_CRT_SECURE_NO_WARNINGS;WIN32;_DEBUGFAST;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) true ProgramDatabase $(SolutionDir)dep\msvc\include;$(SolutionDir)dep\glad\include;$(SolutionDir)dep\stb\include;$(SolutionDir)dep\imgui\include;$(SolutionDir)dep\xbyak\xbyak;$(SolutionDir)dep\tinyxml2\include;$(SolutionDir)src;%(AdditionalIncludeDirectories) @@ -350,7 +350,7 @@ Level4 Disabled - WITH_RECOMPILER=1;TINYXML2_IMPORT;_ITERATOR_DEBUG_LEVEL=1;_CRT_SECURE_NO_WARNINGS;WIN32;_DEBUGFAST;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + WITH_RECOMPILER=1;_ITERATOR_DEBUG_LEVEL=1;_CRT_SECURE_NO_WARNINGS;WIN32;_DEBUGFAST;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) true ProgramDatabase $(SolutionDir)dep\msvc\include;$(SolutionDir)dep\glad\include;$(SolutionDir)dep\stb\include;$(SolutionDir)dep\imgui\include;$(SolutionDir)dep\xbyak\xbyak;$(SolutionDir)dep\tinyxml2\include;$(SolutionDir)src;%(AdditionalIncludeDirectories) @@ -376,7 +376,7 @@ MaxSpeed true - WITH_RECOMPILER=1;TINYXML2_IMPORT;_CRT_SECURE_NO_WARNINGS;WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + WITH_RECOMPILER=1;_CRT_SECURE_NO_WARNINGS;WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) $(SolutionDir)dep\msvc\include;$(SolutionDir)dep\glad\include;$(SolutionDir)dep\stb\include;$(SolutionDir)dep\imgui\include;$(SolutionDir)dep\xbyak\xbyak;$(SolutionDir)dep\tinyxml2\include;$(SolutionDir)src;%(AdditionalIncludeDirectories) true false @@ -399,7 +399,7 @@ MaxSpeed true - WITH_RECOMPILER=1;TINYXML2_IMPORT;_CRT_SECURE_NO_WARNINGS;WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + WITH_RECOMPILER=1;_CRT_SECURE_NO_WARNINGS;WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) $(SolutionDir)dep\msvc\include;$(SolutionDir)dep\glad\include;$(SolutionDir)dep\stb\include;$(SolutionDir)dep\imgui\include;$(SolutionDir)dep\xbyak\xbyak;$(SolutionDir)dep\tinyxml2\include;$(SolutionDir)src;%(AdditionalIncludeDirectories) true true @@ -423,7 +423,7 @@ MaxSpeed true - WITH_RECOMPILER=1;TINYXML2_IMPORT;_CRT_SECURE_NO_WARNINGS;WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + WITH_RECOMPILER=1;_CRT_SECURE_NO_WARNINGS;WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) $(SolutionDir)dep\msvc\include;$(SolutionDir)dep\glad\include;$(SolutionDir)dep\stb\include;$(SolutionDir)dep\imgui\include;$(SolutionDir)dep\xbyak\xbyak;$(SolutionDir)dep\tinyxml2\include;$(SolutionDir)src;%(AdditionalIncludeDirectories) true false @@ -446,7 +446,7 @@ MaxSpeed true - WITH_RECOMPILER=1;TINYXML2_IMPORT;_CRT_SECURE_NO_WARNINGS;WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + WITH_RECOMPILER=1;_CRT_SECURE_NO_WARNINGS;WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) $(SolutionDir)dep\msvc\include;$(SolutionDir)dep\glad\include;$(SolutionDir)dep\stb\include;$(SolutionDir)dep\imgui\include;$(SolutionDir)dep\xbyak\xbyak;$(SolutionDir)dep\tinyxml2\include;$(SolutionDir)src;%(AdditionalIncludeDirectories) true true