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:
kichik 2009-01-10 22:53:35 +00:00
parent c88bf59a8d
commit 521d9c2ced

View file

@ -1,8 +1,8 @@
"""
Scans through a list list of libraries and adds
available libraries to the environment.
"""
def AddAvailableLibs(env, libs):
"""
Scans through a list list of libraries and adds
available libraries to the environment.
"""
conf = env.Configure()
for lib in libs:
@ -10,11 +10,11 @@ def AddAvailableLibs(env, libs):
conf.Finish()
"""
Scans through a list list of libraries and adds
available libraries to the environment.
"""
def GetAvailableLibs(env, libs):
"""
Scans through a list list of libraries and adds
available libraries to the environment.
"""
conf = env.Configure()
avail_libs = []
@ -26,10 +26,10 @@ def GetAvailableLibs(env, libs):
return avail_libs
"""
Checks if a compiler flag is valid.
"""
def check_compile_flag(ctx, flag):
"""
Checks if a compiler flag is valid.
"""
ctx.Message('Checking for compiler flag %s... ' % flag)
old_flags = ctx.env['CCFLAGS']
@ -49,10 +49,10 @@ def check_compile_flag(ctx, flag):
return result
"""
Checks if a linker flag is valid.
"""
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)
old_flags = ctx.env['LINKFLAGS']
@ -79,12 +79,12 @@ def check_link_flag(ctx, flag, run = 0, extension = '.c', code = None):
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):
"""
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 })
Export('AddAvailableLibs FlagsConfigure GetAvailableLibs')