<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <ImportGroup Label="PropertySheets">
    <Import Project="gtksourceview-build-defines.props" />
  </ImportGroup>
  <PropertyGroup Label="UserMacros">
    <CopyConfigH>copy ..\..\..\config.h.win32 ..\..\..\config.h</CopyConfigH>
    <GenerateEnums>cd ..
CALL gen-enums.bat $(GlibEtcInstallRoot)
cd $(SolutionDir)
    </GenerateEnums>
    <GenerateRsrcSrc>$(GlibEtcInstallRoot)\bin\glib-compile-resources --target=..\..\..\gtksourceview\gtksourceview-resources.c --generate-source --sourcedir=..\..\..\gtksourceview ..\..\..\gtksourceview\gtksourceview.gresource.xml</GenerateRsrcSrc>
    <GenGtksourceVersionH>$(PythonPath)\python.exe ..\replace.py --action=replace-var --input=..\..\..\gtksourceview\gtksourceversion.h.in --output=..\..\..\gtksourceview\gtksourceversion.h.tmp1 --var=GTK_SOURCE_MAJOR_VERSION --outstring=3
$(PythonPath)\python.exe ..\replace.py --action=replace-var --input=..\..\..\gtksourceview\gtksourceversion.h.tmp1 --output=..\..\..\gtksourceview\gtksourceversion.h.tmp2 --var=GTK_SOURCE_MINOR_VERSION --outstring=20
$(PythonPath)\python.exe ..\replace.py --action=replace-var --input=..\..\..\gtksourceview\gtksourceversion.h.tmp2 --output=..\..\..\gtksourceview\gtksourceversion.h --var=GTK_SOURCE_MICRO_VERSION --outstring=0
del ..\..\..\gtksourceview\gtksourceversion.h.tmp1 ..\..\..\gtksourceview\gtksourceversion.h.tmp2
    </GenGtksourceVersionH>
  </PropertyGroup>
  <PropertyGroup>
    <_PropertySheetDisplayName>gtksourceviewgensrcsprops</_PropertySheetDisplayName>
  </PropertyGroup>
  <ItemGroup>
    <BuildMacro Include="CopyConfigH">
      <Value>$(CopyConfigH)</Value>
    </BuildMacro>
    <BuildMacro Include="GenerateEnums">
      <Value>$(GenerateEnums)</Value>
    </BuildMacro>
    <BuildMacro Include="GenerateRsrcSrc">
      <Value>$(GenerateRsrcSrc)</Value>
    </BuildMacro>
    <BuildMacro Include="GenGtksourceVersionH">
      <Value>$(GenGtksourceVersionH)</Value>
    </BuildMacro>
  </ItemGroup>
</Project>
