added a warning to sconf.h, defines.h and version.h about automatic generation
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5040 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
a2b1a9e178
commit
32bac47b2f
1 changed files with 5 additions and 0 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue