<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup Label="Globals">
    <ProjectGuid>{965054D2-44F2-4EB2-9879-051CC3D7EF08}</ProjectGuid>
    <RootNamespace>libiconv</RootNamespace>
  </PropertyGroup>

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

  <!-- Project specific configuration -->
  <ItemDefinitionGroup>
    <ClCompile>
      <AdditionalIncludeDirectories>$(SrcDir)include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
      <PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
      <CompileAs>CompileAsC</CompileAs>
    </ClCompile>
    <InstallHeader>
      <HeaderRoot>$(SrcDir)include</HeaderRoot>
    </InstallHeader>
  </ItemDefinitionGroup>

  <!-- Source files -->
  <ItemGroup>
    <InstallHeader Include="$(SrcDir)\include\iconv.h" />
  </ItemGroup>
  <ItemGroup>
    <ClInclude Include="$(SrcDir)include\iconv.h" />
    <ClInclude Include="$(SrcDir)include\libcharset.h" />
    <ClInclude Include="$(SrcDir)include\localcharset.h" />
    <ClInclude Include="$(SrcDir)libcharset\config.h" />
    <ClInclude Include="$(SrcDir)libiconv\config.h" />
  </ItemGroup>
  <ItemGroup>
    <ClCompile Include="$(SrcDir)libcharset\localcharset.c" />
    <ClCompile Include="$(SrcDir)libiconv\iconv.c" />
  </ItemGroup>
</Project>
