- 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
This commit is contained in:
kichik 2008-12-12 16:33:25 +00:00
parent e51dfd9873
commit eceb3ce333
5 changed files with 150 additions and 36 deletions

View file

@ -1,7 +1,15 @@
# FIXME: install assembly and pascal includes into the correct locations
c_devel = Split("""
exdll.h
lib_target = "plugin"
lib_files = Split("""
plugin.c
""")
api_files = Split("""
plugin.h
plugin.lib
#Source/exehead/api.h
""")
example = Split("""
@ -14,12 +22,19 @@ example = Split("""
extdll.inc
""")
Import('defenv')
Import('env plugin_env')
if defenv['PLATFORM'] == 'win32':
example += c_devel
else:
defenv.DistributeIncC(c_devel)
# build library
defenv.DistributeExamples(example, path='Plugin')
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])