Skip to content

Commit acc0ec9

Browse files
committed
Added sln/vcxproj/props files to build with MSVC
1 parent 7d06655 commit acc0ec9

23 files changed

+588
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
build/
22
/tags
33
/bazel-*
4+
/.vs
5+
/.out
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2+
<PropertyGroup>
3+
<BOOST>$(BOOST_1_75_0_ROOT)</BOOST>
4+
<BOOST_LIB>$(BOOST)\stage\lib</BOOST_LIB>
5+
</PropertyGroup>
6+
</Project>
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2+
3+
<!--
4+
Set up user/system environment vars:
5+
JINJA2CPP_BUILT_ROOT=D:\Jinja2Cpp
6+
-->
7+
8+
<!-- umba_common.props must be included first -->
9+
10+
<PropertyGroup>
11+
<JINJA2CPP_TOOLSET_PLATFORM_CONFIG_ROOT>$(JINJA2CPP_BUILT_ROOT)\$(UMBA_TOOLSET_PLATFORM_CONFIG_ROOT)</JINJA2CPP_TOOLSET_PLATFORM_CONFIG_ROOT>
12+
<JINJA2CPP_INC>$(JINJA2CPP_TOOLSET_PLATFORM_CONFIG_ROOT)\include</JINJA2CPP_INC>
13+
<JINJA2CPP_LIB>$(JINJA2CPP_TOOLSET_PLATFORM_CONFIG_ROOT)\lib;$(JINJA2CPP_TOOLSET_PLATFORM_CONFIG_ROOT)\lib\static</JINJA2CPP_LIB>
14+
</PropertyGroup>
15+
16+
</Project>
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2+
3+
<!--
4+
Set up user/system environment vars:
5+
UMBA_LLVM_PROJECT_ROOT=G:\llvm-project
6+
UMBA_LLVM_BUILT_ROOT=G:\llvm
7+
-->
8+
9+
<PropertyGroup>
10+
<UMBA_LLVM_TOOLSET>$(UMBA_MSVCVER)</UMBA_LLVM_TOOLSET>
11+
</PropertyGroup>
12+
13+
<PropertyGroup>
14+
<LLVM_LIB_ROOT>$(UMBA_LLVM_BUILT_ROOT)\$(UMBA_LLVM_TOOLSET)</LLVM_LIB_ROOT>
15+
</PropertyGroup>
16+
17+
<PropertyGroup>
18+
<!--
19+
$(UMBA_LLVM_BUILT_ROOT) \ $(UMBA_LLVM_TOOLSET) \ $(PlatformShortName) \artifacts\tools\clang\include
20+
G:\llvm \ msvc2019 \ x64 \artifacts\tools\clang\include \clang\AST
21+
$(LLVM_LIB_ROOT) \ $(PlatformShortName) \artifacts\tools\clang\include
22+
$(LLVM_LIB_ROOT)\$(UMBA_LLVM_TOOLSET)\$(PlatformShortName)\artifacts\tools\clang\include
23+
24+
G:\llvm-project\llvm\include\llvm\ADT\
25+
-->
26+
<UMBA_LLVM_CLANG_TOOLSET_PLATFORM_CONFIG_ARTIFACTS_INC>$(LLVM_LIB_ROOT)\$(PlatformShortName)\include;$(LLVM_LIB_ROOT)\$(PlatformShortName)\tools\clang\include</UMBA_LLVM_CLANG_TOOLSET_PLATFORM_CONFIG_ARTIFACTS_INC>
27+
</PropertyGroup>
28+
29+
<PropertyGroup>
30+
<!--
31+
G:\llvm-project\llvm\include\
32+
G:\llvm\msvc2019\x64\artifacts\tools\clang\include clang\AST\
33+
34+
llvm/Frontend/OpenMP/OMP.inc
35+
G:\llvm\msvc2019\x64\include llvm\Frontend\OpenMP\OMP.inc
36+
37+
38+
-->
39+
<LLVM_CLANG_INC>$(UMBA_LLVM_PROJECT_ROOT)\llvm\include;$(UMBA_LLVM_PROJECT_ROOT)\clang\include;$(UMBA_LLVM_CLANG_TOOLSET_PLATFORM_CONFIG_ARTIFACTS_INC)</LLVM_CLANG_INC>
40+
<LLVM_CLANG_TOOLS_EXTRA_ROOT>$(UMBA_LLVM_PROJECT_ROOT)\clang-tools-extra</LLVM_CLANG_TOOLS_EXTRA_ROOT>
41+
<LLVM_LIB>$(LLVM_LIB_ROOT)\$(PlatformShortName)\$(Configuration)\lib</LLVM_LIB>
42+
<LLVM_BIN>$(LLVM_LIB_ROOT)\$(PlatformShortName)\$(Configuration)\bin</LLVM_BIN>
43+
</PropertyGroup>
44+
45+
</Project>
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2+
3+
<PropertyGroup Condition="'$(UMBA_MSVCVER)'=='msvc2017'">
4+
<UMBA_QT_ROOT>$(MSVC2017_QTROOT)\msvc2017</UMBA_QT_ROOT>
5+
</PropertyGroup>
6+
<PropertyGroup Condition="'$(UMBA_MSVCVER)'=='msvc2019'">
7+
<UMBA_QT_ROOT>$(MSVC2019_QTROOT)\msvc2017</UMBA_QT_ROOT>
8+
</PropertyGroup>
9+
10+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
11+
<QTDIR>$(UMBA_QT_ROOT)\msvc2017</QTDIR>
12+
</PropertyGroup>
13+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
14+
<QTDIR>$(UMBA_QT_ROOT)\msvc2017</QTDIR>
15+
</PropertyGroup>
16+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
17+
<QTDIR>$(UMBA_QT_ROOT)\msvc2017_64</QTDIR>
18+
</PropertyGroup>
19+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
20+
<QTDIR>$(UMBA_QT_ROOT)\msvc2017_64</QTDIR>
21+
</PropertyGroup>
22+
23+
<PropertyGroup>
24+
<QT_BIN_PATH>$(QTDIR)\bin</QT_BIN_PATH>
25+
<QT_DLL_PATH>$(QTDIR)\bin</QT_DLL_PATH>
26+
<QT_LIB_PATH>$(QTDIR)\lib</QT_LIB_PATH>
27+
<QT_INC_PATH>$(QTDIR)\include</QT_INC_PATH>
28+
</PropertyGroup>
29+
30+
<PropertyGroup>
31+
32+
<QWT_ROOT_PATH>$(MSVC2017_QWT_ROOT)</QWT_ROOT_PATH>
33+
34+
<!-- For compatibility with old version -->
35+
<QWT_ROOT>$(QWT_ROOT_PATH)</QWT_ROOT>
36+
37+
<QWT_LIB_PATH>$(QWT_ROOT_PATH)\$(PlatformShortName)\lib</QWT_LIB_PATH>
38+
<QWT_DLL_PATH>$(QWT_ROOT_PATH)\$(PlatformShortName)\lib</QWT_DLL_PATH>
39+
<QWT_INC_PATH>$(QWT_ROOT_PATH)\$(PlatformShortName)\include</QWT_INC_PATH>
40+
41+
<!-- For compatibility with old version -->
42+
<QWT_LIB>$(QWT_LIB_PATH)</QWT_LIB>
43+
<QWT_INC>$(QWT_INC_PATH)</QWT_INC>
44+
45+
</PropertyGroup>
46+
47+
<PropertyGroup>
48+
<LocalDebuggerEnvironment>PATH=$(QWT_DLL_PATH);$(QT_DLL_PATH);$(PATH);$(LocalDebuggerEnvironment)</LocalDebuggerEnvironment>
49+
</PropertyGroup>
50+
51+
</Project>

_prj_msvc/props/umba_common.props

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2+
3+
<!-- umba_msvcver.props must be included first -->
4+
5+
<PropertyGroup>
6+
7+
<!-- UMBA_PLATFORM_CONFIG_ROOT: x86\Release -->
8+
<!-- UMBA_PLATFORM_CONFIG_ROOT: x64\Debug -->
9+
<UMBA_PLATFORM_CONFIG_ROOT>$(PlatformShortName)\$(Configuration)</UMBA_PLATFORM_CONFIG_ROOT>
10+
11+
<!-- UMBA_MSVC_PLATFORM_CONFIG_ROOT: msvc2019\x86\Release -->
12+
<!-- UMBA_MSVC_PLATFORM_CONFIG_ROOT: msvc2019\x64\Debug -->
13+
<UMBA_TOOLSET_PLATFORM_CONFIG_ROOT>$(UMBA_MSVCVER)\$(UMBA_PLATFORM_CONFIG_ROOT)</UMBA_TOOLSET_PLATFORM_CONFIG_ROOT>
14+
15+
</PropertyGroup>
16+
17+
</Project>
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2+
3+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
4+
<ClCompile>
5+
<PreprocessorDefinitions>WIN32;WIN64;%(PreprocessorDefinitions)</PreprocessorDefinitions>
6+
<Optimization>Disabled</Optimization>
7+
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
8+
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
9+
</ClCompile>
10+
<Link>
11+
<GenerateDebugInformation>true</GenerateDebugInformation>
12+
<GenerateMapFile>true</GenerateMapFile>
13+
</Link>
14+
</ItemDefinitionGroup>
15+
16+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
17+
<ClCompile>
18+
<PreprocessorDefinitions>WIN32;%(PreprocessorDefinitions)</PreprocessorDefinitions>
19+
<Optimization>Disabled</Optimization>
20+
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
21+
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
22+
</ClCompile>
23+
<Link>
24+
<GenerateDebugInformation>true</GenerateDebugInformation>
25+
<GenerateMapFile>true</GenerateMapFile>
26+
</Link>
27+
</ItemDefinitionGroup>
28+
29+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
30+
<ClCompile>
31+
<PreprocessorDefinitions>WIN32;WIN64;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
32+
<DebugInformationFormat />
33+
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
34+
</ClCompile>
35+
<Link>
36+
<GenerateDebugInformation>false</GenerateDebugInformation>
37+
<GenerateMapFile>true</GenerateMapFile>
38+
</Link>
39+
</ItemDefinitionGroup>
40+
41+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
42+
<ClCompile>
43+
<PreprocessorDefinitions>WIN32;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
44+
<DebugInformationFormat>
45+
</DebugInformationFormat>
46+
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
47+
</ClCompile>
48+
<Link>
49+
<GenerateDebugInformation>false</GenerateDebugInformation>
50+
<GenerateMapFile>true</GenerateMapFile>
51+
</Link>
52+
</ItemDefinitionGroup>
53+
54+
</Project>
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2+
3+
<Import Project=".\umba_qt_common.props" />
4+
5+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
6+
<QtMoc>
7+
<Define>UNICODE;_UNICODE;WIN32;WIN64;%(PreprocessorDefinitions)</Define>
8+
<IncludePath>%(AdditionalIncludeDirectories);$(ProjectDir)\..\..</IncludePath>
9+
</QtMoc>
10+
</ItemDefinitionGroup>
11+
12+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
13+
<QtMoc>
14+
<Define>UNICODE;_UNICODE;WIN32;%(PreprocessorDefinitions)</Define>
15+
<IncludePath>%(AdditionalIncludeDirectories)</IncludePath>
16+
</QtMoc>
17+
</ItemDefinitionGroup>
18+
19+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
20+
<QtMoc>
21+
<Define>UNICODE;_UNICODE;WIN32;WIN64;NDEBUG;%(PreprocessorDefinitions)</Define>
22+
<IncludePath>%(AdditionalIncludeDirectories)</IncludePath>
23+
</QtMoc>
24+
</ItemDefinitionGroup>
25+
26+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
27+
<QtMoc>
28+
<Define>UNICODE;_UNICODE;WIN32;NDEBUG;%(PreprocessorDefinitions)</Define>
29+
<IncludePath>%(AdditionalIncludeDirectories)</IncludePath>
30+
</QtMoc>
31+
</ItemDefinitionGroup>
32+
33+
</Project>
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2+
3+
<PropertyGroup>
4+
5+
<UMBA_LOCAL_LIBS_ROOT>$(ProjectDir)\..\_libs</UMBA_LOCAL_LIBS_ROOT>
6+
<UMBA_LOCAL_PRETTY_HEADERS>$(UMBA_LOCAL_LIBS_ROOT)\pretty_headers;$(UMBA_LOCAL_LIBS_ROOT)\_pretty_headers;$(UMBA_LOCAL_LIBS_ROOT)\std_headers;$(UMBA_LOCAL_LIBS_ROOT)\_std_headers;$(UMBA_LOCAL_LIBS_ROOT)\qt_headers;$(UMBA_LOCAL_LIBS_ROOT)\_qt_headers;$(UMBA_LOCAL_LIBS_ROOT)\qt5_headers;$(UMBA_LOCAL_LIBS_ROOT)\_qt5_headers;$(UMBA_LOCAL_LIBS_ROOT)\qt6_headers;$(UMBA_LOCAL_LIBS_ROOT)\_qt6_headers</UMBA_LOCAL_PRETTY_HEADERS>
7+
<UMBA_LOCAL_INC_DIRS>$(UMBA_LOCAL_LIBS_ROOT);$(UMBA_LOCAL_PRETTY_HEADERS);$(ProjectDir)\..\src;$(UMBA_LOCAL_LIBS_ROOT)\sfmt\inc;$(UMBA_LOCAL_LIBS_ROOT)\mem_pools\inc</UMBA_LOCAL_INC_DIRS>
8+
9+
<UMBA_OUTDIR>$(SolutionDir)\.out\$(UMBA_TOOLSET_PLATFORM_CONFIG_ROOT)</UMBA_OUTDIR>
10+
11+
</PropertyGroup>
12+
13+
<PropertyGroup>
14+
<OutDir>$(UMBA_OUTDIR)\</OutDir>
15+
<IntDir>$(UMBA_OUTDIR)\_$(ProjectName)\</IntDir>
16+
</PropertyGroup>
17+
18+
19+
</Project>

_prj_msvc/props/umba_msvcver.props

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2+
3+
<PropertyGroup >
4+
<UMBA_MSVCVER>msvc_$(VisualStudioVersion)</UMBA_MSVCVER>
5+
</PropertyGroup>
6+
7+
<PropertyGroup Condition="'$(VisualStudioVersion)'=='15.0'" Label="UmbaProps">
8+
<UMBA_MSVCVER>msvc2017</UMBA_MSVCVER>
9+
<WindowsTargetPlatformVersion>10.0.16299.0</WindowsTargetPlatformVersion>
10+
<PlatformToolset>v141</PlatformToolset>
11+
</PropertyGroup>
12+
13+
<PropertyGroup Condition="'$(VisualStudioVersion)'=='16.0'" Label="UmbaProps">
14+
<UMBA_MSVCVER>msvc2019</UMBA_MSVCVER>
15+
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
16+
<PlatformToolset>v142</PlatformToolset>
17+
</PropertyGroup>
18+
19+
<PropertyGroup Condition="'$(VisualStudioVersion)'=='17.0'" Label="UmbaProps">
20+
<UMBA_MSVCVER>msvc2022</UMBA_MSVCVER>
21+
<PlatformToolset>v143</PlatformToolset>
22+
</PropertyGroup>
23+
24+
</Project>

0 commit comments

Comments
 (0)