Detect ASM+C pre-processor file extension for MinGW with SCons 1.1+
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6174 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
44f0a9e9e9
commit
af78075192
1 changed files with 10 additions and 4 deletions
|
@ -2,7 +2,6 @@ target = 'System'
|
|||
|
||||
files = Split("""
|
||||
Source/Buffers.c
|
||||
Source/Call.S
|
||||
Source/Plugin.c
|
||||
Source/System.c
|
||||
""")
|
||||
|
@ -25,7 +24,16 @@ docs = Split("""
|
|||
WhatsNew.txt
|
||||
""")
|
||||
|
||||
Import('BuildPlugin')
|
||||
Import('BuildPlugin env')
|
||||
|
||||
conf = env.Configure()
|
||||
if conf.TryCompile('END', '.S'):
|
||||
files += ['Source/Call.S']
|
||||
elif conf.TryCompile('.end', '.sx'):
|
||||
files += ['Source/Call.Sx']
|
||||
else:
|
||||
print 'WARNING: unable to find assembler for Call.S'
|
||||
conf.Finish()
|
||||
|
||||
BuildPlugin(
|
||||
target,
|
||||
|
@ -37,8 +45,6 @@ BuildPlugin(
|
|||
defines = ['SYSTEM_EXPORTS']
|
||||
)
|
||||
|
||||
Import('env')
|
||||
|
||||
res = 'Resource/Resource.rc'
|
||||
res_obj = 'Resource/Resource-rc.o'
|
||||
res_target = env.RES(res_obj, res)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue