|
| 1 | +<?xml version="1.0" encoding="utf-8"?> |
| 2 | +<Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
| 3 | + <ItemGroup Label="ProjectConfigurations"> |
| 4 | + <ProjectConfiguration Include="Debug|x64"> |
| 5 | + <Configuration>Debug</Configuration> |
| 6 | + <Platform>x64</Platform> |
| 7 | + </ProjectConfiguration> |
| 8 | + <ProjectConfiguration Include="Release|x64"> |
| 9 | + <Configuration>Release</Configuration> |
| 10 | + <Platform>x64</Platform> |
| 11 | + </ProjectConfiguration> |
| 12 | + </ItemGroup> |
| 13 | + <PropertyGroup Label="Globals"> |
| 14 | + <ProjectGuid>{7B3B4C5D-6E7F-8A9B-0C1D-2E3F4A5B6C7D}</ProjectGuid> |
| 15 | + <Keyword>MakeFileProj</Keyword> |
| 16 | + </PropertyGroup> |
| 17 | + <Import Project="$(SolutionDir)\buildfiles\msvc\common_default.props" /> |
| 18 | + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> |
| 19 | + <Import Project="$(SolutionDir)\buildfiles\msvc\common_default_macros.props" /> |
| 20 | + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration"> |
| 21 | + <ConfigurationType>Makefile</ConfigurationType> |
| 22 | + <UseDebugLibraries>true</UseDebugLibraries> |
| 23 | + </PropertyGroup> |
| 24 | + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration"> |
| 25 | + <ConfigurationType>Makefile</ConfigurationType> |
| 26 | + <UseDebugLibraries>false</UseDebugLibraries> |
| 27 | + </PropertyGroup> |
| 28 | + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> |
| 29 | + <PropertyGroup> |
| 30 | + <PreferredToolArchitecture>x64</PreferredToolArchitecture> |
| 31 | + </PropertyGroup> |
| 32 | + <ImportGroup Label="ExtensionSettings"> |
| 33 | + </ImportGroup> |
| 34 | + <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets"> |
| 35 | + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> |
| 36 | + </ImportGroup> |
| 37 | + <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets"> |
| 38 | + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> |
| 39 | + </ImportGroup> |
| 40 | + <PropertyGroup Label="UserMacros"> |
| 41 | + <CmakeReleaseCLI>call vsdevcmd.bat -arch=amd64 |
| 42 | + cd "$(SolutionDir)build\tmp\protobuf_build-$(Configuration)-$(Platform)" |
| 43 | + cmake -G Ninja -DCMAKE_CXX_COMPILER="cl.exe" -DCMAKE_C_COMPILER="cl.exe" -DCMAKE_BUILD_TYPE="Release" -DCMAKE_INSTALL_PREFIX="$(SolutionDir)build\lib\$(Configuration)-$(Platform)\protobuf_build" -DCMAKE_SYSTEM_VERSION=10.0 -DCMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION=$(WindowsTargetPlatformVersion) -DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded -Dprotobuf_INSTALL=ON -Dprotobuf_BUILD_TESTS=OFF -Dprotobuf_BUILD_CONFORMANCE=OFF -Dprotobuf_BUILD_EXAMPLES=OFF -Dprotobuf_BUILD_PROTOBUF_BINARIES=ON -Dprotobuf_BUILD_PROTOC_BINARIES=OFF -Dprotobuf_BUILD_LIBPROTOC=OFF -Dprotobuf_BUILD_LIBUPB=OFF -Dprotobuf_ALLOW_CCACHE=ON -Dprotobuf_FORCE_FETCH_DEPENDENCIES=ON -Dprotobuf_WITH_ZLIB=OFF -Dprotobuf_MSVC_STATIC_RUNTIME=ON "$(SolutionDir)3rdparty\protobuf\protobuf" |
| 44 | + </CmakeReleaseCLI> |
| 45 | + <CmakeDebugCLI>call vsdevcmd.bat -arch=amd64 |
| 46 | + cd "$(SolutionDir)build\tmp\protobuf_build-$(Configuration)-$(Platform)" |
| 47 | + cmake -G Ninja -DCMAKE_CXX_COMPILER="cl.exe" -DCMAKE_C_COMPILER="cl.exe" -DCMAKE_BUILD_TYPE="Debug" -DCMAKE_INSTALL_PREFIX="$(SolutionDir)build\lib\$(Configuration)-$(Platform)\protobuf_build" -DCMAKE_SYSTEM_VERSION=10.0 -DCMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION=$(WindowsTargetPlatformVersion) -DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreadedDebugDLL -Dprotobuf_INSTALL=ON -Dprotobuf_BUILD_TESTS=OFF -Dprotobuf_BUILD_CONFORMANCE=OFF -Dprotobuf_BUILD_EXAMPLES=OFF -Dprotobuf_BUILD_PROTOBUF_BINARIES=ON -Dprotobuf_BUILD_PROTOC_BINARIES=OFF -Dprotobuf_BUILD_LIBPROTOC=OFF -Dprotobuf_BUILD_LIBUPB=OFF -Dprotobuf_ALLOW_CCACHE=ON -Dprotobuf_FORCE_FETCH_DEPENDENCIES=ON -Dprotobuf_WITH_ZLIB=OFF -Dprotobuf_MSVC_STATIC_RUNTIME=OFF "$(SolutionDir)3rdparty\protobuf\protobuf" |
| 48 | + </CmakeDebugCLI> |
| 49 | + <CmakeCleanCLI> |
| 50 | + echo Cleaning.. |
| 51 | + rmdir /s /q "$(SolutionDir)build\lib\$(Configuration)-$(Platform)\protobuf_build" |
| 52 | + cd "$(SolutionDir)build\tmp\protobuf_build-$(Configuration)-$(Platform)" |
| 53 | + for /F "delims= eol=|" %%f in (' |
| 54 | + dir /b ^| findstr /V "[^.]*\build[^.]*\.vcxproj"') do ( |
| 55 | + echo Deleting .\%%f |
| 56 | + if exist %%f\nul ( |
| 57 | + rmdir .\%%f /s /q |
| 58 | + ) else ( |
| 59 | + del .\%%f /q |
| 60 | + ) |
| 61 | + ) |
| 62 | + </CmakeCleanCLI> |
| 63 | + </PropertyGroup> |
| 64 | + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> |
| 65 | + <NMakePreprocessorDefinitions> |
| 66 | + </NMakePreprocessorDefinitions> |
| 67 | + <OutDir>$(SolutionDir)build\lib\$(Configuration)-$(Platform)\</OutDir> |
| 68 | + <IntDir>$(SolutionDir)build\tmp\$(ProjectName)-$(Configuration)-$(Platform)\</IntDir> |
| 69 | + <NMakeBuildCommandLine> |
| 70 | + $(CmakeDebugCLI) |
| 71 | + ninja |
| 72 | + ninja install |
| 73 | + </NMakeBuildCommandLine> |
| 74 | + <NMakeReBuildCommandLine> |
| 75 | + $(CmakeCleanCLI) |
| 76 | + $(CmakeDebugCLI) |
| 77 | + ninja |
| 78 | + ninja install |
| 79 | + </NMakeReBuildCommandLine> |
| 80 | + <NMakeCleanCommandLine> |
| 81 | + $(CmakeCleanCLI) |
| 82 | + </NMakeCleanCommandLine> |
| 83 | + </PropertyGroup> |
| 84 | + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> |
| 85 | + <NMakePreprocessorDefinitions> |
| 86 | + </NMakePreprocessorDefinitions> |
| 87 | + <OutDir>$(SolutionDir)build\lib\$(Configuration)-$(Platform)\</OutDir> |
| 88 | + <IntDir>$(SolutionDir)build\tmp\$(ProjectName)-$(Configuration)-$(Platform)\</IntDir> |
| 89 | + <NMakeBuildCommandLine> |
| 90 | + $(CmakeReleaseCLI) |
| 91 | + ninja |
| 92 | + ninja install |
| 93 | + </NMakeBuildCommandLine> |
| 94 | + <NMakeReBuildCommandLine> |
| 95 | + $(CmakeCleanCLI) |
| 96 | + $(CmakeReleaseCLI) |
| 97 | + ninja |
| 98 | + ninja install |
| 99 | + </NMakeReBuildCommandLine> |
| 100 | + <NMakeCleanCommandLine> |
| 101 | + $(CmakeCleanCLI) |
| 102 | + </NMakeCleanCommandLine> |
| 103 | + </PropertyGroup> |
| 104 | + <ItemDefinitionGroup> |
| 105 | + </ItemDefinitionGroup> |
| 106 | + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> |
| 107 | + <ImportGroup Label="ExtensionTargets"> |
| 108 | + </ImportGroup> |
| 109 | +</Project> |
0 commit comments