diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/Cpp.Build.props | 100 | ||||
| -rw-r--r-- | src/Directory.Build.props | 21 |
2 files changed, 121 insertions, 0 deletions
diff --git a/src/Cpp.Build.props b/src/Cpp.Build.props new file mode 100644 index 00000000..1e4d4cbc --- /dev/null +++ b/src/Cpp.Build.props | |||
| @@ -0,0 +1,100 @@ | |||
| 1 | <?xml version="1.0" encoding="utf-8"?> | ||
| 2 | <!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. --> | ||
| 3 | |||
| 4 | <Project> | ||
| 5 | <PropertyGroup> | ||
| 6 | <BaseOutputPath>$(OutputPath)</BaseOutputPath> | ||
| 7 | <IntDir>$(BaseIntermediateOutputPath)$(Platform)\</IntDir> | ||
| 8 | <OutDir>$(OutputPath)$(Platform)\</OutDir> | ||
| 9 | </PropertyGroup> | ||
| 10 | |||
| 11 | <ItemDefinitionGroup> | ||
| 12 | <ClCompile> | ||
| 13 | <DisableSpecificWarnings>$(DisableSpecificCompilerWarnings)</DisableSpecificWarnings> | ||
| 14 | <WarningLevel>Level4</WarningLevel> | ||
| 15 | <AdditionalIncludeDirectories>$(ProjectDir)inc;$(MSBuildProjectDirectory);$(IntDir);$(SqlCESdkIncludePath);$(ProjectAdditionalIncludeDirectories);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> | ||
| 16 | <PreprocessorDefinitions>WIN32;_WINDOWS;_WIN32_MSI=500;_WIN32_WINNT=0x0501;$(ArmPreprocessorDefinitions);$(UnicodePreprocessorDefinitions);_CRT_STDIO_LEGACY_WIDE_SPECIFIERS;_WINSOCK_DEPRECATED_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
| 17 | <PrecompiledHeader>Use</PrecompiledHeader> | ||
| 18 | <PrecompiledHeaderFile>precomp.h</PrecompiledHeaderFile> | ||
| 19 | <CallingConvention>StdCall</CallingConvention> | ||
| 20 | <TreatWarningAsError>true</TreatWarningAsError> | ||
| 21 | <ExceptionHandling>false</ExceptionHandling> | ||
| 22 | <AdditionalOptions>-YlprecompDefine</AdditionalOptions> | ||
| 23 | <AdditionalOptions Condition=" $(PlatformToolset.StartsWith('v14')) ">/Zc:threadSafeInit- %(AdditionalOptions)</AdditionalOptions> | ||
| 24 | <MultiProcessorCompilation Condition=" $(NUMBER_OF_PROCESSORS) > 4 ">true</MultiProcessorCompilation> | ||
| 25 | </ClCompile> | ||
| 26 | <ResourceCompile> | ||
| 27 | <PreprocessorDefinitions>$(ArmPreprocessorDefinitions);%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
| 28 | <AdditionalIncludeDirectories>$(ProjectAdditionalResourceIncludeDirectories);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> | ||
| 29 | </ResourceCompile> | ||
| 30 | <Lib> | ||
| 31 | <AdditionalLibraryDirectories>$(OutDir);$(AdditionalMultiTargetLibraryPath);$(ProjectAdditionalLibraryDirectories);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> | ||
| 32 | </Lib> | ||
| 33 | <Link> | ||
| 34 | <SubSystem>$(ProjectSubSystem)</SubSystem> | ||
| 35 | <ModuleDefinitionFile>$(ProjectModuleDefinitionFile)</ModuleDefinitionFile> | ||
| 36 | <NoEntryPoint>$(ResourceOnlyDll)</NoEntryPoint> | ||
| 37 | <GenerateDebugInformation>true</GenerateDebugInformation> | ||
| 38 | <AdditionalDependencies>$(ProjectAdditionalLinkLibraries);advapi32.lib;comdlg32.lib;user32.lib;oleaut32.lib;gdi32.lib;shell32.lib;ole32.lib;version.lib;%(AdditionalDependencies)</AdditionalDependencies> | ||
| 39 | <AdditionalLibraryDirectories>$(OutDir);$(AdditionalMultiTargetLibraryPath);$(ArmLibraryDirectories);$(ProjectAdditionalLinkLibraryDirectories);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> | ||
| 40 | <AdditionalOptions Condition=" $(PlatformToolset.StartsWith('v14')) ">/IGNORE:4099 %(AdditionalOptions)</AdditionalOptions> | ||
| 41 | </Link> | ||
| 42 | </ItemDefinitionGroup> | ||
| 43 | |||
| 44 | <ItemDefinitionGroup Condition=" '$(Platform)'=='Win32' and '$(PlatformToolset)'!='v100'"> | ||
| 45 | <ClCompile> | ||
| 46 | <EnableEnhancedInstructionSet>NoExtensions</EnableEnhancedInstructionSet> | ||
| 47 | </ClCompile> | ||
| 48 | </ItemDefinitionGroup> | ||
| 49 | <ItemDefinitionGroup Condition=" '$(Platform)'=='arm' "> | ||
| 50 | <ClCompile> | ||
| 51 | <CallingConvention>CDecl</CallingConvention> | ||
| 52 | </ClCompile> | ||
| 53 | </ItemDefinitionGroup> | ||
| 54 | <ItemDefinitionGroup Condition=" '$(ConfigurationType)'=='StaticLibrary' "> | ||
| 55 | <ClCompile> | ||
| 56 | <DebugInformationFormat>OldStyle</DebugInformationFormat> | ||
| 57 | <OmitDefaultLibName>true</OmitDefaultLibName> | ||
| 58 | <IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries> | ||
| 59 | </ClCompile> | ||
| 60 | </ItemDefinitionGroup> | ||
| 61 | <ItemDefinitionGroup Condition=" '$(Configuration)'=='Debug' "> | ||
| 62 | <ClCompile> | ||
| 63 | <Optimization>Disabled</Optimization> | ||
| 64 | <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks> | ||
| 65 | <PreprocessorDefinitions>_DEBUG;DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
| 66 | <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary> | ||
| 67 | </ClCompile> | ||
| 68 | </ItemDefinitionGroup> | ||
| 69 | <ItemDefinitionGroup Condition=" '$(Configuration)'=='Debug' and '$(CLRSupport)'=='true' "> | ||
| 70 | <ClCompile> | ||
| 71 | <BasicRuntimeChecks></BasicRuntimeChecks> | ||
| 72 | <RuntimeLibrary>MultiThreadedDebugDll</RuntimeLibrary> | ||
| 73 | </ClCompile> | ||
| 74 | </ItemDefinitionGroup> | ||
| 75 | <ItemDefinitionGroup Condition=" '$(Configuration)'=='Release' "> | ||
| 76 | <ClCompile> | ||
| 77 | <Optimization>MinSpace</Optimization> | ||
| 78 | <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
| 79 | <FunctionLevelLinking>true</FunctionLevelLinking> | ||
| 80 | <IntrinsicFunctions>true</IntrinsicFunctions> | ||
| 81 | <RuntimeLibrary>MultiThreaded</RuntimeLibrary> | ||
| 82 | </ClCompile> | ||
| 83 | <Link> | ||
| 84 | <EnableCOMDATFolding>true</EnableCOMDATFolding> | ||
| 85 | <OptimizeReferences>true</OptimizeReferences> | ||
| 86 | </Link> | ||
| 87 | </ItemDefinitionGroup> | ||
| 88 | <ItemDefinitionGroup Condition=" '$(Configuration)'=='Release' and '$(CLRSupport)'=='true' "> | ||
| 89 | <ClCompile> | ||
| 90 | <BasicRuntimeChecks></BasicRuntimeChecks> | ||
| 91 | <RuntimeLibrary>MultiThreadedDll</RuntimeLibrary> | ||
| 92 | </ClCompile> | ||
| 93 | </ItemDefinitionGroup> | ||
| 94 | <ItemDefinitionGroup Condition=" '$(CLRSupport)'=='true' "> | ||
| 95 | <Link> | ||
| 96 | <KeyFile>$(LinkKeyFile)</KeyFile> | ||
| 97 | <DelaySign>$(LinkDelaySign)</DelaySign> | ||
| 98 | </Link> | ||
| 99 | </ItemDefinitionGroup> | ||
| 100 | </Project> | ||
diff --git a/src/Directory.Build.props b/src/Directory.Build.props new file mode 100644 index 00000000..48ba462d --- /dev/null +++ b/src/Directory.Build.props | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | <?xml version="1.0" encoding="utf-8"?> | ||
| 2 | <!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. --> | ||
| 3 | |||
| 4 | <Project> | ||
| 5 | <PropertyGroup> | ||
| 6 | <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
| 7 | <BaseIntermediateOutputPath>$(MSBuildThisFileDirectory)..\build\obj\$(MSBuildProjectName)\</BaseIntermediateOutputPath> | ||
| 8 | <OutputPath>$(MSBuildThisFileDirectory)..\build\$(Configuration)\</OutputPath> | ||
| 9 | |||
| 10 | <Authors>WiX Toolset Team</Authors> | ||
| 11 | <Company>WiX Toolset</Company> | ||
| 12 | <Copyright>Copyright (c) .NET Foundation and contributors. All rights reserved.</Copyright> | ||
| 13 | </PropertyGroup> | ||
| 14 | |||
| 15 | <PropertyGroup> | ||
| 16 | <WixToolsetRootFolder>$(MSBuildThisFileDirectory)..\..\</WixToolsetRootFolder> | ||
| 17 | </PropertyGroup> | ||
| 18 | |||
| 19 | <Import Project="Cpp.Build.props" Condition=" '$(MSBuildProjectExtension)'=='.vcxproj' " /> | ||
| 20 | <Import Project="Custom.Build.props" Condition=" Exists('Custom.Build.props') " /> | ||
| 21 | </Project> | ||
