
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5856 212acab6-be3b-0410-9dea-997c60f758d6
43 lines
841 B
Python
43 lines
841 B
Python
# FIXME: install assembly and pascal includes into the correct locations
|
|
|
|
lib_target = "pluginapi"
|
|
|
|
lib_files = Split("""
|
|
pluginapi.c
|
|
""")
|
|
|
|
api_files = Split("""
|
|
pluginapi.h
|
|
pluginapi.lib
|
|
#Source/exehead/api.h
|
|
""")
|
|
|
|
example = Split("""
|
|
exdll.c
|
|
exdll.dpr
|
|
exdll.dsp
|
|
exdll.dsw
|
|
exdll_with_unit.dpr
|
|
nsis.pas
|
|
extdll.inc
|
|
""")
|
|
|
|
Import('env plugin_env')
|
|
|
|
# build library
|
|
|
|
api_env = env.Clone()
|
|
api_env.Append(CPPPATH = ['#Source/exehead'])
|
|
lib = api_env.Library(lib_target, lib_files)
|
|
|
|
# distribute library, files and examples
|
|
|
|
env.DistributeExamples(example + api_files + lib, path='Plugin')
|
|
|
|
# make sure all the other plug-ins can use the library
|
|
|
|
env.Install('#$BUILD_PREFIX/api', api_files)
|
|
|
|
plugin_env.Append(CPPPATH = ['#$BUILD_PREFIX/api'])
|
|
plugin_env.Append(LIBPATH = ['#$BUILD_PREFIX/api'])
|
|
plugin_env.Append(LIBS = [lib_target])
|