NSIS/Contrib/ExDLL/SConscript
kichik eceb3ce333 - create plugin.lib that contains all
- distribute plugin.h, api.h and plugin.lib
- remove inc_c stuff because we don't really want to install win32 header files as something that can be used on linux (this should be revisited later)
- fix up MakeFileList for newer versions of SCons (should be removed in the future)

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5826 212acab6-be3b-0410-9dea-997c60f758d6
2008-12-12 16:33:25 +00:00

40 lines
721 B
Python

# FIXME: install assembly and pascal includes into the correct locations
lib_target = "plugin"
lib_files = Split("""
plugin.c
""")
api_files = Split("""
plugin.h
plugin.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
plugin_env.Append(LIBPATH = [lib[0].dir])
plugin_env.Append(LIBS = [lib_target])