source: trunk/build/vs2010/Lol.Fx.props @ 2278

Last change on this file since 2278 was 2278, checked in by sam, 8 years ago

build: fix LolFx generation on Visual Studio.

File size: 1.3 KB
Line 
1<?xml version="1.0" encoding="utf-8"?>
2<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3  <PropertyGroup
4    Condition="'$(LolFxCompileBeforeTargets)' == '' and '$(LolFxCompileAfterTargets)' == '' and '$(ConfigurationType)' != 'Makefile'">
5    <LolFxCompileBeforeTargets>Midl</LolFxCompileBeforeTargets>
6    <LolFxCompileAfterTargets>CustomBuild</LolFxCompileAfterTargets>
7  </PropertyGroup>
8  <PropertyGroup>
9    <LolFxCompileDependsOn
10      Condition="'$(ConfigurationType)' != 'Makefile'">_SelectedFiles;$(LolFxCompileDependsOn)</LolFxCompileDependsOn>
11  </PropertyGroup>
12  <ItemDefinitionGroup>
13    <LolFxCompile>
14      <CommandLineTemplate>@echo off
15set D=$(IntDir)%(Filename)%(Extension).cpp
16echo /* This file was autogenerated. DO NOT MODIFY IT. */ &gt; "%D%"
17echo char const *lolfx_resource_%(Filename) = &gt;&gt; "%D%"
18setlocal disabledelayedexpansion
19for /F "tokens=1,* delims=`" %%L in ('type "%(Fullpath)"') do (
20  set "line=%%L"
21  setlocal enabledelayedexpansion
22  echo "!line:"=\"!\n" &gt;&gt; "%D%"
23  endlocal
24)
25endlocal
26echo ; &gt;&gt; "%D%"</CommandLineTemplate>
27      <Outputs>$(IntDir)%(FileName)%(Extension).cpp</Outputs>
28      <ExecutionDescription>%(FileName)%(Extension)</ExecutionDescription>
29    </LolFxCompile>
30  </ItemDefinitionGroup>
31</Project>
Note: See TracBrowser for help on using the repository browser.