#! /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 our program - only .ui, .skel and .cpp are accepted aa_sources = """ aasaver.cpp screen.cpp frame.cpp sprite.cpp AASaverConfig.kcfgc settingswidget.ui """ myenv.KDEprogram( "asciiquarium.kss", aa_sources ) ############################ ## Customization ## Additional include paths for compiling the source files ## Always add '../' (top-level directory) because moc makes code that needs it myenv.KDEaddpaths_includes('#/src/ #/') ## Necessary libraries to link against myenv.KDEaddlibs( 'qt-mt kdecore kdeui kscreensaver' ) myenv.KDEinstall('KDEAPPS', 'System/ScreenSavers', 'asciiquarium.desktop') myenv.KDEinstall('KDEKCFG', '', 'asciiquarium.kcfg')