diff --git a/SConstruct b/SConstruct index d7284684..3630625a 100644 --- a/SConstruct +++ b/SConstruct @@ -152,7 +152,11 @@ if 'NSIS_CONFIG_CONST_DATA_PATH' in defenv['NSIS_CPPDEFINES']: # write configuration into sconf.h and defines.h sconf_h = open(File('#Source/exehead/sconf.h').abspath, 'w') +sconf_h.write('// This file is automatically generated by SCons\n// DO NOT EDIT THIS FILE\n') + defines_h = open(File('#Source/defines.h').abspath, 'w') +defines_h.write('// This file is automatically generated by SCons\n// DO NOT EDIT THIS FILE\n') + for i in defenv['NSIS_CPPDEFINES']: if type(i) is not str: sconf_h.write('#define %s %s\n' % (i[0], i[1])) @@ -168,6 +172,7 @@ defines_h.close() # write version into version.h f = open(File('#Source/version.h').abspath, 'w') +f.write('// This file is automatically generated by SCons\n// DO NOT EDIT THIS FILE\n') f.write('#define NSIS_VERSION "v%s"\n' % defenv['VERSION']) f.close()