diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-11-27 22:58:41 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-11-27 22:58:41 -0600 |
commit | f7fa09d48f7f1d6e271ddf9a6d8e7da9a3545e9f (patch) | |
tree | 0cb130b0238a65c84710317eef0f3c98e2832484 /src | |
parent | 2c82d91b8c5ac4b7b5813a8c09b130e12180974c (diff) | |
download | abakus-f7fa09d48f7f1d6e271ddf9a6d8e7da9a3545e9f.tar.gz abakus-f7fa09d48f7f1d6e271ddf9a6d8e7da9a3545e9f.zip |
Cleanup
Diffstat (limited to 'src')
-rw-r--r-- | src/CMakeLists.txt | 4 | ||||
-rw-r--r-- | src/SConscript | 88 |
2 files changed, 2 insertions, 90 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 7fd1673..4cfb9ae 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -25,8 +25,8 @@ include( ${CMAKE_SOURCE_DIR}/BisonMacros.cmake ) ##### other data ################################ -install( FILES abakus.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} ) -install( FILES abakusui.rc DESTINATION ${DATA_INSTALL_DIR} ) +install( FILES abakus.desktop DESTINATION ${APPS_INSTALL_DIR}/Utilities ) +install( FILES abakusui.rc DESTINATION ${DATA_INSTALL_DIR}/abakus ) ##### abakus (executable) ####################### diff --git a/src/SConscript b/src/SConscript deleted file mode 100644 index de53410..0000000 --- a/src/SConscript +++ /dev/null @@ -1,88 +0,0 @@ -#! /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.Clone() - -import os -from SCons.Script.SConscript import SConsEnvironment - -############################# -## the programs to build - -# The sources for our program - only .ui, .skel and .cpp are accepted -abakus_sources = """ -abakus.cpp -abakuslistview.cpp -dragsupport.cpp -editor.cpp -evaluator.cpp -function.cpp -lexer_lex.cpp -mainwindow.cpp -node.cpp -numerictypes.cpp -parser_yacc.cpp -result.cpp -resultlistview.cpp -resultlistviewtext.cpp -rpnmuncher.cpp -valuemanager.cpp -dcopIface.skel -""" - -if myenv.get('mpfr', 'no') == 'yes': - myenv.Append(LIBS = ['mpfr', 'gmp']) -else: - abakus_sources = abakus_sources + " hmath.cpp number.c" - -myenv.KDEprogram( "abakus", abakus_sources ) -myenv.KDEicon( 'abakus' ) - -# Mark these as being created by flex and bison if it's installed. -if myenv.Dictionary().has_key('PARSER_INCLUDED'): - myenv.CXXFile( "lexer_lex.cpp", "lexer.ll" ) - myenv.CXXFile( "parser_yacc.cpp", "parser.yy", YACCFLAGS="-d" ) - -if myenv['HAVE_ASNEEDED']: - myenv.Append(LINKFLAGS = '-Wl,--as-needed') - -myenv.Append(CXXFLAGS = '-Wno-non-virtual-dtor -I/usr/include/tqt -include tqt.h -DTQT_THREAD_SUPPORT') - -############################ -## 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 -## FIXME -if os.path.isfile("/usr/include/tqt3/qlayout.h"): - myenv.KDEaddlibs( 'tqt-mt tqt kio tdecore tdeprint tdeui DCOP' ) -else: - myenv.KDEaddlibs( 'qt-mt tqt kio tdecore tdeprint tdeui DCOP' ) - -############################# -## Data to install - -## The ui.rc file and the tips go into datadir/appname/ -myenv.KDEinstall( 'KDEDATA', 'abakus', 'abakusui.rc' ) - -## Warning : there is a difference between the normal destop file used for the menu -## and the servicetype desktop file, so they go in different directories -## you will find more information in 'test3' -myenv.KDEinstall( 'KDEMENU', 'Utilities', 'abakus.desktop') - |