Midl
CustomBuild
_SelectedFiles;$(LolFxCompileDependsOn)
@echo off
set D=$(IntDir)%(Filename)%(Extension).cpp
echo /* This file was autogenerated. DO NOT MODIFY IT. */ > "%D%"
echo /* Filename = %(Filename) */ > "%D"
echo /* FullPath = %(FullPath) */ > "%D"
echo /* RootDir = %(RootDir) */ > "%D"
echo /* Directory = %(Directory) */ > "%D"
echo /* Input = %(Input) */ > "%D"
echo /* Output = %(Output) */ > "%D"
echo extern "C" { char const *lolfx_resource_%(Filename) = >> "%D%"
setlocal disabledelayedexpansion
for /F "tokens=1,* delims=`" %%L in ('type "%(Fullpath)"') do (
set "line=%%L"
setlocal enabledelayedexpansion
echo "!line:"=\"!\n" >> "%D%"
endlocal
)
endlocal
echo ;} >> "%D%"
$(IntDir)%(FileName)%(Extension).cpp
%(FileName)%(Extension)