2007-03-15 00:43:42 +00:00
|
|
|
# FIXME: install assembly and pascal includes into the correct locations
|
|
|
|
|
2008-12-12 16:33:25 +00:00
|
|
|
lib_target = "plugin"
|
|
|
|
|
|
|
|
lib_files = Split("""
|
|
|
|
plugin.c
|
|
|
|
""")
|
|
|
|
|
|
|
|
api_files = Split("""
|
|
|
|
plugin.h
|
|
|
|
plugin.lib
|
|
|
|
#Source/exehead/api.h
|
2007-03-15 00:43:42 +00:00
|
|
|
""")
|
|
|
|
|
|
|
|
example = Split("""
|
|
|
|
exdll.c
|
|
|
|
exdll.dpr
|
|
|
|
exdll.dsp
|
|
|
|
exdll.dsw
|
|
|
|
exdll_with_unit.dpr
|
|
|
|
nsis.pas
|
|
|
|
extdll.inc
|
|
|
|
""")
|
|
|
|
|
2008-12-12 16:33:25 +00:00
|
|
|
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
|
2007-03-15 00:43:42 +00:00
|
|
|
|
2008-12-12 16:33:25 +00:00
|
|
|
env.DistributeExamples(example + api_files + lib, path='Plugin')
|
2007-03-15 00:43:42 +00:00
|
|
|
|
2008-12-12 16:33:25 +00:00
|
|
|
# make sure all the other plug-ins can use the library
|
2007-03-15 00:43:42 +00:00
|
|
|
|
2008-12-12 16:46:55 +00:00
|
|
|
env.Install('#$BUILD_PREFIX/api', api_files)
|
|
|
|
|
|
|
|
plugin_env.Append(CPPPATH = ['#$BUILD_PREFIX/api'])
|
|
|
|
plugin_env.Append(LIBPATH = ['#$BUILD_PREFIX/api'])
|
2008-12-12 16:33:25 +00:00
|
|
|
plugin_env.Append(LIBS = [lib_target])
|