RELEASE 0.97 - XXX
- From Steven Knight
+ From Steven Knight:
- Add a must_exist flag to Delete() to let the user control whether
it's an error if the specified entry doesn't exist. The default
- Make the scons.bat REM statements into @REM so they aren't printed.
+ From Anthony Roach:
+
+ - Fix scanning of pre-compiled header (.pch) files for #includes,
+ broken in 0.96.
+
RELEASE 0.96 - Wed, 18 Aug 2004 13:36:40 +0000
return object_emitter(target, source, env,
SCons.Defaults.SharedObjectEmitter)
-pch_builder = SCons.Builder.Builder(action='$PCHCOM', suffix='.pch', emitter=pch_emitter)
+pch_builder = SCons.Builder.Builder(action='$PCHCOM', suffix='.pch', emitter=pch_emitter,
+ source_scanner=SCons.Defaults.ObjSourceScan)
res_builder = SCons.Builder.Builder(action='$RCCOM', suffix='.res',
source_scanner=SCons.Defaults.ObjSourceScan)
SCons.Defaults.ObjSourceScan.add_scanner('.rc', SCons.Defaults.CScan)
test.write('StdAfx.h', '''
#include <windows.h>
#include <stdio.h>
+#include "resource.h"
''')
test.write('StdAfx.cpp', '''
# using precompiled headers should be significantly faster
assert fast < slow*0.8
+# Modifying resource.h should cause both the resource and precompiled header to be rebuilt:
+test.write('resource.h', '''
+#define IDS_TEST 2003
+''')
+
+test.not_up_to_date(arguments='test.res')
+test.not_up_to_date(arguments='StdAfx.pch')
+test.not_up_to_date(arguments='test.exe')
+test.run(program=test.workpath('test.exe'), stdout='2003 test 2\n')
+
##########
# Test a hierarchical build