TDE frontend for streamripper
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.

SConscript 2.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. #! /usr/bin/env python
  2. ## This script demonstrates how to build and install
  3. ## a simple kde program having KconfigXT settings
  4. ## with scons
  5. ##
  6. ## Thomas Nagy, 2004, 2005
  7. ## This file can be reused freely for any project (see COPYING)
  8. ############################
  9. ## load the config
  10. ## Use the environment and the tools set in the top-level
  11. ## SConstruct file (set with 'Export') - this is very important
  12. Import( 'env' )
  13. myenv=env.Clone()
  14. #############################
  15. ## the programs to build
  16. # The sources for our program - only .ui, .skel and .cpp are accepted
  17. kstreamripper_sources = """
  18. addnewstreamimpl.cpp
  19. addnewstream.ui
  20. kstreamripperbase.ui
  21. kstreamripper.cpp
  22. main.cpp
  23. processcontroller.cpp
  24. processlistviewitem.cpp
  25. """.split()
  26. # Our main program
  27. # KDEprogram add the file to the install targets automatically,
  28. # so you do not need to write KDEinstall('KDEBIN', '', test1, myenv)
  29. myenv.KDEprogram( "kstreamripper", kstreamripper_sources )
  30. ############################
  31. ## Customization
  32. ## Additional include paths for compiling the source files
  33. ## Always add '../' (top-level directory) because moc makes code that needs it
  34. myenv.KDEaddpaths_includes( ['./', '../'] )
  35. ## Necessary libraries to link against
  36. myenv.KDEaddlibs( ['tqt-mt', 'tqt', 'tdecore', 'tdeio', 'tdeui', 'tdednssd'] )
  37. #############################
  38. ## Data to install
  39. ## The ui.rc file and the tips go into datadir/appname/
  40. myenv.KDEinstall( 'KDEDATA', 'kstreamripper', 'kstreamripperui.rc' )
  41. ## The kcfg file is installed in a global kcfg directory
  42. #myenv.KDEinstall( 'KDEKCFG', '', 'test1.kcfg' )
  43. ## Warning : there is a difference between the normal destop file used for the menu
  44. ## and the servicetype desktop file, so they go in different directories
  45. ## you will find more information in 'test3'
  46. myenv.KDEinstall( 'KDEXDG', '', 'kstreamripper.desktop')
  47. ## Use this when you need to install a mimetype file
  48. #myenv.KDEinstall( 'KDEMIME', 'application', 'x-test1.desktop' )
  49. ## Installing icons is easy (hi-16-app-test1.png, hi-22-app-test1.png)
  50. ## do not forget that this is a python script so loops are allowed here :)
  51. myenv.KDEicon( 'hi16-app-kstreameripper.png')
  52. myenv.KDEicon( 'hi32-app-kstreameripper.png')