mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-28 02:39:07 +08:00
95c0444591
* add vcpkg-msbuild * v db * Apply some suggestions from code review * revert v db and format manifest * v db * fix missing rename * v db * revert back to USE_MSVC_SYNTAX_ON_WINDOWS * v db * Fix logic * v db * Update versions/v-/vcpkg-msbuild.json * Apply suggestions from code review Co-authored-by: Javier Matos Denizac <javier.matosd@gmail.com> * remove include destination since it wasn't used any way * v db --------- Co-authored-by: Jonliu1993 <13720414433@163.com> Co-authored-by: Javier Matos Denizac <javier.matosd@gmail.com>
64 lines
5.8 KiB
XML
64 lines
5.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
<Import Condition="'$(vcpkg_msbuild_props_imported)' != 'true'" Project="vcpkg_msbuild.props" />
|
|
<PropertyGroup>
|
|
<WindowsTargetPlatformVersion>@arg_TARGET_PLATFORM_VERSION@</WindowsTargetPlatformVersion>
|
|
<PlatformToolset>@VCPKG_PLATFORM_TOOLSET@</PlatformToolset>
|
|
<!-- <Platform>@arg_PLATFORM@</Platform> -->
|
|
<VcpkgApplocalDeps>false</VcpkgApplocalDeps>
|
|
<VcpkgManifestInstall>false</VcpkgManifestInstall>
|
|
<VcpkgManifestEnabled>false</VcpkgManifestEnabled>
|
|
<VcpkgEnabled>false</VcpkgEnabled>
|
|
<VcpkgTriplet>@TARGET_TRIPLET@</VcpkgTriplet>
|
|
<VcpkgInstalledDir>@_VCPKG_INSTALLED_DIR@</VcpkgInstalledDir>
|
|
<UseIntelMKL>No</UseIntelMKL>
|
|
<ImportProjectExtensionProps>false</ImportProjectExtensionProps>
|
|
</PropertyGroup>
|
|
<ItemDefinitionGroup>
|
|
<ClCompile>
|
|
<!-- vcpkg -->
|
|
<RuntimeLibrary Condition="'${VCPKG_CRT_LINKAGE}|$(Configuration)' == 'static|${arg_DEBUG_CONFIGURATION}'">MultiThreadedDebug</RuntimeLibrary>
|
|
<RuntimeLibrary Condition="'${VCPKG_CRT_LINKAGE}|$(Configuration)' == 'static|${arg_RELEASE_CONFIGURATION}'">MultiThreaded</RuntimeLibrary>
|
|
<RuntimeLibrary Condition="'${VCPKG_CRT_LINKAGE}|$(Configuration)' == 'dynamic|${arg_DEBUG_CONFIGURATION}'">MultiThreadedDebugDLL</RuntimeLibrary>
|
|
<RuntimeLibrary Condition="'${VCPKG_CRT_LINKAGE}|$(Configuration)' == 'dynamic|${arg_RELEASE_CONFIGURATION}'">MultiThreadedDLL</RuntimeLibrary>
|
|
<AdditionalIncludeDirectories Condition="'$(Configuration)'=='${arg_DEBUG_CONFIGURATION}'" >@MSBUILD_INCLUDE_DIRS_DEBUG@</AdditionalIncludeDirectories>
|
|
<AdditionalIncludeDirectories Condition="'$(Configuration)'=='${arg_RELEASE_CONFIGURATION}'">@MSBUILD_INCLUDE_DIRS_RELEASE@</AdditionalIncludeDirectories>
|
|
</ClCompile>
|
|
</ItemDefinitionGroup>
|
|
<ItemGroup>
|
|
<ClCompile Update="@project_root@**/*.cpp;@project_root@**/*.cxx">
|
|
<AdditionalOptions Condition="'$(Configuration)'=='${arg_DEBUG_CONFIGURATION}'" >%(AdditionalOptions) @VCPKG_COMBINED_CXX_FLAGS_DEBUG@ @MSBUILD_CFLAGS_DEBUG@ /WX-</AdditionalOptions>
|
|
<AdditionalOptions Condition="'$(Configuration)'=='${arg_RELEASE_CONFIGURATION}'">%(AdditionalOptions) @VCPKG_COMBINED_CXX_FLAGS_RELEASE@ @MSBUILD_CFLAGS_RELEASE@ /WX-</AdditionalOptions>
|
|
</ClCompile>
|
|
</ItemGroup>
|
|
<ItemGroup >
|
|
<ClCompile Update="@project_root@**/*.c">
|
|
<AdditionalOptions Condition="'$(Configuration)'=='${arg_DEBUG_CONFIGURATION}'" >%(AdditionalOptions) @VCPKG_COMBINED_C_FLAGS_DEBUG@ @MSBUILD_CFLAGS_DEBUG@ /WX-</AdditionalOptions>
|
|
<AdditionalOptions Condition="'$(Configuration)'=='${arg_RELEASE_CONFIGURATION}'">%(AdditionalOptions) @VCPKG_COMBINED_C_FLAGS_RELEASE@ @MSBUILD_CFLAGS_RELEASE@ /WX-</AdditionalOptions>
|
|
</ClCompile>
|
|
</ItemGroup>
|
|
<ItemDefinitionGroup>
|
|
<Link>
|
|
<!-- Required Libs -->
|
|
<AdditionalDependencies Condition="'$(Configuration)'=='${arg_DEBUG_CONFIGURATION}'" >@MSBUILD_LIBRARIES_DEBUG@</AdditionalDependencies>
|
|
<AdditionalLibraryDirectories Condition="'$(Configuration)'=='${arg_DEBUG_CONFIGURATION}'" >@MSBUILD_LIBRARIES_DIRS_DEBUG@</AdditionalLibraryDirectories>
|
|
<AdditionalDependencies Condition="'$(Configuration)'=='${arg_RELEASE_CONFIGURATION}'" >@MSBUILD_LIBRARIES_RELEASE@</AdditionalDependencies >
|
|
<AdditionalLibraryDirectories Condition="'$(Configuration)'=='${arg_RELEASE_CONFIGURATION}'">@MSBUILD_LIBRARIES_DIRS_RELEASE@</AdditionalLibraryDirectories>
|
|
<AdditionalOptions Condition="'$(Configuration)|$(ConfigurationType)'=='${arg_DEBUG_CONFIGURATION}|DynamicLibrary'" >%(AdditionalOptions) @VCPKG_COMBINED_SHARED_LINKER_FLAGS_DEBUG@ @MSBUILD_LIBS_DEBUG@ /WX:NO</AdditionalOptions>
|
|
<AdditionalOptions Condition="'$(Configuration)|$(ConfigurationType)'=='${arg_RELEASE_CONFIGURATION}|DynamicLibrary'">%(AdditionalOptions) @VCPKG_COMBINED_SHARED_LINKER_FLAGS_RELEASE@ @MSBUILD_LIBS_RELEASE@ /WX:NO</AdditionalOptions>
|
|
<AdditionalOptions Condition="'$(Configuration)|$(ConfigurationType)'=='${arg_DEBUG_CONFIGURATION}|Application'" >%(AdditionalOptions) @VCPKG_COMBINED_EXE_LINKER_FLAGS_DEBUG@ @MSBUILD_LIBS_DEBUG@ /WX:NO</AdditionalOptions>
|
|
<AdditionalOptions Condition="'$(Configuration)|$(ConfigurationType)'=='${arg_RELEASE_CONFIGURATION}|Application'">%(AdditionalOptions) @VCPKG_COMBINED_EXE_LINKER_FLAGS_RELEASE@ @MSBUILD_LIBS_RELEASE@ /WX:NO</AdditionalOptions>
|
|
<AdditionalOptions Condition="'$(Configuration)|$(ConfigurationType)'=='${arg_DEBUG_CONFIGURATION}|StaticLibrary'">%(AdditionalOptions) @VCPKG_COMBINED_STATIC_LINKER_FLAGS_DEBUG@</AdditionalOptions>
|
|
<AdditionalOptions Condition="'$(Configuration)|$(ConfigurationType)'=='${arg_RELEASE_CONFIGURATION}|StaticLibrary'">%(AdditionalOptions) @VCPKG_COMBINED_STATIC_LINKER_FLAGS_RELEASE@</AdditionalOptions>
|
|
</Link>
|
|
<Lib>
|
|
<AdditionalOptions Condition="'$(Configuration)|$(ConfigurationType)'=='${arg_DEBUG_CONFIGURATION}|StaticLibrary'">%(AdditionalOptions) @VCPKG_COMBINED_STATIC_LINKER_FLAGS_DEBUG@</AdditionalOptions>
|
|
<AdditionalOptions Condition="'$(Configuration)|$(ConfigurationType)'=='${arg_RELEASE_CONFIGURATION}|StaticLibrary'">%(AdditionalOptions) @VCPKG_COMBINED_STATIC_LINKER_FLAGS_RELEASE@</AdditionalOptions>
|
|
<!-- Required to prevent linker errors on Visual Studio 2017 with static CRT -->
|
|
<TargetMachine Condition="'${VCPKG_TARGET_ARCHITECTURE}'=='x86'">MachineX86</TargetMachine>
|
|
<TargetMachine Condition="'${VCPKG_TARGET_ARCHITECTURE}'=='x64'">MachineX64</TargetMachine>
|
|
<TargetMachine Condition="'${VCPKG_TARGET_ARCHITECTURE}'=='arm'">MachineARM</TargetMachine>
|
|
</Lib>
|
|
</ItemDefinitionGroup>
|
|
@VCPKG_MSBUILD_ADDITIONAL_TARGETS_XML@
|
|
</Project> |