From 0d2f0617da4295f8780f3148d3fab9b02c3e3680 Mon Sep 17 00:00:00 2001 From: Jonathan Moore Liles Date: Sun, 18 Nov 2012 23:08:27 -0800 Subject: [PATCH] wscript: install ntk-chtheme program. --- src/{ntk-chtheme.C => ntk-chtheme.cxx} | 10 +++++----- wscript | 8 ++++++++ 2 files changed, 13 insertions(+), 5 deletions(-) rename src/{ntk-chtheme.C => ntk-chtheme.cxx} (94%) diff --git a/src/ntk-chtheme.C b/src/ntk-chtheme.cxx similarity index 94% rename from src/ntk-chtheme.C rename to src/ntk-chtheme.cxx index 7f9e232..663ca84 100644 --- a/src/ntk-chtheme.C +++ b/src/ntk-chtheme.cxx @@ -17,16 +17,16 @@ /* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /*******************************************************************************/ -#include "FL/themes.H" -#include "FL/Fl_Theme_Chooser.C" - +#include +#include +#include int main ( int argc, char **argv ) { fl_register_themes(); - Fl_Theme::set(); - fl_theme_chooser(); + + return 0; } diff --git a/wscript b/wscript index 9dabb4b..a561502 100644 --- a/wscript +++ b/wscript @@ -499,6 +499,14 @@ src/Fl_Gl_Window.cxx CFLAGS = ' '.join( CFLAGS ), BUILD = os.getcwd() + '/' + out ) + + bld.program( + source = 'src/ntk-chtheme.cxx', + target = 'ntk-chtheme', + use = 'ntk', + includes = [ '.' ], + install_path = "${BINDIR}" ) + # bld( features = 'subst', # source = 'ntk-config.in', # target = '../ntk-config',