#! /usr/bin/env python
# -*- python -*-
############################
## load the config

## use the myenv.ronment set in the top-level
## SConstruct file

Import('env')

env.docfolder('docs/en/', 'en', 'rosegarden/')
env.docfolder('docs/es/', 'es', 'rosegarden/')
env.docfolder('docs/de/', 'de', 'rosegarden/')
env.docfolder('docs/sv/', 'sv', 'rosegarden/')
env.docfolder('docs/ja/', 'ja', 'rosegarden/')

rgSources="""
audiocommands.cpp 
audiomanagerdialog.cpp 
audioplugindialog.cpp 
audiopluginmanager.cpp 
audiopluginoscgui.cpp 
audiopreviewthread.cpp 
audiopreviewupdater.cpp 
audiosynthmanager.cpp 
bankeditor.cpp
barbuttons.cpp 
basiccommand.cpp 
chordnameruler.cpp
collapsingframe.cpp
colours.cpp 
colourwidgets.cpp 
commondialogs.cpp
compositioncolourcache.cpp
compositionview.cpp 
constants.cpp 
controleditor.cpp 
controlruler.cpp 
csoundio.cpp 
deviceeditor.cpp 
devicemanager.cpp 
dialogs.cpp 
editcommands.cpp 
edittool.cpp 
editview.cpp 
editviewbase.cpp 
eventcommands.cpp 
eventfilter.cpp 
eventview.cpp
hydrogenio.cpp 
importdevicedialog.cpp 
instrumentparameterbox.cpp 
kstartuplogo.cpp 
ktmpstatusmsg.cpp 
lilypondio.cpp 
linedstaff.cpp 
loopruler.cpp 
main.cpp 
markereditor.cpp 
matrixcanvasview.cpp 
matrixcommands.cpp 
matrixelement.cpp 
matrixhlayout.cpp 
matrixparameterbox.cpp 
matrixstaff.cpp 
matrixtool.cpp 
matrixview.cpp 
matrixvlayout.cpp 
midifilter.cpp 
midipitchlabel.cpp 
mixer.cpp 
mmapper.cpp 
multiviewcommandhistory.cpp 
mupio.cpp 
musicxmlio.cpp 
notationcanvasview.cpp 
notationcommands.cpp 
notationelement.cpp 
notationhlayout.cpp 
notationproperties.cpp 
notationsets.cpp 
notationstaff.cpp 
notationstrings.cpp 
notationtool.cpp 
notationview.cpp 
notationviewslots.cpp 
notationvlayout.cpp 
notecharname.cpp 
notefont.cpp 
notefontviewer.cpp 
notepixmapfactory.cpp 
notestyle.cpp
percussionpitchruler.cpp
pianokeyboard.cpp
pitchruler.cpp
pixmapfunctions.cpp 
playlist.cpp
presethandler.cpp
progressreporter.cpp
qcanvasgroupableitem.cpp 
qcanvassimplesprite.cpp 
qdeferscrollview.cpp 
rawnoteruler.cpp 
rg21io.cpp 
rgapplication.cpp 
rgled.cpp 
rosedebug.cpp 
rosegardencanvasview.cpp 
rosegardenconfigurationpage.cpp 
rosegardenconfiguredialog.cpp 
rosegardengui.cpp 
rosegardenguidoc.cpp 
rosegardenguiiface.cpp 
rosegardenguiiface.skel
rosegardenguiview.cpp
rosegardenparameterarea.cpp
rosegardenparameterbox.cpp
rosegardenscrollview.cpp 
rosegardentransport.ui 
rosegardentransportdialog.cpp 
rosestrings.cpp 
rosexmlhandler.cpp 
scrollbox.cpp 
segmentcommands.cpp 
segmentparameterbox.cpp 
segmenttool.cpp 
sequencemanager.cpp 
sequencermapper.cpp 
spline.cpp 
staffline.cpp 
startuptester.cpp 
studiocommands.cpp 
studiocontrol.cpp 
studiowidgets.cpp 
tempocolour.cpp
tempodialog.cpp 
temporuler.cpp 
tempoview.cpp 
textruler.cpp 
timewidget.cpp 
trackbuttons.cpp 
trackeditor.cpp 
trackheader.cpp 
tracklabel.cpp 
trackparameterbox.cpp
trackseditoriface.skel
triggermanager.cpp 
velocitycolour.cpp 
vumeter.cpp 
widgets.cpp
xmlstorableevent.cpp
"""

lircSources="""
lircclient.cpp
lirccommander.cpp
"""

if env.has_key('LIRC_SOURCES'): rgSources += lircSources

obj=env.kobject('program',env)
obj.target='rosegarden'
obj.source=rgSources
obj.includes='../ ../.. /usr/X11R6/include/X11/Xft /usr/include/freetype2 ../base ../sound'
obj.libs='kdeui kdecore kdeprint kio Xft RosegardenSequencer RosegardenSound guitar base'
obj.libpaths='../base ../sound ../gui/guitar /usr/X11R6/lib'
obj.execute()

