#! /usr/bin/env python
## This script demonstrates how to build and install
## a simple kde program having KconfigXT settings
## with scons
##
## Thomas Nagy, 2004, 2005

## This file can be reused freely for any project (see COPYING)

############################
## load the config

## Use the environment and the tools set in the top-level
## SConstruct file (set with 'Export') - this is very important

Import( 'env' )
myenv=env.Copy()

#############################
## the programs to build

# The sources for the part
printing_sources="""
simpleprintingpagesetupbase.ui
simpleprintingsettings.cpp
simpleprintingengine.cpp
simpleprintingcommand.cpp
simpleprintingpagesetup.cpp
simpleprintpreviewwindow_p.cpp
simpleprintpreviewwindow.cpp
KgvGlobal.cpp
KgvGenStyles.cpp
KgvUnit.cpp
KgvUnitWidgets.cpp
KgvPageLayoutColumnsBase.ui
KgvPageLayoutHeaderBase.ui
KgvPageLayoutColumns.cpp
KgvPageLayoutDia.cpp
KgvPageLayout.cpp
KgvPageLayoutHeader.cpp
KgvPageLayoutSize.cpp
"""



printingenv=env.Copy()
printingenv.KDEshlib( 'libkgraphviewerprinting', printing_sources )

############################
## Customization

printingenv.KDEaddpaths_includes('#/src/printing/  #/src/  #/')
printingenv.KDEaddlibs( 'qt-mt kio kparts khtml kdeprint' )
printingenv.KDEaddflags_link(['-module'])

printingenv.KDEaddflags_cxx("-fno-exceptions -fno-check-new -fno-common")

printingenv.KDEinstall( 'KDEDATA', 'kgraphviewerpart/pics', 'chain.png' )
printingenv.KDEinstall( 'KDEDATA', 'kgraphviewerpart/pics', 'chain-broken.png' )
printingenv.KDEinstall( 'KDEDATA', 'kgraphviewer/pics', 'chain.png' )
printingenv.KDEinstall( 'KDEDATA', 'kgraphviewer/pics', 'chain-broken.png' )

## If you are using QThread, add this line
#myenv.KDEaddflags_cxx(['-DQT_THREAD_SUPPORT'])

#############################
## Data to install

