<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup
    Condition="'$(LolFxCompileBeforeTargets)' == '' and '$(LolFxCompileAfterTargets)' == '' and '$(ConfigurationType)' != 'Makefile'">
    <LolFxCompileBeforeTargets>Midl</LolFxCompileBeforeTargets>
    <LolFxCompileAfterTargets>CustomBuild</LolFxCompileAfterTargets>
  </PropertyGroup>
  <PropertyGroup>
    <LolFxCompileDependsOn
      Condition="'$(ConfigurationType)' != 'Makefile'">_SelectedFiles;$(LolFxCompileDependsOn)</LolFxCompileDependsOn>
  </PropertyGroup>
  <ItemDefinitionGroup>
    <LolFxCompile>
      <CommandLineTemplate>@echo off
set D=$(IntDir)%(Filename)%(Extension).cpp
echo /* This file was autogenerated. DO NOT MODIFY IT. */ &gt; "%D%"
echo extern "C" { char const *lolfx_resource_%(Filename) = &gt;&gt; "%D%"
setlocal disabledelayedexpansion
for /F "tokens=1,* delims=`" %%L in ('type "%(Fullpath)"') do (
  set "line=%%L"
  setlocal enabledelayedexpansion
  echo "!line:"=\"!\n" &gt;&gt; "%D%"
  endlocal
)
endlocal
echo ;} &gt;&gt; "%D%"</CommandLineTemplate>
      <Outputs>$(IntDir)%(FileName)%(Extension).cpp</Outputs>
      <ExecutionDescription>%(FileName)%(Extension)</ExecutionDescription>
    </LolFxCompile>
  </ItemDefinitionGroup>
</Project>