<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup Label="Globals">
    <ProjectGuid>{A7A30702-8162-4E1A-A010-EF51B590C121}</ProjectGuid>
    <RootNamespace>luabins</RootNamespace>
  </PropertyGroup>

  <!-- Aegisub project configuration -->
  <PropertyGroup Label="AegisubConfiguration">
    <AegisubProjectType>lib</AegisubProjectType>
    <SrcDir>..\..\vendor\luabins\src\</SrcDir>
  </PropertyGroup>
  <ImportGroup Label="PropertySheets">
    <Import Project="$(MSBuildThisFileDirectory)..\aegisub.props" />
  </ImportGroup>

  <!-- Project specific configuration -->
  <ItemDefinitionGroup>
    <ClCompile>
      <PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
      <AdditionalIncludeDirectories>$(SrcDir)..\..\lua51\src;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
    </ClCompile>
  </ItemDefinitionGroup>

  <!-- Project References -->
  <ItemGroup>
    <ProjectReference Include="..\luajit\luajit.vcxproj">
      <Project>{5391a8b1-9c70-4dc4-92ad-d3e34c6b803f}</Project>
    </ProjectReference>
  </ItemGroup>

  <!-- Source files -->
  <ItemGroup>
    <ClCompile Include="$(SrcDir)fwrite.c" />
    <ClCompile Include="$(SrcDir)load.c" />
    <ClCompile Include="$(SrcDir)luabins.c" />
    <ClCompile Include="$(SrcDir)luainternals.c" />
    <ClCompile Include="$(SrcDir)save.c" />
    <ClCompile Include="$(SrcDir)savebuffer.c" />
    <ClCompile Include="$(SrcDir)write.c" />
  </ItemGroup>
  <ItemGroup>
    <ClInclude Include="$(SrcDir)fwrite.h" />
    <ClInclude Include="$(SrcDir)luabins.h" />
    <ClInclude Include="$(SrcDir)luaheaders.h" />
    <ClInclude Include="$(SrcDir)luainternals.h" />
    <ClInclude Include="$(SrcDir)savebuffer.h" />
    <ClInclude Include="$(SrcDir)saveload.h" />
    <ClInclude Include="$(SrcDir)write.h" />
  </ItemGroup>
</Project>
