2012-01-09 01:32:24 +01:00
|
|
|
# -*- python -*-
|
|
|
|
|
##
|
|
|
|
|
## SConscript - SCons buildscript for the Lumiera Application.
|
|
|
|
|
## Definitions how to build the main tree
|
|
|
|
|
##
|
|
|
|
|
|
|
|
|
|
from Buildhelper import srcSubtree
|
|
|
|
|
from Buildhelper import scanSubtree
|
|
|
|
|
|
2012-01-09 02:56:29 +01:00
|
|
|
Import('env icons config')
|
2012-01-09 01:32:24 +01:00
|
|
|
|
2012-01-09 05:13:15 +01:00
|
|
|
# define the source file/dirs comprising each artifact to be built.
|
2012-01-09 01:32:24 +01:00
|
|
|
|
2013-01-04 22:44:27 +01:00
|
|
|
lLib = env.SharedLibrary('lumiera', srcSubtree('lib'), install=True)
|
|
|
|
|
lApp = env.SharedLibrary('lumieracommon', srcSubtree('common'), install=True)
|
|
|
|
|
lBack = env.SharedLibrary('lumierabackend', srcSubtree('backend'), install=True)
|
|
|
|
|
lProc = env.SharedLibrary('lumieraproc', srcSubtree('proc'), install=True)
|
2012-01-09 01:32:24 +01:00
|
|
|
|
2013-01-04 22:44:27 +01:00
|
|
|
core = lProc+lBack+lApp+lLib # in reverse dependency order
|
2012-01-09 02:56:29 +01:00
|
|
|
support_lib = lLib
|
2013-01-07 02:15:05 +01:00
|
|
|
app_lib = lApp+support_lib
|
|
|
|
|
backend_lib = lBack+app_lib
|
|
|
|
|
core_lib = core
|
2012-01-09 01:32:24 +01:00
|
|
|
|
2012-01-09 02:56:29 +01:00
|
|
|
lumiera = ( env.Program('lumiera', ['lumiera/main.cpp'] + core, install=True)
|
|
|
|
|
+ config
|
|
|
|
|
)
|
2012-01-09 01:32:24 +01:00
|
|
|
|
2012-01-09 05:13:15 +01:00
|
|
|
# Install the lumiera application:
|
|
|
|
|
# symlink the executable into the bin dir
|
2012-01-10 08:06:09 +01:00
|
|
|
env.SymLink('#$DESTDIR/bin/lumiera',env.path.installExe+'lumiera','../lib/lumiera/lumiera')
|
2012-01-09 05:13:15 +01:00
|
|
|
|
|
|
|
|
|
2012-01-09 01:32:24 +01:00
|
|
|
# building Lumiera Plugins
|
2012-01-09 02:56:29 +01:00
|
|
|
plugins = [] # currently none
|
2012-01-09 01:32:24 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
# the Lumiera GTK GUI
|
|
|
|
|
envGtk = env.Clone()
|
|
|
|
|
envGtk.mergeConf(['gtkmm-2.4','gthread-2.0','cairomm-1.0','gdl','xv','xext','sm'])
|
|
|
|
|
envGtk.Append(LIBS=core)
|
|
|
|
|
|
|
|
|
|
guimodule = envGtk.LumieraPlugin('gtk_gui', srcSubtree('gui'), install=True)
|
2012-01-09 02:56:29 +01:00
|
|
|
gui = ( guimodule
|
|
|
|
|
+ icons
|
|
|
|
|
+ [env.GuiResource(f) for f in env.Glob('gui/*.rc')]
|
|
|
|
|
)
|
2012-01-09 01:32:24 +01:00
|
|
|
|
|
|
|
|
|
2013-01-07 02:15:05 +01:00
|
|
|
Export('lumiera core core_lib app_lib backend_lib support_lib plugins gui')
|