svn commit: r1701858 - /serf/trunk/SConstruct
[email protected] Tue, 08 Sep 2015 19:26:33 -0000
| Newsgroups | gmane.comp.apache.apr.serf.devel |
|---|---|
| Message-ID | <20150908192633.5866FAC0069__41729.8258435496$1443916107$gmane$org@hades.apache.org> |
Author: rhuijben
Date: Tue Sep 8 19:26:32 2015
New Revision: 1701858
URL: http://svn.apache.org/r1701858
Log:
* SConstruct
Fix VPath build for Windows by finding gen_def.py properly.
Modified:
serf/trunk/SConstruct
Modified: serf/trunk/SConstruct
URL: http://svn.apache.org/viewvc/serf/trunk/SConstruct?rev=1701858&r1=1701857&r2=1701858&view=diff
==============================================================================
--- serf/trunk/SConstruct (original)
+++ serf/trunk/SConstruct Tue Sep 8 19:26:32 2015
@@ -160,9 +160,11 @@ env = Environment(variables=opts,
CPPPATH=['.', ],
)
+gen_def_script = env.File('build/gen_def.py').rstr()
+
env.Append(BUILDERS = {
'GenDef' :
- Builder(action = sys.executable + ' build/gen_def.py $SOURCES > $TARGET',
+ Builder(action = sys.executable + ' %s $SOURCES > $TARGET' % (gen_def_script,),
suffix='.def', src_suffix='.h')
})