pydoc should be in the function
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5903 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
c88bf59a8d
commit
521d9c2ced
1 changed files with 19 additions and 19 deletions
|
@ -1,8 +1,8 @@
|
||||||
"""
|
|
||||||
Scans through a list list of libraries and adds
|
|
||||||
available libraries to the environment.
|
|
||||||
"""
|
|
||||||
def AddAvailableLibs(env, libs):
|
def AddAvailableLibs(env, libs):
|
||||||
|
"""
|
||||||
|
Scans through a list list of libraries and adds
|
||||||
|
available libraries to the environment.
|
||||||
|
"""
|
||||||
conf = env.Configure()
|
conf = env.Configure()
|
||||||
|
|
||||||
for lib in libs:
|
for lib in libs:
|
||||||
|
@ -10,11 +10,11 @@ def AddAvailableLibs(env, libs):
|
||||||
|
|
||||||
conf.Finish()
|
conf.Finish()
|
||||||
|
|
||||||
"""
|
|
||||||
Scans through a list list of libraries and adds
|
|
||||||
available libraries to the environment.
|
|
||||||
"""
|
|
||||||
def GetAvailableLibs(env, libs):
|
def GetAvailableLibs(env, libs):
|
||||||
|
"""
|
||||||
|
Scans through a list list of libraries and adds
|
||||||
|
available libraries to the environment.
|
||||||
|
"""
|
||||||
conf = env.Configure()
|
conf = env.Configure()
|
||||||
avail_libs = []
|
avail_libs = []
|
||||||
|
|
||||||
|
@ -26,10 +26,10 @@ def GetAvailableLibs(env, libs):
|
||||||
|
|
||||||
return avail_libs
|
return avail_libs
|
||||||
|
|
||||||
"""
|
|
||||||
Checks if a compiler flag is valid.
|
|
||||||
"""
|
|
||||||
def check_compile_flag(ctx, flag):
|
def check_compile_flag(ctx, flag):
|
||||||
|
"""
|
||||||
|
Checks if a compiler flag is valid.
|
||||||
|
"""
|
||||||
ctx.Message('Checking for compiler flag %s... ' % flag)
|
ctx.Message('Checking for compiler flag %s... ' % flag)
|
||||||
|
|
||||||
old_flags = ctx.env['CCFLAGS']
|
old_flags = ctx.env['CCFLAGS']
|
||||||
|
@ -49,10 +49,10 @@ def check_compile_flag(ctx, flag):
|
||||||
|
|
||||||
return result
|
return result
|
||||||
|
|
||||||
"""
|
|
||||||
Checks if a linker flag is valid.
|
|
||||||
"""
|
|
||||||
def check_link_flag(ctx, flag, run = 0, extension = '.c', code = None):
|
def check_link_flag(ctx, flag, run = 0, extension = '.c', code = None):
|
||||||
|
"""
|
||||||
|
Checks if a linker flag is valid.
|
||||||
|
"""
|
||||||
ctx.Message('Checking for linker flag %s... ' % flag)
|
ctx.Message('Checking for linker flag %s... ' % flag)
|
||||||
|
|
||||||
old_flags = ctx.env['LINKFLAGS']
|
old_flags = ctx.env['LINKFLAGS']
|
||||||
|
@ -79,12 +79,12 @@ def check_link_flag(ctx, flag, run = 0, extension = '.c', code = None):
|
||||||
|
|
||||||
return result
|
return result
|
||||||
|
|
||||||
"""
|
|
||||||
Wrapper for env.Configure which adds two new tests:
|
|
||||||
CheckCompileFlag - checks for a compiler flag
|
|
||||||
CheckLinkFlag - checks for a linker flag
|
|
||||||
"""
|
|
||||||
def FlagsConfigure(env):
|
def FlagsConfigure(env):
|
||||||
|
"""
|
||||||
|
Wrapper for env.Configure which adds two new tests:
|
||||||
|
CheckCompileFlag - checks for a compiler flag
|
||||||
|
CheckLinkFlag - checks for a linker flag
|
||||||
|
"""
|
||||||
return env.Configure(custom_tests = { 'CheckCompileFlag' : check_compile_flag, 'CheckLinkFlag': check_link_flag })
|
return env.Configure(custom_tests = { 'CheckCompileFlag' : check_compile_flag, 'CheckLinkFlag': check_link_flag })
|
||||||
|
|
||||||
Export('AddAvailableLibs FlagsConfigure GetAvailableLibs')
|
Export('AddAvailableLibs FlagsConfigure GetAvailableLibs')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue