Source

gb_emulator / gb_emulator / gb_emulator.vcxproj

Full commit
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <ItemGroup Label="ProjectConfigurations">
    <ProjectConfiguration Include="Debug|Win32">
      <Configuration>Debug</Configuration>
      <Platform>Win32</Platform>
    </ProjectConfiguration>
    <ProjectConfiguration Include="Debug|x64">
      <Configuration>Debug</Configuration>
      <Platform>x64</Platform>
    </ProjectConfiguration>
    <ProjectConfiguration Include="Release|Win32">
      <Configuration>Release</Configuration>
      <Platform>Win32</Platform>
    </ProjectConfiguration>
    <ProjectConfiguration Include="Release|x64">
      <Configuration>Release</Configuration>
      <Platform>x64</Platform>
    </ProjectConfiguration>
  </ItemGroup>
  <PropertyGroup Label="Globals">
    <ProjectGuid>{36A6F338-8651-4F03-9CC7-15D970CED2BE}</ProjectGuid>
    <RootNamespace>gb_emulator</RootNamespace>
  </PropertyGroup>
  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
    <ConfigurationType>DynamicLibrary</ConfigurationType>
    <UseDebugLibraries>true</UseDebugLibraries>
    <CharacterSet>Unicode</CharacterSet>
  </PropertyGroup>
  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
    <ConfigurationType>DynamicLibrary</ConfigurationType>
    <UseDebugLibraries>true</UseDebugLibraries>
    <CharacterSet>Unicode</CharacterSet>
  </PropertyGroup>
  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
    <ConfigurationType>DynamicLibrary</ConfigurationType>
    <UseDebugLibraries>false</UseDebugLibraries>
    <WholeProgramOptimization>true</WholeProgramOptimization>
    <CharacterSet>Unicode</CharacterSet>
  </PropertyGroup>
  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
    <ConfigurationType>DynamicLibrary</ConfigurationType>
    <UseDebugLibraries>false</UseDebugLibraries>
    <WholeProgramOptimization>true</WholeProgramOptimization>
    <CharacterSet>Unicode</CharacterSet>
  </PropertyGroup>
  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
  <ImportGroup Label="ExtensionSettings">
  </ImportGroup>
  <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
  </ImportGroup>
  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
    <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|Win32'">
    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
  </ImportGroup>
  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
  </ImportGroup>
  <PropertyGroup Label="UserMacros" />
  <PropertyGroup />
  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
    <ClCompile>
      <WarningLevel>Level4</WarningLevel>
      <Optimization>Disabled</Optimization>
      <TreatWarningAsError>true</TreatWarningAsError>
      <AdditionalIncludeDirectories>$(ProjectDir);$(ProjectDir)include;$(SolutionDir)gb_net\include;$(SolutionDir)third_party\glew\include;$(SolutionDir)third_party\hqx\include;$(SolutionDir)third_party\protobuf\src;$(BOOST_ROOT);$(CG_INC_PATH);$(DIRECTX_SDK_ROOT)\Include</AdditionalIncludeDirectories>
      <PreprocessorDefinitions>DEBUG;GB_EMULATOR_EXPORTS;GLEW_STATIC;_SCL_SECURE_NO_WARNINGS;WIN32_LEAN_AND_MEAN;_WIN32_WINNT=0x0600;%(PreprocessorDefinitions)</PreprocessorDefinitions>
    </ClCompile>
    <Link>
      <GenerateDebugInformation>true</GenerateDebugInformation>
      <LargeAddressAware>true</LargeAddressAware>
      <AdditionalLibraryDirectories>$(OutDir);$(BOOST_ROOT)\lib;$(CG_LIB_PATH);$(DIRECTX_SDK_ROOT)\Lib\x86</AdditionalLibraryDirectories>
      <AdditionalDependencies>cg.lib;cgD3D11.lib;cgGL.lib;d3dx11d.lib;dxgi.lib;gb_net.lib;glew.lib;hqx.lib;libprotobuf.lib;OpenGL32.Lib;XInput.lib;%(AdditionalDependencies)</AdditionalDependencies>
      <SubSystem>Windows</SubSystem>
      <ImageHasSafeExceptionHandlers>true</ImageHasSafeExceptionHandlers>
    </Link>
    <PostBuildEvent>
      <Command>mkdir "$(OutDir)shaders"
xcopy /y "$(ProjectDir)shaders" "$(OutDir)shaders"</Command>
    </PostBuildEvent>
  </ItemDefinitionGroup>
  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
    <ClCompile>
      <WarningLevel>Level4</WarningLevel>
      <Optimization>Disabled</Optimization>
      <TreatWarningAsError>true</TreatWarningAsError>
      <AdditionalIncludeDirectories>$(ProjectDir);$(ProjectDir)include;$(SolutionDir)gb_net\include;$(SolutionDir)third_party\glew\include;$(SolutionDir)third_party\hqx\include;$(SolutionDir)third_party\protobuf\src;$(BOOST_ROOT);$(CG_INC_PATH);$(DIRECTX_SDK_ROOT)\Include</AdditionalIncludeDirectories>
      <PreprocessorDefinitions>DEBUG;GB_EMULATOR_EXPORTS;GLEW_STATIC;_SCL_SECURE_NO_WARNINGS;WIN32_LEAN_AND_MEAN;_WIN32_WINNT=0x0600;%(PreprocessorDefinitions)</PreprocessorDefinitions>
    </ClCompile>
    <Link>
      <GenerateDebugInformation>true</GenerateDebugInformation>
      <LargeAddressAware>true</LargeAddressAware>
      <AdditionalLibraryDirectories>$(OutDir);$(BOOST_ROOT)\lib64;$(CG_LIB64_PATH);$(DIRECTX_SDK_ROOT)\Lib\x64</AdditionalLibraryDirectories>
      <AdditionalDependencies>cg.lib;cgD3D11.lib;cgGL.lib;d3dx11d.lib;dxgi.lib;gb_net.lib;glew.lib;hqx.lib;libprotobuf.lib;OpenGL32.Lib;XInput.lib;%(AdditionalDependencies)</AdditionalDependencies>
      <SubSystem>Windows</SubSystem>
    </Link>
    <PostBuildEvent>
      <Command>mkdir "$(OutDir)shaders"
xcopy /y "$(ProjectDir)shaders" "$(OutDir)shaders"</Command>
    </PostBuildEvent>
  </ItemDefinitionGroup>
  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
    <ClCompile>
      <WarningLevel>Level4</WarningLevel>
      <Optimization>MaxSpeed</Optimization>
      <FunctionLevelLinking>true</FunctionLevelLinking>
      <IntrinsicFunctions>true</IntrinsicFunctions>
      <TreatWarningAsError>true</TreatWarningAsError>
      <AdditionalIncludeDirectories>$(ProjectDir);$(ProjectDir)include;$(SolutionDir)gb_net\include;$(SolutionDir)third_party\glew\include;$(SolutionDir)third_party\hqx\include;$(SolutionDir)third_party\protobuf\src;$(BOOST_ROOT);$(CG_INC_PATH);$(DIRECTX_SDK_ROOT)\Include</AdditionalIncludeDirectories>
      <PreprocessorDefinitions>GB_EMULATOR_EXPORTS;GLEW_STATIC;_SCL_SECURE_NO_WARNINGS;WIN32_LEAN_AND_MEAN;_WIN32_WINNT=0x0600;%(PreprocessorDefinitions)</PreprocessorDefinitions>
    </ClCompile>
    <Link>
      <GenerateDebugInformation>true</GenerateDebugInformation>
      <EnableCOMDATFolding>true</EnableCOMDATFolding>
      <OptimizeReferences>true</OptimizeReferences>
      <LargeAddressAware>true</LargeAddressAware>
      <AdditionalLibraryDirectories>$(OutDir);$(BOOST_ROOT)\lib;$(CG_LIB_PATH);$(DIRECTX_SDK_ROOT)\Lib\x86</AdditionalLibraryDirectories>
      <AdditionalDependencies>cg.lib;cgD3D11.lib;cgGL.lib;d3dx11.lib;dxgi.lib;hqx.lib;glew.lib;gb_net.lib;libprotobuf.lib;OpenGL32.Lib;XInput.lib;%(AdditionalDependencies)</AdditionalDependencies>
      <SubSystem>Windows</SubSystem>
      <ImageHasSafeExceptionHandlers>true</ImageHasSafeExceptionHandlers>
    </Link>
    <PostBuildEvent>
      <Command>mkdir "$(OutDir)shaders"
xcopy /y "$(ProjectDir)shaders" "$(OutDir)shaders"</Command>
    </PostBuildEvent>
  </ItemDefinitionGroup>
  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
    <ClCompile>
      <WarningLevel>Level4</WarningLevel>
      <Optimization>MaxSpeed</Optimization>
      <FunctionLevelLinking>true</FunctionLevelLinking>
      <IntrinsicFunctions>true</IntrinsicFunctions>
      <TreatWarningAsError>true</TreatWarningAsError>
      <AdditionalIncludeDirectories>$(ProjectDir);$(ProjectDir)include;$(SolutionDir)gb_net\include;$(SolutionDir)third_party\glew\include;$(SolutionDir)third_party\hqx\include;$(SolutionDir)third_party\protobuf\src;$(BOOST_ROOT);$(CG_INC_PATH);$(DIRECTX_SDK_ROOT)\Include</AdditionalIncludeDirectories>
      <PreprocessorDefinitions>GB_EMULATOR_EXPORTS;GLEW_STATIC;_SCL_SECURE_NO_WARNINGS;WIN32_LEAN_AND_MEAN;_WIN32_WINNT=0x0600;%(PreprocessorDefinitions)</PreprocessorDefinitions>
    </ClCompile>
    <Link>
      <GenerateDebugInformation>true</GenerateDebugInformation>
      <EnableCOMDATFolding>true</EnableCOMDATFolding>
      <OptimizeReferences>true</OptimizeReferences>
      <LargeAddressAware>true</LargeAddressAware>
      <AdditionalLibraryDirectories>$(OutDir);$(BOOST_ROOT)\lib64;$(CG_LIB64_PATH);$(DIRECTX_SDK_ROOT)\Lib\x64</AdditionalLibraryDirectories>
      <AdditionalDependencies>cg.lib;cgD3D11.lib;cgGL.lib;d3dx11.lib;dxgi.lib;hqx.lib;glew.lib;gb_net.lib;libprotobuf.lib;OpenGL32.Lib;XInput.lib;%(AdditionalDependencies)</AdditionalDependencies>
      <SubSystem>Windows</SubSystem>
    </Link>
    <PostBuildEvent>
      <Command>mkdir "$(OutDir)shaders"
xcopy /y "$(ProjectDir)shaders" "$(OutDir)shaders"</Command>
    </PostBuildEvent>
  </ItemDefinitionGroup>
  <ItemGroup>
    <ClInclude Include="gb.pb.h" />
    <ClInclude Include="gb_cpu_opcodes.h" />
    <ClInclude Include="include\gb_emulator\cdb_file.h" />
    <ClInclude Include="include\gb_emulator\constants.h" />
    <ClInclude Include="include\gb_emulator\defs.h" />
    <ClInclude Include="include\gb_emulator\gb.h" />
    <ClInclude Include="include\gb_emulator\gb_comms_serial.h" />
    <ClInclude Include="include\gb_emulator\gb_config.h" />
    <ClInclude Include="include\gb_emulator\gb_cpu.h" />
    <ClInclude Include="include\gb_emulator\gb_debugger.h" />
    <ClInclude Include="include\gb_emulator\gb_debugger_module.h" />
    <ClInclude Include="include\gb_emulator\gb_disassembler.h" />
    <ClInclude Include="include\gb_emulator\gb_input.h" />
    <ClInclude Include="include\gb_emulator\gb_memory.h" />
    <ClInclude Include="include\gb_emulator\gb_sound.h" />
    <ClInclude Include="include\gb_emulator\gb_sound_wasapi.h" />
    <ClInclude Include="include\gb_emulator\gb_sound_wasapi_renderer.h" />
    <ClInclude Include="include\gb_emulator\gb_timers.h" />
    <ClInclude Include="include\gb_emulator\gb_video.h" />
    <ClInclude Include="include\gb_emulator\gb_video_d3d11.h" />
    <ClInclude Include="include\gb_emulator\gb_video_opengl.h" />
    <ClInclude Include="include\gb_emulator\gb_window.h" />
    <ClInclude Include="include\gb_emulator\glew_error.h" />
    <ClInclude Include="src\gb_sound_tables.h" />
  </ItemGroup>
  <ItemGroup>
    <ClCompile Include="gb.pb.cc">
      <WarningLevel Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">TurnOffAllWarnings</WarningLevel>
      <WarningLevel Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">TurnOffAllWarnings</WarningLevel>
      <TreatWarningAsError Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">false</TreatWarningAsError>
      <TreatWarningAsError Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</TreatWarningAsError>
      <WarningLevel Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">TurnOffAllWarnings</WarningLevel>
      <WarningLevel Condition="'$(Configuration)|$(Platform)'=='Release|x64'">TurnOffAllWarnings</WarningLevel>
      <TreatWarningAsError Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</TreatWarningAsError>
      <TreatWarningAsError Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</TreatWarningAsError>
    </ClCompile>
    <ClCompile Include="src\cdb_file.cpp" />
    <ClCompile Include="src\gb.cpp" />
    <ClCompile Include="src\gb_comms_serial.cpp" />
    <ClCompile Include="src\gb_cpu.cpp" />
    <ClCompile Include="src\gb_debugger.cpp" />
    <ClCompile Include="src\gb_disassembler.cpp" />
    <ClCompile Include="src\gb_input.cpp" />
    <ClCompile Include="src\gb_memory.cpp" />
    <ClCompile Include="src\gb_sound.cpp" />
    <ClCompile Include="src\gb_sound_wasapi.cpp" />
    <ClCompile Include="src\gb_sound_wasapi_renderer.cpp" />
    <ClCompile Include="src\gb_timers.cpp" />
    <ClCompile Include="src\gb_video.cpp" />
    <ClCompile Include="src\gb_video_d3d11.cpp" />
    <ClCompile Include="src\gb_video_opengl.cpp" />
    <ClCompile Include="src\glew_error.cpp" />
  </ItemGroup>
  <ItemGroup>
    <CustomBuild Include="gb.proto">
      <FileType>Document</FileType>
      <Command Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">"$(OutDir)protoc.exe" --cpp_out=. %(Filename)%(Extension)</Command>
      <Command Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">"$(OutDir)protoc.exe" --cpp_out=. %(Filename)%(Extension)</Command>
      <Message Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Generating %(Filename).pb.{h,cc}...</Message>
      <Message Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Generating %(Filename).pb.{h,cc}...</Message>
      <Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(Filename).pb.h;%(Filename).pb.cc;%(Outputs)</Outputs>
      <Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(Filename).pb.h;%(Filename).pb.cc;%(Outputs)</Outputs>
      <Command Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">"$(OutDir)protoc.exe" --cpp_out=. %(Filename)%(Extension)</Command>
      <Command Condition="'$(Configuration)|$(Platform)'=='Release|x64'">"$(OutDir)protoc.exe" --cpp_out=. %(Filename)%(Extension)</Command>
      <Message Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Generating %(Filename).pb.{h,cc}...</Message>
      <Message Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Generating %(Filename).pb.{h,cc}...</Message>
      <Outputs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(Filename).pb.h;%(Filename).pb.cc;%(Outputs)</Outputs>
      <Outputs Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(Filename).pb.h;%(Filename).pb.cc;%(Outputs)</Outputs>
    </CustomBuild>
  </ItemGroup>
  <ItemGroup>
    <CustomBuild Include="ops.txt">
      <Command Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">python gen_ops.py</Command>
      <Command Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">python gen_ops.py</Command>
      <Message Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Generating opcodes...</Message>
      <Message Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Generating opcodes...</Message>
      <Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">gb_cpu_opcodes.h;gb_cpu_opcodes.cpp.inc;%(Outputs)</Outputs>
      <Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">gb_cpu_opcodes.h;gb_cpu_opcodes.cpp.inc;%(Outputs)</Outputs>
      <Command Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">python gen_ops.py</Command>
      <Command Condition="'$(Configuration)|$(Platform)'=='Release|x64'">python gen_ops.py</Command>
      <Message Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Generating opcodes...</Message>
      <Message Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Generating opcodes...</Message>
      <Outputs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">gb_cpu_opcodes.h;gb_cpu_opcodes.cpp.inc;%(Outputs)</Outputs>
      <Outputs Condition="'$(Configuration)|$(Platform)'=='Release|x64'">gb_cpu_opcodes.h;gb_cpu_opcodes.cpp.inc;%(Outputs)</Outputs>
    </CustomBuild>
    <None Include="gb_cpu_opcodes.cpp.inc" />
    <None Include="gb_disassembler_opcodes.cpp.inc" />
    <None Include="gen_ops.py" />
    <None Include="shaders\pixel_shader.cg" />
    <None Include="shaders\vertex_shader.cg" />
  </ItemGroup>
  <ItemGroup>
    <ProjectReference Include="..\third_party\glew\glew.vcxproj">
      <Project>{c922b8dd-6530-41fd-af96-0e15cb2eb1fb}</Project>
    </ProjectReference>
  </ItemGroup>
  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
  <ImportGroup Label="ExtensionTargets">
  </ImportGroup>
</Project>