<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup Label="UserMacros">
    <VSVer>10</VSVer>
    <GlibEtcInstallRoot>..\..\..\..\vs$(VSVer)\$(Platform)</GlibEtcInstallRoot>
    <GlibEtcInstallRootFromBuildWin32>..\..\..\vs$(VSVer)\$(Platform)</GlibEtcInstallRootFromBuildWin32>
    <CopyDir>$(GlibEtcInstallRoot)</CopyDir>
    <DefDir>$(SolutionDir)$(Configuration)\$(PlatformName)\obj\$(ProjectName)\</DefDir>
    <ApiVersion>1.0</ApiVersion>
    <PrepBuild>
if exist ..\..\..\config.h goto DONE_CONFIG_H

copy ..\config.h.win32 ..\..\..\config.h

:DONE_CONFIG_H

</PrepBuild>
    <JsonGlibDoInstall>
mkdir $(CopyDir)

mkdir $(CopyDir)\bin

mkdir $(CopyDir)\lib


copy $(SolutionDir)$(Configuration)\$(Platform)\bin\*.lib $(CopyDir)\lib


copy $(SolutionDir)$(Configuration)\$(Platform)\bin\*.dll $(CopyDir)\bin

copy $(SolutionDir)$(Configuration)\$(Platform)\bin\*.exe $(CopyDir)\bin

copy ..\..\..\json-glib\tests\stream-load.json $(CopyDir)\bin


mkdir $(CopyDir)\include\json-glib-$(ApiVersion)\json-glib


copy ..\..\..\json-glib\json-enum-types.h $(CopyDir)\include\json-glib-$(ApiVersion)\json-glib

copy ..\..\..\json-glib\json-version.h $(CopyDir)\include\json-glib-$(ApiVersion)\json-glib

copy ..\..\..\json-glib\json-glib.h $(CopyDir)\include\json-glib-$(ApiVersion)\json-glib


copy ..\..\..\json-glib\json-builder.h $(CopyDir)\include\json-glib-$(ApiVersion)\json-glib

copy ..\..\..\json-glib\json-generator.h $(CopyDir)\include\json-glib-$(ApiVersion)\json-glib

copy ..\..\..\json-glib\json-gvariant.h $(CopyDir)\include\json-glib-$(ApiVersion)\json-glib

copy ..\..\..\json-glib\json-gobject.h $(CopyDir)\include\json-glib-$(ApiVersion)\json-glib

copy ..\..\..\json-glib\json-path.h $(CopyDir)\include\json-glib-$(ApiVersion)\json-glib

copy ..\..\..\json-glib\json-parser.h $(CopyDir)\include\json-glib-$(ApiVersion)\json-glib

copy ..\..\..\json-glib\json-reader.h $(CopyDir)\include\json-glib-$(ApiVersion)\json-glib

copy ..\..\..\json-glib\json-types.h $(CopyDir)\include\json-glib-$(ApiVersion)\json-glib

</JsonGlibDoInstall>
<DoGenGir>
set VSVER=$(VSVer)
set CONF=$(Configuration)
set PLAT=$(Platform)
set BASEDIR=$(GlibEtcInstallRootFromBuildWin32)
cd ..
call gengir_jsonglib.bat

cd vs$(VSVer)
</DoGenGir>
    <JsonGlibGenerateDef>
echo EXPORTS &gt;$(DefDir)\json-glib.def
cl /EP ..\..\..\json-glib\json-glib.symbols &gt;&gt;$(DefDir)\json-glib.def
    </JsonGlibGenerateDef>
    <JsonGlibDefines>JSON_COMPILATION;G_LOG_DOMAIN="Json"</JsonGlibDefines>
    <JsonGlibLibtoolCompatibleDllPrefix>lib</JsonGlibLibtoolCompatibleDllPrefix>
    <JsonGlibLibtoolCompatibleDllSuffix>-1.0-0</JsonGlibLibtoolCompatibleDllSuffix>
    <JsonGlibSeparateVSDllPrefix />
    <JsonGlibSeparateVSDllSuffix>-1-vs$(VSVer)</JsonGlibSeparateVSDllSuffix>
    <JsonGlibDllPrefix>$(JsonGlibSeparateVSDllPrefix)</JsonGlibDllPrefix>
    <JsonGlibDllSuffix>$(JsonGlibSeparateVSDllSuffix)</JsonGlibDllSuffix>
  </PropertyGroup>
  <PropertyGroup>
    <_PropertySheetDisplayName>jsonglibprops</_PropertySheetDisplayName>
    <OutDir>$(SolutionDir)$(Configuration)\$(PlatformName)\bin\</OutDir>
    <IntDir>$(SolutionDir)$(Configuration)\$(PlatformName)\obj\$(ProjectName)\</IntDir>
  </PropertyGroup>
  <ItemDefinitionGroup>
    <ClCompile>
      <AdditionalIncludeDirectories>..\..\..;..\..\..\json-glib;$(GlibEtcInstallRoot)\include;$(GlibEtcInstallRoot)\include\glib-2.0;$(GlibEtcInstallRoot)\lib\glib-2.0\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
      <PreprocessorDefinitions>HAVE_CONFIG_H;G_DISABLE_DEPRECATED;%(PreprocessorDefinitions)</PreprocessorDefinitions>
      <ForcedIncludeFiles>msvc_recommended_pragmas.h;%(ForcedIncludeFiles)</ForcedIncludeFiles>
    </ClCompile>
    <Link>
      <AdditionalDependencies>glib-2.0.lib;gobject-2.0.lib;gio-2.0.lib;%(AdditionalDependencies)</AdditionalDependencies>
      <AdditionalLibraryDirectories>$(GlibEtcInstallRoot)\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
    </Link>
  </ItemDefinitionGroup>
  <ItemGroup>
    <BuildMacro Include="VSVer">
      <Value>$(VSVer)</Value>
    </BuildMacro>
    <BuildMacro Include="GlibEtcInstallRoot">
      <Value>$(GlibEtcInstallRoot)</Value>
    </BuildMacro>
    <BuildMacro Include="GlibEtcInstallRootFromBuildWin32">
      <Value>$(GlibEtcInstallRootFromBuildWin32)</Value>
    </BuildMacro>
    <BuildMacro Include="CopyDir">
      <Value>$(CopyDir)</Value>
    </BuildMacro>
    <BuildMacro Include="PrepBuild">
      <Value>$(PrepBuild)</Value>
    </BuildMacro>
    <BuildMacro Include="JsonGlibDoInstall">
      <Value>$(JsonGlibDoInstall)</Value>
    </BuildMacro>
    <BuildMacro Include="JsonGlibGenerateDef">
      <Value>$(JsonGlibGenerateDef)</Value>
    </BuildMacro>
    <BuildMacro Include="ApiVersion">
      <Value>$(ApiVersion)</Value>
    </BuildMacro>
    <BuildMacro Include="JsonGlibDefines">
      <Value>$(JsonGlibDefines)</Value>
    </BuildMacro>
    <BuildMacro Include="JsonGlibLibtoolCompatibleDllPrefix">
      <Value>$(JsonGlibLibtoolCompatibleDllPrefix)</Value>
    </BuildMacro>
    <BuildMacro Include="JsonGlibLibtoolCompatibleDllSuffix">
      <Value>$(JsonGlibLibtoolCompatibleDllSuffix)</Value>
    </BuildMacro>
    <BuildMacro Include="JsonGlibSeparateVSDllPrefix">
      <Value>$(JsonGlibSeparateVSDllPrefix)</Value>
    </BuildMacro>
    <BuildMacro Include="JsonGlibSeparateVSDllSuffix">
      <Value>$(JsonGlibSeparateVSDllSuffix)</Value>
    </BuildMacro>
    <BuildMacro Include="JsonGlibDllPrefix">
      <Value>$(JsonGlibDllPrefix)</Value>
    </BuildMacro>
    <BuildMacro Include="JsonGlibDllSuffix">
      <Value>$(JsonGlibDllSuffix)</Value>
    </BuildMacro>
    <BuildMacro Include="DefDir">
      <Value>$(DefDir)</Value>
    </BuildMacro>
    <BuildMacro Include="DoGenGir">
      <Value>$(DoGenGir)</Value>
    </BuildMacro>
  </ItemGroup>
</Project>