<?xml version="1.0" encoding="utf-8"?> | |
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<ItemGroup Label="ProjectConfigurations"> | |
<ProjectConfiguration Include="Debug|x64"> | |
<Configuration>Debug</Configuration> | |
<Platform>x64</Platform> | |
</ProjectConfiguration> | |
<ProjectConfiguration Include="Release|x64"> | |
<Configuration>Release</Configuration> | |
<Platform>x64</Platform> | |
</ProjectConfiguration> | |
</ItemGroup> | |
<ItemGroup> | |
<ClCompile Include="example.cxx" /> | |
<ClCompile Include="example_wrap.cxx" /> | |
</ItemGroup> | |
<ItemGroup> | |
<CustomBuild Include="example.i"> | |
<FileType>Document</FileType> | |
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">echo In order to function correctly, please ensure the following environment variables are correctly set: | |
echo PYTHON_INCLUDE: %PYTHON_INCLUDE% | |
echo PYTHON_LIB: %PYTHON_LIB% | |
set SWIG_INVOKE=..\..\..\swig.exe -c++ -python "%(FullPath)" | |
echo %SWIG_INVOKE% | |
%SWIG_INVOKE%</Command> | |
<Message Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">SWIG Custom Build Rule</Message> | |
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(Filename)_wrap.cxx</Outputs> | |
<Command Condition="'$(Configuration)|$(Platform)'=='Release|x64'">echo In order to function correctly, please ensure the following environment variables are correctly set: | |
echo PYTHON_INCLUDE: %PYTHON_INCLUDE% | |
echo PYTHON_LIB: %PYTHON_LIB% | |
set SWIG_INVOKE=..\..\..\swig.exe -c++ -python "%(FullPath)" | |
echo %SWIG_INVOKE% | |
%SWIG_INVOKE%</Command> | |
<Message Condition="'$(Configuration)|$(Platform)'=='Release|x64'">SWIG Custom Build Rule</Message> | |
<Outputs Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(Filename)_wrap.cxx</Outputs> | |
</CustomBuild> | |
</ItemGroup> | |
<ItemGroup> | |
<ClInclude Include="example.h" /> | |
</ItemGroup> | |
<PropertyGroup Label="Globals"> | |
<VCProjectVersion>16.0</VCProjectVersion> | |
<Keyword>Win32Proj</Keyword> | |
<ProjectGuid>{31a90216-ba8f-4cf2-a694-ec8eba4da2f5}</ProjectGuid> | |
<RootNamespace>example</RootNamespace> | |
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion> | |
</PropertyGroup> | |
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> | |
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration"> | |
<ConfigurationType>DynamicLibrary</ConfigurationType> | |
<UseDebugLibraries>true</UseDebugLibraries> | |
<PlatformToolset>v142</PlatformToolset> | |
<CharacterSet>Unicode</CharacterSet> | |
</PropertyGroup> | |
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration"> | |
<ConfigurationType>DynamicLibrary</ConfigurationType> | |
<UseDebugLibraries>false</UseDebugLibraries> | |
<PlatformToolset>v142</PlatformToolset> | |
<WholeProgramOptimization>true</WholeProgramOptimization> | |
<CharacterSet>Unicode</CharacterSet> | |
</PropertyGroup> | |
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> | |
<ImportGroup Label="ExtensionSettings"> | |
</ImportGroup> | |
<ImportGroup Label="Shared"> | |
</ImportGroup> | |
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> | |
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | |
</ImportGroup> | |
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> | |
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | |
</ImportGroup> | |
<PropertyGroup Label="UserMacros" /> | |
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> | |
<LinkIncremental>true</LinkIncremental> | |
<OutDir>$(SolutionDir)</OutDir> | |
<TargetExt>.pyd</TargetExt> | |
<TargetName>_$(ProjectName)</TargetName> | |
</PropertyGroup> | |
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> | |
<LinkIncremental>false</LinkIncremental> | |
<OutDir>$(SolutionDir)</OutDir> | |
<TargetExt>.pyd</TargetExt> | |
<TargetName>_$(ProjectName)</TargetName> | |
</PropertyGroup> | |
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> | |
<ClCompile> | |
<WarningLevel>Level3</WarningLevel> | |
<SDLCheck>true</SDLCheck> | |
<PreprocessorDefinitions>_DEBUG;EXAMPLE_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions> | |
<ConformanceMode>true</ConformanceMode> | |
<PrecompiledHeader>NotUsing</PrecompiledHeader> | |
<PrecompiledHeaderFile> | |
</PrecompiledHeaderFile> | |
<AdditionalIncludeDirectories>$(PYTHON_INCLUDE);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> | |
</ClCompile> | |
<Link> | |
<SubSystem>Windows</SubSystem> | |
<GenerateDebugInformation>true</GenerateDebugInformation> | |
<EnableUAC>false</EnableUAC> | |
<AdditionalDependencies>$(PYTHON_LIB);%(AdditionalDependencies)</AdditionalDependencies> | |
<OutputFile>$(OutDir)$(TargetName)$(TargetExt)</OutputFile> | |
</Link> | |
</ItemDefinitionGroup> | |
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> | |
<ClCompile> | |
<WarningLevel>Level3</WarningLevel> | |
<FunctionLevelLinking>true</FunctionLevelLinking> | |
<IntrinsicFunctions>true</IntrinsicFunctions> | |
<SDLCheck>true</SDLCheck> | |
<PreprocessorDefinitions>NDEBUG;EXAMPLE_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions> | |
<ConformanceMode>true</ConformanceMode> | |
<PrecompiledHeader>NotUsing</PrecompiledHeader> | |
<PrecompiledHeaderFile> | |
</PrecompiledHeaderFile> | |
<AdditionalIncludeDirectories>$(PYTHON_INCLUDE);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> | |
</ClCompile> | |
<Link> | |
<SubSystem>Windows</SubSystem> | |
<EnableCOMDATFolding>true</EnableCOMDATFolding> | |
<OptimizeReferences>true</OptimizeReferences> | |
<GenerateDebugInformation>true</GenerateDebugInformation> | |
<EnableUAC>false</EnableUAC> | |
<AdditionalDependencies>$(PYTHON_LIB);%(AdditionalDependencies)</AdditionalDependencies> | |
<OutputFile>$(OutDir)$(TargetName)$(TargetExt)</OutputFile> | |
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration> | |
</Link> | |
</ItemDefinitionGroup> | |
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> | |
<ImportGroup Label="ExtensionTargets"> | |
</ImportGroup> | |
</Project> |