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
|
|
|
|
2018-11-16 15:25:28 +01:00
|
|
|
lLib = env.SharedLibrary('lumierasupport', srcSubtree('lib'), install=True)
|
|
|
|
|
lApp = env.SharedLibrary('lumieracommon', srcSubtree('common'), addLibs=lLib, install=True)
|
|
|
|
|
lVault = env.SharedLibrary('lumieravault', srcSubtree('vault'), addLibs=lLib+lApp, install=True)
|
|
|
|
|
lSteam = env.SharedLibrary('lumierasteam', srcSubtree('steam'), addLibs=lLib+lApp+lVault,install=True)
|
2012-01-09 01:32:24 +01:00
|
|
|
|
2018-11-16 15:25:28 +01:00
|
|
|
core = lSteam+lVault+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
|
2018-11-16 15:25:28 +01:00
|
|
|
vault_lib = lVault+app_lib
|
2013-01-07 02:15:05 +01:00
|
|
|
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()
|
2015-12-25 03:06:33 +01:00
|
|
|
envGtk.mergeConf(['gtkmm-3.0','sigc++-2.0','gthread-2.0','cairomm-1.0','gdl','xv','x11','xext','sm'])
|
2012-01-09 01:32:24 +01:00
|
|
|
|
2018-11-16 15:25:28 +01:00
|
|
|
guimodule = envGtk.LumieraPlugin('gtk_gui', srcSubtree('stage') + core, install=True)
|
2012-01-09 02:56:29 +01:00
|
|
|
gui = ( guimodule
|
|
|
|
|
+ icons
|
2018-11-16 15:25:28 +01:00
|
|
|
+ [env.GuiResource(f) for f in env.Glob('stage/*.css')]
|
2012-01-09 02:56:29 +01:00
|
|
|
)
|
2012-01-09 01:32:24 +01:00
|
|
|
|
|
|
|
|
|
2018-11-16 15:25:28 +01:00
|
|
|
Export('lumiera core core_lib app_lib vault_lib support_lib plugins envGtk guimodule gui')
|