You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
2.0 KiB
61 lines
2.0 KiB
15 years ago
|
#! /usr/bin/env python
|
||
|
## This script is a quick test to demonstrate (and test)
|
||
12 years ago
|
## the bksys moc handling '#include "file.moc"' can be added .. or not
|
||
15 years ago
|
##
|
||
|
## Thomas Nagy, 2005
|
||
|
## This file can be reused freely for any project (see COPYING)
|
||
|
|
||
|
Import('env')
|
||
|
myenv=env.Copy()
|
||
|
|
||
|
## First build : the shell
|
||
|
## Each tab in it will hold an instance of the part ..
|
||
|
|
||
|
%{APPNAMELC}_sources="""
|
||
|
main.cpp
|
||
12 years ago
|
%{APPNAMELC}tdemdi.cpp
|
||
|
%{APPNAMELC}tdemdiView.cpp
|
||
|
tdemdikonsole.cpp
|
||
15 years ago
|
settings.kcfgc
|
||
|
prefs.ui
|
||
|
"""
|
||
|
# Now that we have our list of sources we can build the program
|
||
12 years ago
|
myenv.TDEprogram( '%{APPNAMELC}', %{APPNAMELC}_sources ) # main program
|
||
|
myenv.TDEaddpaths_includes( './ ../' ) # additional paths
|
||
12 years ago
|
myenv.TDEaddlibs( 'qt-mt tdecore kio tdeparts tdemdi' ) # additional libraries
|
||
15 years ago
|
|
||
|
## Next, the kpart library
|
||
12 years ago
|
## using TDEshlib, the .so and .la are installed automatically when needed
|
||
15 years ago
|
|
||
|
myenv2=env.Copy()
|
||
|
%{APPNAMELC}part_sources = '%{APPNAMELC}_part.cpp'
|
||
12 years ago
|
myenv2.TDEshlib( 'lib%{APPNAMELC}part', %{APPNAMELC}part_sources)
|
||
|
myenv2.TDEaddpaths_includes( './ #/' ) # the '#' means the top-level directory
|
||
12 years ago
|
myenv2.TDEaddlibs( 'qt-mt kio tdecore tdeprint tdeparts' )
|
||
12 years ago
|
# myenv2.TDEaddflags_link( '-DQT_THREAD_SUPPORT' )
|
||
15 years ago
|
|
||
|
#############################
|
||
|
## Data files to install
|
||
|
|
||
12 years ago
|
## NOTE: TDEinstall( resource_type, subdir, list of files )
|
||
15 years ago
|
|
||
|
## the .kcfg file
|
||
12 years ago
|
myenv.TDEinstall( 'TDEKCFG', '', '%{APPNAMELC}.kcfg' )
|
||
15 years ago
|
|
||
|
## the program .desktop file
|
||
12 years ago
|
myenv.TDEinstall( 'TDEMENU', '/Utilities', '%{APPNAMELC}.desktop' )
|
||
15 years ago
|
|
||
|
## the rc file - named *_shell.rc instead of *ui.rc for kpart apps
|
||
12 years ago
|
myenv.TDEinstall( 'TDEDATA', '/%{APPNAMELC}', '%{APPNAMELC}_shell.rc' )
|
||
15 years ago
|
|
||
12 years ago
|
## this servicetype desktop file goes in TDEXDG whether the other one goes in TDEMENU
|
||
|
myenv.TDEinstall( 'TDEXDG', '', '%{APPNAMELC}_part.desktop' )
|
||
15 years ago
|
|
||
|
## the kpart resource file
|
||
12 years ago
|
myenv.TDEinstall( 'TDEDATA', '/%{APPNAMELC}part', '%{APPNAMELC}_part.rc' )
|
||
15 years ago
|
|
||
|
## Installing icons is easy (hi-16-app-%{APPNAMELC}.png, hi-22-app-%{APPNAMELC}.png)
|
||
12 years ago
|
#myenv.TDEicon()
|
||
15 years ago
|
|
||
|
## do not forget that this is a python script so even loops are allowed... :)
|