From 99d76565ae01420f64cef3972d2c114d6cb95e03 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Sun, 13 May 2012 23:48:41 +0000 Subject: [PATCH] build: lolfx files are now properly linked into the static library when building with Visual Studio. --- win32/Lol.Fx.props | 3 ++- win32/Lol.Fx.targets | 36 ++++++++++++++++++------------------ win32/Lol.Fx.xml | 10 +++++----- 3 files changed, 25 insertions(+), 24 deletions(-) diff --git a/win32/Lol.Fx.props b/win32/Lol.Fx.props index 7e94e845..07ecad40 100644 --- a/win32/Lol.Fx.props +++ b/win32/Lol.Fx.props @@ -24,7 +24,8 @@ for /F "tokens=1,* delims=`" %%L in ('type "%(Fullpath)"') do ( ) endlocal echo ; >> "%D%" - Compiling with Lol Fx Build Rule... + $(IntDir)%(FileName)%(Extension).cpp + %(FileName)%(Extension) diff --git a/win32/Lol.Fx.targets b/win32/Lol.Fx.targets index 2fdf1641..92e3a63a 100644 --- a/win32/Lol.Fx.targets +++ b/win32/Lol.Fx.targets @@ -1,19 +1,26 @@ - - + + LolFxCompile + + + + $(ComputeCompileInputsTargets); + ComputeLolFxCompileOutput; + + + $(MSBuildThisFileDirectory)$(MSBuildThisFileName).xml + - - - $(ComputeLinkInputsTargets); - ComputeLolFxCompileOutput; - - - $(ComputeLibInputsTargets); - ComputeLolFxCompileOutput; - - + + + CompileAsC + + + $(IntDir)\%(FileName).lolfx.cpp - - - diff --git a/win32/Lol.Fx.xml b/win32/Lol.Fx.xml index 597fe27c..04d034a1 100644 --- a/win32/Lol.Fx.xml +++ b/win32/Lol.Fx.xml @@ -49,17 +49,17 @@ SourceType="Item" /> - +