xmpedit

GTK+ editor for XMP metadata embedded in images
git clone https://code.djc.id.au/git/xmpedit/
commit a06ec731e870a0366cee0ee2ed2c040844e0d423
parent 3c2673defac14fba66e21ca4db618bb70982f310
Author: Dan Callaghan <djc@djc.id.au>
Date:   Sat, 17 Jul 2010 11:13:00 +1000

switch from scons to waf

--HG--
rename : MainWindow.cpp => src/MainWindow.cpp
rename : MainWindow.h => src/MainWindow.h
rename : MetadataTreeModel.cpp => src/MetadataTreeModel.cpp
rename : MetadataTreeModel.h => src/MetadataTreeModel.h
rename : MetadataTreeView.cpp => src/MetadataTreeView.cpp
rename : MetadataTreeView.h => src/MetadataTreeView.h
rename : PropertyEditor.cpp => src/PropertyEditor.cpp
rename : PropertyEditor.h => src/PropertyEditor.h
rename : xmpedit.cpp => src/xmpedit.cpp

Diffstat:
DSConstruct | 10----------
RMainWindow.cpp -> src/MainWindow.cpp | 0
RMainWindow.h -> src/MainWindow.h | 0
RMetadataTreeModel.cpp -> src/MetadataTreeModel.cpp | 0
RMetadataTreeModel.h -> src/MetadataTreeModel.h | 0
RMetadataTreeView.cpp -> src/MetadataTreeView.cpp | 0
RMetadataTreeView.h -> src/MetadataTreeView.h | 0
RPropertyEditor.cpp -> src/PropertyEditor.cpp | 0
RPropertyEditor.h -> src/PropertyEditor.h | 0
Rxmpedit.cpp -> src/xmpedit.cpp | 0
Awscript | 21+++++++++++++++++++++
11 files changed, 21 insertions(+), 10 deletions(-)
diff --git a/SConstruct b/SConstruct
@@ -1,10 +0,0 @@
-
-import os
-env = Environment(CFLAGS=os.environ.get('CFLAGS', '').split() + ['-Wall', '-ggdb'])
-env['CXXFLAGS'] = env['CFLAGS']
-env.ParseFlags('-I/usr/include/boost-1_42 -L/usr/lib/boost-1_42') # XXX
-env.ParseConfig('pkg-config --cflags --libs gtkmm-2.4')
-env.ParseConfig('pkg-config --cflags --libs giomm-2.4')
-env.ParseConfig('pkg-config --cflags --libs exiv2')
-env.Decider('timestamp-match')
-env.Program('xmpedit', Glob('*.cpp'))
diff --git a/MainWindow.cpp b/src/MainWindow.cpp
diff --git a/MainWindow.h b/src/MainWindow.h
diff --git a/MetadataTreeModel.cpp b/src/MetadataTreeModel.cpp
diff --git a/MetadataTreeModel.h b/src/MetadataTreeModel.h
diff --git a/MetadataTreeView.cpp b/src/MetadataTreeView.cpp
diff --git a/MetadataTreeView.h b/src/MetadataTreeView.h
diff --git a/PropertyEditor.cpp b/src/PropertyEditor.cpp
diff --git a/PropertyEditor.h b/src/PropertyEditor.h
diff --git a/xmpedit.cpp b/src/xmpedit.cpp
diff --git a/wscript b/wscript
@@ -0,0 +1,21 @@
+APPNAME = 'xmpedit'
+VERSION = '0.1'
+top = '.'
+out = 'target'
+
+def set_options(opt):
+    opt.tool_options('compiler_cxx')
+
+def configure(conf):
+    conf.check_tool('compiler_cxx')
+    conf.check_cfg(package='gtkmm-2.4', args='--cflags --libs', mandatory=True)
+    conf.check_cfg(package='giomm-2.4', args='--cflags --libs', mandatory=True)
+    conf.check_cfg(package='exiv2', args='--cflags --libs', mandatory=True)
+
+def build(bld):
+    bld(
+        features        = ['cxx', 'cprogram'],
+        source          = bld.path.ant_glob('src/*.cpp'),
+        target          = 'xmpedit',
+        uselib          = ['GTKMM-2.4', 'GIOMM-2.4', 'EXIV2']
+    )