[ease/waf] Waf port
- From: Robert Carr <racarr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ease/waf] Waf port
- Date: Tue, 14 Dec 2010 12:44:05 +0000 (UTC)
commit b7cff1bebb5176f07130fdb4670dd62e912d99dc
Author: Robert Carr <racarr gnome org>
Date: Tue Dec 14 07:40:24 2010 -0500
Waf port
Makefile.am | 68 -----------------------
autogen.sh | 21 -------
configure.ac | 97 ---------------------------------
data/Makefile.am | 82 ----------------------------
data/wscript | 76 ++++++++++++++++++++++++++
ease-core/Makefile.am | 121 ------------------------------------------
ease-core/ease-archiver.vala | 1 +
ease-core/wscript | 52 ++++++++++++++++++
flutter/Makefile.am | 52 ------------------
flutter/wscript | 23 ++++++++
m4/introspection.m4 | 94 --------------------------------
po/wscript | 1 +
waf | Bin 0 -> 77417 bytes
wscript | 100 ++++++++++++++++++++++++++++++++++
14 files changed, 253 insertions(+), 535 deletions(-)
---
diff --git a/data/wscript b/data/wscript
new file mode 100644
index 0000000..3d8964f
--- /dev/null
+++ b/data/wscript
@@ -0,0 +1,76 @@
+#!/usr/bin/env python
+
+from waflib import Utils
+
+desktopdir = "${DATADIR}/applications"
+icondir = "${DATADIR}/icons/hicolor/scalable/apps"
+mimedir = "${DATADIR}/mime/packages"
+mimeicondir = "${DATADIR}/icons/gnome/scalable/mimetypes"
+svgdir = "${DATADIR}/ease/svg"
+uidir = "${DATADIR}/ease/ui"
+jsondir = "${DATADIR}/ease"
+themedir = "${DATADIR}/ease/themes"
+
+def build_desktop(bld):
+ if bld.cmd == 'install':
+ try:
+ bld.exec_command(["update-mime-database", Utils.subst_vars("${DATADIR}/mime", bld.env)])
+ except:
+ pass
+ bld (features = "intltool_in",
+ podir = "../po",
+ flags = ["-d","-q","-u","-c"],
+ source = 'ease.desktop.in',
+ target = 'ease.desktop',
+ install_path = desktopdir)
+
+def build_icon(bld):
+ icon_files = "icons/hicolor/scalable/apps/ease.svg"
+ bld.install_files(icondir, icon_files)
+
+def build_mime(bld):
+ mime_files = "ease-mime.xml"
+ if bld.cmd == 'install':
+ try:
+ bld.exec_command(["update-desktop-database", Utils.subst_vars("${DATADIR}/applications", bld.env)])
+ except:
+ pass
+ bld.install_files(mimedir, mime_files)
+
+def build_mimeicon(bld):
+ mimeicon_files = "gnome-mime-application-x-ease.svg"
+ bld.install_files(mimeicondir, mimeicon_files)
+
+def build_svg(bld):
+ bld.install_files(svgdir, bld.path.ant_glob("svg/*.svg"))
+
+def build_ui(bld):
+ bld.install_files(uidir, bld.path.ant_glob("ui/*.ui"))
+
+def build_json(bld):
+ jsonfiles = "theme-defaults.json"
+ bld.install_files(jsondir, jsonfiles)
+
+def build_theme(bld, name, media=None):
+ bld.install_files(themedir+"/"+name,"themes/%s/Theme.json"%(name,))
+ if media is not none:
+ bld.install_files(themedir+"/"+name+"/Media", media)
+
+def build_themes(bld):
+ build_theme(bld, "Black")
+ build_theme(bld, "Blue")
+ build_theme(bld, "Goddard", "themes/Goddard/Media/default.jpg")
+ build_theme(bld, "Green")
+ build_theme(bld, "Red")
+ build_theme(bld, "White")
+
+
+def build(bld):
+ build_desktop(bld)
+ build_icon(bld)
+ build_mime(bld)
+ build_mimeicon(bld)
+ build_svg(bld)
+ build_ui(bld)
+ build_json(bld)
+
diff --git a/ease-core/ease-archiver.vala b/ease-core/ease-archiver.vala
index 63eafc6..3ab150a 100644
--- a/ease-core/ease-archiver.vala
+++ b/ease-core/ease-archiver.vala
@@ -15,6 +15,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+
private class Ease.Archiver.Archiver : GLib.Object
{
private string temp_path;
diff --git a/ease-core/wscript b/ease-core/wscript
new file mode 100644
index 0000000..63a10b4
--- /dev/null
+++ b/ease-core/wscript
@@ -0,0 +1,52 @@
+#!/usr/bin/env python
+
+ease_core_files = '''ease-actor.vala ease-animated-zoom-slider.vala ease-archiver.vala
+ease-background.vala ease-background-widget.vala ease-cairo-actor.vala ease-cairo-element.vala
+ ease-color.vala ease-dialog-progress.vala ease-dialogs.vala
+ ease-document.vala ease-element.vala ease-enums.vala
+ ease-gradient.vala ease-html-exporter.vala ease-icon-view.vala
+ ease-image-actor.vala ease-image-element.vala ease-image.vala
+ ease-iterable-models.vala ease-media-element.vala ease-plugin-import-media.vala
+ ease-plugin-import-service.vala ease-pdf-actor.vala ease-pdf-element.vala
+ ease-scrolled-embed.vala ease-scrolled-embed-window.vala ease-shape-element.vala
+ ease-slide.vala ease-temp.vala ease-text-actor.vala
+ ease-text-element.vala ease-theme.vala ease-transformations.vala
+ ease-transitions.vala ease-undo-actions-element.vala ease-undo-actions-slide.vala
+ ease-undo-action.vala ease-undo-controller.vala ease-undo-item.vala
+ ease-undo-source.vala ease-utilities.vala ease-video-actor.vala
+ ease-video-element.vala ease-zoom-slider.vala sourcelist/source-base-group.vala
+ sourcelist/source-base-view.vala sourcelist/source-expandable-group.vala sourcelist/source-group.vala
+ sourcelist/source-item.vala sourcelist/source-list.vala sourcelist/source-number-item.vala
+ sourcelist/source-pane-view.vala sourcelist/source-spinner-item.vala sourcelist/source-view.vala'''
+
+ease_core_packages = ''' clutter-gst-1.0 clutter-gtk-0.10 gee-1.0 gmodule-2.0 json-glib-1.0 libarchive poppler-glib rest-extras-0.6 unique-1.0'''
+
+def build(bld):
+ version = bld.EASE_CORE_VERSION
+ library_name = 'ease-core-%s' % (version,)
+ prog = bld(features='cc cshlib', after='flutter')
+ # symbolic name used to reference this object
+ prog.name = "ease-core"
+ # name of the resulting program
+ prog.target = library_name
+ prog.includes = '..'
+
+ prog.source = ease_core_files
+
+ prog.ccflags = ['-include', 'config.h']
+
+ # libraries to link against
+ prog.uselib = 'GOBJECT CLUTTER GEE CLUTTERGST GMODULE LIBARCHIVE POPPLERGLIB RESTEXTRAS CLUTTERGTK JSONGLIB'
+ # Vala packages to usexo
+ prog.packages = 'flutter-%s ' % (bld.FLUTTER_VERSION,)
+ prog.packages += ease_core_packages
+
+
+ # Extra vapi dirs
+ #prog.vapi_dirs = '../my_lib ../my_other_lib'
+ # Enable threading
+ #prog.threading = True
+
+# bld.install_files('%{PREFIX}/include/ease', ["ease-core-%s.h" % (bld.EASE_CORE_VERSION,)])
+
+
diff --git a/flutter/wscript b/flutter/wscript
new file mode 100644
index 0000000..cea0eb6
--- /dev/null
+++ b/flutter/wscript
@@ -0,0 +1,23 @@
+#!/usr/bin/env python
+
+def build(bld):
+ version = bld.FLUTTER_VERSION
+ library_name = 'flutter-%s' % (version, )
+ vapi_name = 'flutter-%s.vapi' % (version, )
+ prog = bld(features='cc cshlib')
+ # symbolic name used to reference this object
+ prog.name = 'flutter'
+ # name of the resulting program
+ prog.target = library_name
+ prog.source = 'flutter.vala'
+ prog.includes = '..'
+ # libraries to link against
+ prog.uselib = 'GOBJECT CLUTTER'
+ # Vala packages to use
+ prog.packages = 'clutter-1.0'
+
+ # Extra vapi dirs
+ #prog.vapi_dirs = '../my_lib ../my_other_lib'
+ # Enable threading
+ #prog.threading = True
+
diff --git a/po/wscript b/po/wscript
new file mode 100644
index 0000000..98fd53e
--- /dev/null
+++ b/po/wscript
@@ -0,0 +1 @@
+def build(bld):
\ No newline at end of file
diff --git a/waf b/waf
new file mode 100755
index 0000000..df86cca
Binary files /dev/null and b/waf differ
diff --git a/wscript b/wscript
new file mode 100644
index 0000000..e1e177f
--- /dev/null
+++ b/wscript
@@ -0,0 +1,100 @@
+#!/usr/bin/env python
+
+from waflib import TaskGen
+
+VERSION = PACKAGE_VERSION = "0.5"
+EASE_VERSION = "0.5"
+EASE_CORE_VERSION = "0.5"
+FLUTTER_VERSION = "0.5"
+APPNAME = "ease"
+
+top = '.'
+out = '_build_'
+
+def options(opt):
+ opt.tool_options('compiler_c')
+ opt.tool_options('gnu_dirs')
+
+def configure(conf):
+ conf.load('intltool')
+ conf.check_tool('compiler_c vala gnu_dirs')
+
+ conf.env.append_value('FLUTTER_VERSION', FLUTTER_VERSION)
+ conf.env.append_value('EASE_CORE_VERSION', EASE_CORE_VERSION)
+ conf.env.append_value('EASE_VERSION', EASE_VERSION)
+ conf.env.append_value('PACKAGE_VERSION', PACKAGE_VERSION)
+
+ conf.check_cfg(package='clutter-1.0', uselib_store='CLUTTER',
+ mandatory=True, args='--cflags --libs')
+ conf.check_cfg(package='clutter-gst-1.0', uselib_store='CLUTTERGST',
+ mandatory=True, args='--cflags --libs')
+ conf.check_cfg(package='gee-1.0', uselib_store='GEE',
+ mandatory=True, args='--cflags --libs')
+ conf.check_cfg(package='gmodule-2.0', uselib_store='GMODULE',
+ mandatory=True, args='--cflags --libs')
+ conf.check_cfg(package='libarchive', uselib_store='LIBARCHIVE',
+ mandatory=True, args='--cflags --libs')
+ conf.check_cfg(package='poppler-glib', uselib_store='POPPLERGLIB',
+ mandatory=True, args='--cflags --libs')
+ conf.check_cfg(package='rest-0.6', uselib_store='REST',
+ mandatory=True, args='--cflags --libs')
+ conf.check_cfg(package='rest-extras-0.6', uselib_store='RESTEXTRAS',
+ mandatory=True, args='--cflags --libs')
+ conf.check_cfg(package='unique-1.0', uselib_store='UNIQUE',
+ mandatory=True, args='--cflags --libs')
+ conf.check_cfg(package='clutter-gtk-0.10', uselib_store='CLUTTERGTK',
+ atleast_version='0.10', mandatory=True, args='--cflags --libs')
+
+ conf.check_cfg(package='json-glib-1.0', uselib_store='JSONGLIB',
+ atleast_version='0.7.6', mandatory=True, args='--cflags --libs')
+
+ conf.define('PACKAGE', APPNAME)
+ conf.define('PACKAGE_NAME', APPNAME)
+ conf.define('PACKAGE_STRING', APPNAME + '-' + VERSION)
+ conf.define('PACKAGE_VERSION', APPNAME + '-' + VERSION)
+
+ conf.define('EASE_VERSION', EASE_VERSION)
+ conf.define('FLUTTER_VERSION', FLUTTER_VERSION)
+ conf.define('EASE_CORE_VERSION', EASE_CORE_VERSION)
+
+ conf.define('EASE_DATA_DIR', '%{PREFIX}/share')
+
+ conf.define('GETTEXT_PACKAGE', 'ease')
+
+ conf.write_config_header('config.h')
+
+def build_pkgconfig(bld, name):
+ obj = bld(features = "subst_pc",
+ source = name,
+ install_path = "${LIBDIR}/pkgconfig")
+
+def build_po(bld):
+ bld(features='intltool_po',
+ appname=APPNAME,
+ podir='po', install_path="${LOCALEDIR}")
+
+
+def build(bld):
+ bld.EASE_VERSION = EASE_VERSION
+ bld.EASE_CORE_VERSION = EASE_CORE_VERSION
+ bld.FLUTTER_VERSION = FLUTTER_VERSION
+ bld.srcdir = top
+ bld.builddir = out
+
+ bld.add_subdirs('data')
+
+ bld.add_subdirs('flutter')
+ bld.add_group()
+ bld.add_subdirs('ease-core')
+ bld.add_group()
+ bld.add_subdirs('ease')
+ bld.add_group()
+
+ build_pkgconfig(bld, "pkgconfig/ease-core-0.5.pc.in")
+ build_pkgconfig(bld, "pkgconfig/flutter-0.5.pc.in")
+
+ build_po
+
+
+
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]