Exemple #1
0
def make_birdfont(target_binary, deps):
    valac_command = """{valac} \
        -C \
        --vapidir=./ \
        --basedir build/birdfont/ \
        {non_null} \
        {valacflags[birdfont]} \
        --enable-experimental \
        birdfont/*.vala \
		--vapidir=./ \
		--pkg {gee} \
		--pkg gio-2.0  \
		--pkg cairo \
		--pkg libsoup-2.4 \
		--pkg gdk-pixbuf-2.0 \
		--pkg webkit2gtk-4.0 \
		--pkg libnotify \
		--pkg xmlbird \
		--pkg libbirdfont \
        """.format(**config.SETTINGS)
        
    cc_command = """{cc} {cflags[birdfont]} \
        -c C_SOURCE \
		-D 'GETTEXT_PACKAGE="birdfont"' \
        -I./build/libbirdfont \
		$({pkg-config} --cflags sqlite3) \
		$({pkg-config} --cflags {gee}) \
		$({pkg-config} --cflags gio-2.0) \
		$({pkg-config} --cflags cairo) \
		$({pkg-config} --cflags glib-2.0) \
		$({pkg-config} --cflags gdk-pixbuf-2.0) \
		$({pkg-config} --cflags xmlbird) \
		$({pkg-config} --cflags webkit2gtk-4.0) \
		$({pkg-config} --cflags libnotify) \
        -o OBJECT_FILE""".format(**config.SETTINGS)
        
    linker_command = """{cc} {ldflags[birdfont]} \
        build/birdfont/*.o \
		-L./build/bin -lbirdfont \
		$({pkg-config} --libs sqlite3) \
		$({pkg-config} --libs {gee}) \
		$({pkg-config} --libs gio-2.0) \
		$({pkg-config} --libs cairo) \
		$({pkg-config} --libs glib-2.0) \
		$({pkg-config} --libs gdk-pixbuf-2.0) \
		$({pkg-config} --libs webkit2gtk-4.0) \
		$({pkg-config} --libs xmlbird) \
		$({pkg-config} --libs libnotify) \
		-L./build -L./build/bin -l birdgems \
        -o build/bin/""".format(**config.SETTINGS) + target_binary

    birdfont = Builder('birdfont',
                          valac_command, 
                          cc_command,
                          linker_command,
                          target_binary,
                          None,
                          deps)
			
    yield birdfont.build()
Exemple #2
0
def make_libxmlbird(target_binary):
    valac_command = config.VALAC + """\
        -C \
        --pkg posix \
        --vapidir=./ \
        --basedir build/libxmlbird/ \
        """ + config.NON_NULL + """ \
        """ + config.VALACFLAGS.get("xmlbird", "") + """ \
        --enable-experimental \
        --library libxmlbird \
        --vapi=./build/xmlbird.vapi \
        -H build/xmlbird/xmlbird.h \
        libxmlbird/*.vala \
        """

    cc_command = config.CC + " " + config.CFLAGS.get("xmlbird", "") + """ \
            -c C_SOURCE \
            -I ./build/xmlbird \
            -fPIC \
            $(pkg-config --cflags glib-2.0) \
            -o OBJECT_FILE"""

    linker_command = config.CC + " " + config.LDFLAGS.get("xmlbird",
                                                          "") + """ \
            -shared \
            """ + soname(target_binary) + """ \
            build/libxmlbird/*.o \
            $(pkg-config --libs glib-2.0) \
            $(pkg-config --libs gobject-2.0) \
            -o ./build/bin/""" + target_binary

    libxmlbird = Builder('libxmlbird', valac_command, cc_command,
                         linker_command, target_binary, 'libxmlbird.so')

    yield libxmlbird.build()
Exemple #3
0
def make_libbirdfont(target_binary, deps):
    valac_command = config.VALAC + """\
        -C \
        --vapidir=./ \
        --basedir build/libbirdfont/ \
        """ + config.NON_NULL + """ \
        """ + config.VALACFLAGS.get("libbirdfont", "") + """ \
        --enable-experimental \
        --library libbirdfont \
        -H build/libbirdfont/birdfont.h \
        libbirdfont/*.vala \
        libbirdfont/OpenFontFormat/*.vala \
        libbirdfont/Renderer/*.vala \
        loadfont.vapi \
        --pkg posix \
        --pkg """ + config.GEE + """ \
        --pkg gio-2.0 \
        --pkg cairo \
        --pkg xmlbird \
        --pkg libbirdgems \
        --pkg sqlite3 \
        --pkg gdk-pixbuf-2.0 \
        """

    cc_command = """{cc} {cflags[libbirdfont]} \
            -c C_SOURCE \
            -fPIC \
            -D 'GETTEXT_PACKAGE="birdfont"' \
            -I ./build/libbirdfont \
            -I ./build/libbirdgems \
            $({pkg-config} --cflags sqlite3) \
            $({pkg-config} --cflags fontconfig) \
            $({pkg-config} --cflags {gee}) \
            $({pkg-config} --cflags gio-2.0) \
            $({pkg-config} --cflags cairo) \
            $({pkg-config} --cflags glib-2.0) \
            $({pkg-config} --cflags xmlbird) \
            -o OBJECT_FILE""".format(**config.SETTINGS)

    linker_command = ("""{cc} {ldflags[libbirdfont]} \
            -shared \
            """ + soname(target_binary) + """ \
            build/libbirdfont/*.o \
            $({pkg-config} --libs sqlite3) \
            $(freetype-config --libs) \
            $({pkg-config} --libs {gee}) \
            $({pkg-config} --libs gio-2.0) \
            $({pkg-config} --libs fontconfig) \
            $({pkg-config} --libs cairo) \
            $({pkg-config} --libs cairo-gobject) \
            $({pkg-config} --libs glib-2.0) \
            $({pkg-config} --libs xmlbird) \
            -L./build -L./build/bin -l birdgems \
            -o ./build/bin/""").format(**config.SETTINGS) + target_binary

    libbirdfont = Builder('libbirdfont', valac_command, cc_command,
                          linker_command, target_binary, 'libbirdfont.so',
                          deps)

    yield libbirdfont.build()
Exemple #4
0
def make_libbirdgems(target_binary, deps):
    valac_command = """{valac} \
		-C \
		-H build/libbirdgems/birdgems.h \
		--pkg posix \
		--vapidir=./ \
		--basedir=build/libbirdgems/ \
		{non_null} \
        {valacflags[libbirdgems]} \
		--enable-experimental \
		--library libbirdgems \
		libbirdgems/*.vala \
        """.format(**config.SETTINGS)

    cc_command = """{cc} {cflags[libbirdgems]} \
			-fPIC \
			$({pkg-config} --cflags glib-2.0) \
			-c C_SOURCE \
            -o OBJECT_FILE \
			""".format(**config.SETTINGS)

    linker_command = ("""{cc} {ldflags[libbirdgems]} \
			-shared \
			""" + soname(target_binary) + """ \
			-fPIC \
			build/libbirdgems/*.o \
			$({pkg-config} --libs glib-2.0) \
			$({pkg-config} --libs gobject-2.0) \
			-o build/bin/""").format(**config.SETTINGS) + target_binary

    libbirdgems = Builder('libbirdgems', valac_command, cc_command,
                          linker_command, target_binary, 'libbirdgems.so',
                          deps)

    yield libbirdgems.build()
Exemple #5
0
def make_libbirdfont(target_binary, deps):
    valac_command = config.VALAC + """\
        -C \
        --vapidir=./ \
        --basedir build/libbirdfont/ \
        """ + config.NON_NULL + """ \
        """ + config.VALACFLAGS.get("libbirdfont", "") + """ \
        --enable-experimental \
        --library libbirdfont \
        -H build/libbirdfont/birdfont.h \
        libbirdfont/*.vala \
        libbirdfont/OpenFontFormat/*.vala \
        libbirdfont/Renderer/*.vala \
        --pkg """ + config.GEE + """ \
        --pkg gio-2.0 \
        --pkg cairo \
        --pkg xmlbird \
        --pkg libbirdgems \
        --pkg sqlite3 \
        """

    cc_command = config.CC + " " + config.CFLAGS.get("libbirdfont", "") + """ \
            -c C_SOURCE \
            -fPIC \
            -D 'GETTEXT_PACKAGE="birdfont"' \
            -I ./build/libbirdfont \
            -I ./build/libbirdgems \
            $(pkg-config --cflags sqlite3) \
            $(pkg-config --cflags fontconfig) \
            $(pkg-config --cflags """ + config.GEE + """) \
            $(pkg-config --cflags gio-2.0) \
            $(pkg-config --cflags cairo) \
            $(pkg-config --cflags glib-2.0) \
            $(pkg-config --cflags xmlbird) \
            -o OBJECT_FILE"""

    linker_command = config.CC + " " + config.LDFLAGS.get("libbirdfont", "") + """ \
            -shared \
            """ + soname(target_binary) + """ \
            build/libbirdfont/*.o \
            $(pkg-config --libs sqlite3) \
            $(freetype-config --libs) \
            $(pkg-config --libs """ + config.GEE + """) \
            $(pkg-config --libs gio-2.0) \
            $(pkg-config --libs fontconfig) \
            $(pkg-config --libs cairo) \
            $(pkg-config --libs glib-2.0) \
            $(pkg-config --libs xmlbird) \
            -L./build -L./build/bin -l birdgems\
            -o ./build/bin/""" + target_binary

    libbirdfont = Builder('libbirdfont',
                          valac_command, 
                          cc_command,
                          linker_command,
                          target_binary,
                          'libbirdfont.so',
                          deps)
			
    yield libbirdfont.build()
Exemple #6
0
def make_birdfont(target_binary, deps):
    valac_command = config.VALAC + """\
        -C \
        --vapidir=./ \
        --basedir build/birdfont/ \
        """ + config.NON_NULL + """ \
        """ + config.VALACFLAGS.get("birdfont", "") + """ \
        --enable-experimental \
        birdfont/*.vala \
		--vapidir=./ \
		--pkg """ + config.GEE + """ \
		--pkg gio-2.0  \
		--pkg cairo \
		--pkg libsoup-2.4 \
		--pkg gdk-pixbuf-2.0 \
		--pkg webkitgtk-3.0 \
		--pkg libnotify \
		--pkg xmlbird \
		--pkg libbirdfont
        """
        
    cc_command = config.CC + " " + config.CFLAGS.get("birdfont", "") + """ \
        -c C_SOURCE \
		-D 'GETTEXT_PACKAGE="birdfont"' \
        -I./build/libbirdfont \
		$(pkg-config --cflags sqlite3) \
		$(pkg-config --cflags """ + config.GEE + """) \
		$(pkg-config --cflags gio-2.0) \
		$(pkg-config --cflags cairo) \
		$(pkg-config --cflags glib-2.0) \
		$(pkg-config --cflags gdk-pixbuf-2.0) \
		$(pkg-config --cflags webkitgtk-3.0) \
		$(pkg-config --cflags libnotify) \
        -o OBJECT_FILE"""
        
    linker_command = config.CC + " " + config.LDFLAGS.get("birdfont", "") + """ \
        build/birdfont/*.o \
		-L./build/bin -lbirdfont \
		$(pkg-config --libs sqlite3) \
		$(pkg-config --libs """ + config.GEE + """) \
		$(pkg-config --libs gio-2.0) \
		$(pkg-config --libs cairo) \
		$(pkg-config --libs glib-2.0) \
		$(pkg-config --libs gdk-pixbuf-2.0) \
		$(pkg-config --libs webkitgtk-3.0) \
		$(pkg-config --libs xmlbird) \
		$(pkg-config --libs libnotify) \
		-L./build -L./build/bin -l birdgems\
        -o build/bin/""" + target_binary

    birdfont = Builder('birdfont',
                          valac_command, 
                          cc_command,
                          linker_command,
                          target_binary,
                          None,
                          deps)
			
    yield birdfont.build()
Exemple #7
0
def make_birdfont(target_binary, deps):
    valac_command = config.VALAC + """\
        -C \
        --vapidir=./ \
        --basedir build/birdfont/ \
        """ + config.NON_NULL + """ \
        """ + config.VALACFLAGS.get("birdfont", "") + """ \
        --enable-experimental \
        birdfont/*.vala \
		--vapidir=./ \
		--pkg """ + config.GEE + """ \
		--pkg gio-2.0  \
		--pkg cairo \
		--pkg libsoup-2.4 \
		--pkg gdk-pixbuf-2.0 \
		--pkg webkit2gtk-4.0 \
		--pkg libnotify \
		--pkg xmlbird \
		--pkg libbirdfont \
		--pkg svgbird \
        """

    cc_command = config.CC + " " + config.CFLAGS.get("birdfont", "") + """ \
        -c C_SOURCE \
		-D 'GETTEXT_PACKAGE="birdfont"' \
        -I./build/libbirdfont \
        -I./build/libsvgbird \
		$(pkg-config --cflags sqlite3) \
		$(pkg-config --cflags """ + config.GEE + """) \
		$(pkg-config --cflags gio-2.0) \
		$(pkg-config --cflags cairo) \
		$(pkg-config --cflags glib-2.0) \
		$(pkg-config --cflags gdk-pixbuf-2.0) \
		$(pkg-config --cflags webkit2gtk-4.0) \
		$(pkg-config --cflags libnotify) \
        -o OBJECT_FILE"""

    linker_command = config.CC + " " + config.LDFLAGS.get("birdfont",
                                                          "") + """ \
        build/birdfont/*.o \
		-L./build/bin -lbirdfont \
		$(pkg-config --libs sqlite3) \
		$(pkg-config --libs """ + config.GEE + """) \
		$(pkg-config --libs gio-2.0) \
		$(pkg-config --libs cairo) \
		$(pkg-config --libs glib-2.0) \
		$(pkg-config --libs gdk-pixbuf-2.0) \
		$(pkg-config --libs webkit2gtk-4.0) \
		$(pkg-config --libs xmlbird) \
		$(pkg-config --libs libnotify) \
		-L./build -L./build/bin -l birdgems -l svgbird \
        -o build/bin/""" + target_binary

    birdfont = Builder('birdfont', valac_command, cc_command, linker_command,
                       target_binary, None, deps)

    yield birdfont.build()
Exemple #8
0
def make_birdfont(target_binary, deps):
    valac_command = """{valac} \
        -C \
        --vapidir=./ \
        --basedir build/birdfont/ \
        {non_null} \
        {valacflags[birdfont]} \
        --enable-experimental \
        birdfont/*.vala \
		--vapidir=./ \
		--pkg {gee} \
		--pkg gio-2.0  \
		--pkg cairo \
		--pkg libsoup-2.4 \
		--pkg gdk-pixbuf-2.0 \
		--pkg webkit2gtk-4.0 \
		--pkg libnotify \
		--pkg xmlbird \
		--pkg libbirdfont \
        """.format(**config.SETTINGS)

    cc_command = """{cc} {cflags[birdfont]} \
        -c C_SOURCE \
		-D 'GETTEXT_PACKAGE="birdfont"' \
        -I./build/libbirdfont \
		$({pkg-config} --cflags sqlite3) \
		$({pkg-config} --cflags {gee}) \
		$({pkg-config} --cflags gio-2.0) \
		$({pkg-config} --cflags cairo) \
		$({pkg-config} --cflags glib-2.0) \
		$({pkg-config} --cflags gdk-pixbuf-2.0) \
		$({pkg-config} --cflags xmlbird) \
		$({pkg-config} --cflags webkit2gtk-4.0) \
		$({pkg-config} --cflags libnotify) \
        -o OBJECT_FILE""".format(**config.SETTINGS)

    linker_command = """{cc} {ldflags[birdfont]} \
        build/birdfont/*.o \
		-L./build/bin -lbirdfont \
		$({pkg-config} --libs sqlite3) \
		$({pkg-config} --libs {gee}) \
		$({pkg-config} --libs gio-2.0) \
		$({pkg-config} --libs cairo) \
		$({pkg-config} --libs cairo-gobject) \
		$({pkg-config} --libs glib-2.0) \
		$({pkg-config} --libs gdk-pixbuf-2.0) \
		$({pkg-config} --libs webkit2gtk-4.0) \
		$({pkg-config} --libs xmlbird) \
		$({pkg-config} --libs libnotify) \
		-L./build -L./build/bin -l birdgems \
        -o build/bin/""".format(**config.SETTINGS) + target_binary

    birdfont = Builder('birdfont', valac_command, cc_command, linker_command,
                       target_binary, None, deps)

    yield birdfont.build()
Exemple #9
0
def make_birdfont_autotrace(target_binary, deps):
    valac_command = config.VALAC + """\
        -C \
		--enable-experimental \
        --basedir build/birdfont-autotrace/ \
        """ + config.NON_NULL + """ \
        """ + config.VALACFLAGS.get("birdfont-autotrace", "") + """ \
		birdfont-autotrace/*.vala \
		--vapidir=./ \
		--pkg """ + config.GEE + """ \
		--pkg gio-2.0  \
		--pkg cairo \
		--pkg xmlbird \
		--pkg libbirdfont \
		--pkg svgbird \
        """
        
    cc_command = config.CC + " " + config.CFLAGS.get("birdfont-autotrace", "") + """ \
        -c C_SOURCE \
		-D 'GETTEXT_PACKAGE="birdfont"' \
        -I./build/libbirdfont \
        -I./build/libsvgbird \
		$(pkg-config --cflags sqlite3) \
		$(pkg-config --cflags """ + config.GEE + """) \
		$(pkg-config --cflags gio-2.0) \
		$(pkg-config --cflags cairo) \
		$(pkg-config --cflags glib-2.0) \
        -o OBJECT_FILE"""
        
    linker_command = config.CC + " " + config.LDFLAGS.get("birdfont-autotrace", "") + """ \
		build/birdfont-autotrace/*.o \
        -I./build/libbirdfont \
        -I./build/libsvgbird \
		-Lbuild/bin/ -lbirdfont \
		-lm \
		$(pkg-config --libs sqlite3) \
		$(pkg-config --libs """ + config.GEE + """) \
		$(pkg-config --libs gio-2.0) \
		$(pkg-config --libs cairo) \
		$(pkg-config --libs glib-2.0) \
		$(pkg-config --libs xmlbird) \
		-L./build -L./build/bin -l birdgems -l svgbird\
		-o ./build/bin/""" + target_binary

    birdfont_autotrace = Builder('birdfont-autotrace',
                          valac_command, 
                          cc_command,
                          linker_command,
                          target_binary,
                          None,
                          deps)
			
    yield birdfont_autotrace.build()
Exemple #10
0
def make_birdfont_autotrace(target_binary, deps):
    valac_command = """{valac} \
        -C \
		--enable-experimental \
        --basedir build/birdfont-autotrace/ \
        {non_null} \
        {valacflags[birdfont-autotrace]} \
		birdfont-autotrace/*.vala \
		--vapidir=./ \
		--pkg {gee} \
		--pkg gio-2.0  \
		--pkg cairo \
		--pkg xmlbird \
		--pkg libbirdfont \
        """.format(**config.SETTINGS)
        
    cc_command = """{cc} {cflags[birdfont-autotrace]} \
        -c C_SOURCE \
		-D 'GETTEXT_PACKAGE="birdfont"' \
        -I./build/libbirdfont \
		$({pkg-config} --cflags sqlite3) \
		$({pkg-config} --cflags {gee}) \
		$({pkg-config} --cflags gio-2.0) \
		$({pkg-config} --cflags cairo) \
		$({pkg-config} --cflags glib-2.0) \
		$({pkg-config} --cflags xmlbird) \
        -o OBJECT_FILE""".format(**config.SETTINGS)
        
    linker_command = """{cc} {ldflags[birdfont-autotrace]} \
		build/birdfont-autotrace/*.o \
        -I./build/libbirdfont \
		-Lbuild/bin/ -lbirdfont \
		-lm \
		$({pkg-config} --libs sqlite3) \
		$({pkg-config} --libs {gee}) \
		$({pkg-config} --libs gio-2.0) \
		$({pkg-config} --libs cairo) \
		$({pkg-config} --libs cairo-gobject) \
		$({pkg-config} --libs glib-2.0) \
		$({pkg-config} --libs xmlbird) \
		-L./build -L./build/bin -l birdgems \
		-o ./build/bin/""".format(**config.SETTINGS) + target_binary

    birdfont_autotrace = Builder('birdfont-autotrace',
                          valac_command, 
                          cc_command,
                          linker_command,
                          target_binary,
                          None,
                          deps)
			
    yield birdfont_autotrace.build()
Exemple #11
0
def make_birdfont_autotrace(target_binary, deps):
    valac_command = """{valac} \
        -C \
		--enable-experimental \
        --basedir build/birdfont-autotrace/ \
        {non_null} \
        {valacflags[birdfont-autotrace]} \
		birdfont-autotrace/*.vala \
		--vapidir=./ \
		--pkg {gee} \
		--pkg gio-2.0  \
		--pkg cairo \
		--pkg xmlbird \
		--pkg libbirdfont \
        """.format(**config.SETTINGS)
        
    cc_command = """{cc} {cflags[birdfont-autotrace]} \
        -c C_SOURCE \
		-D 'GETTEXT_PACKAGE="birdfont"' \
        -I./build/libbirdfont \
		$({pkg-config} --cflags sqlite3) \
		$({pkg-config} --cflags {gee}) \
		$({pkg-config} --cflags gio-2.0) \
		$({pkg-config} --cflags cairo) \
		$({pkg-config} --cflags glib-2.0) \
		$({pkg-config} --cflags xmlbird) \
        -o OBJECT_FILE""".format(**config.SETTINGS)
        
    linker_command = """{cc} {ldflags[birdfont-autotrace]} \
		build/birdfont-autotrace/*.o \
        -I./build/libbirdfont \
		-Lbuild/bin/ -lbirdfont \
		-lm \
		$({pkg-config} --libs sqlite3) \
		$({pkg-config} --libs {gee}) \
		$({pkg-config} --libs gio-2.0) \
		$({pkg-config} --libs cairo) \
		$({pkg-config} --libs glib-2.0) \
		$({pkg-config} --libs xmlbird) \
		-L./build -L./build/bin -l birdgems \
		-o ./build/bin/""".format(**config.SETTINGS) + target_binary

    birdfont_autotrace = Builder('birdfont-autotrace',
                          valac_command, 
                          cc_command,
                          linker_command,
                          target_binary,
                          None,
                          deps)
			
    yield birdfont_autotrace.build()
Exemple #12
0
def make_birdfont_autotrace(target_binary, deps):
    valac_command = config.VALAC + """\
        -C \
		--enable-experimental \
        --basedir build/birdfont-autotrace/ \
        """ + config.NON_NULL + """ \
        """ + config.VALACFLAGS.get("birdfont-autotrace", "") + """ \
		birdfont-autotrace/*.vala \
		--vapidir=./ \
		--pkg """ + config.GEE + """ \
		--pkg gio-2.0  \
		--pkg cairo \
		--pkg xmlbird \
		--pkg libbirdfont \
		--pkg svgbird \
        """

    cc_command = config.CC + " " + config.CFLAGS.get("birdfont-autotrace",
                                                     "") + """ \
        -c C_SOURCE \
		-D 'GETTEXT_PACKAGE="birdfont"' \
        -I./build/libbirdfont \
        -I./build/libsvgbird \
		$(pkg-config --cflags sqlite3) \
		$(pkg-config --cflags """ + config.GEE + """) \
		$(pkg-config --cflags gio-2.0) \
		$(pkg-config --cflags cairo) \
		$(pkg-config --cflags glib-2.0) \
        -o OBJECT_FILE"""

    linker_command = config.CC + " " + config.LDFLAGS.get(
        "birdfont-autotrace", "") + """ \
		build/birdfont-autotrace/*.o \
        -I./build/libbirdfont \
        -I./build/libsvgbird \
		-Lbuild/bin/ -lbirdfont \
		-lm \
		$(pkg-config --libs sqlite3) \
		$(pkg-config --libs """ + config.GEE + """) \
		$(pkg-config --libs gio-2.0) \
		$(pkg-config --libs cairo) \
		$(pkg-config --libs glib-2.0) \
		$(pkg-config --libs xmlbird) \
		-L./build -L./build/bin -l birdgems -l svgbird\
		-o ./build/bin/""" + target_binary

    birdfont_autotrace = Builder('birdfont-autotrace', valac_command,
                                 cc_command, linker_command, target_binary,
                                 None, deps)

    yield birdfont_autotrace.build()
Exemple #13
0
def make_libbirdgems(target_binary, deps):
    valac_command = """{valac} \
		-C \
		-H build/libbirdgems/birdgems.h \
		--pkg posix \
		--vapidir=./ \
		--basedir=build/libbirdgems/ \
		{non_null} \
        {valacflags[libbirdgems]} \
		--enable-experimental \
		--library libbirdgems \
		libbirdgems/*.vala \
        """.format(**config.SETTINGS)

    cc_command = """{cc} {cflags[libbirdgems]} \
			-fPIC \
			$({pkg-config} --cflags glib-2.0) \
			-c C_SOURCE \
            -o OBJECT_FILE \
			""".format(**config.SETTINGS)

    linker_command = ("""{cc} {ldflags[libbirdgems]} \
			-shared \
			""" + soname(target_binary) + """ \
			-fPIC \
			build/libbirdgems/*.o \
			$({pkg-config} --libs glib-2.0) \
			$({pkg-config} --libs gobject-2.0) \
			-o build/bin/""").format(**config.SETTINGS) + target_binary

    libbirdgems = Builder('libbirdgems',
                          valac_command, 
                          cc_command,
                          linker_command,
                          target_binary,
						  'libbirdgems.so',
                          deps)
			
    yield libbirdgems.build()
Exemple #14
0
def make_libbirdgems(target_binary, deps):
    valac_command = config.VALAC + """\
		-C \
		-H build/libbirdgems/birdgems.h \
		--pkg posix \
		--vapidir=./ \
		--basedir=build/libbirdgems/ \
		""" + config.NON_NULL + """ \
        """ + config.VALACFLAGS.get("libbirdgems", "") + """ \
		--enable-experimental \
		--library libbirdgems \
		libbirdgems/*.vala \
        """

    cc_command = config.CC + " " + config.CFLAGS.get("libbirdgems", "") + """ \
			-fPIC \
			$(pkg-config --cflags glib-2.0) \
			-c C_SOURCE \
            -o OBJECT_FILE \
			"""

    linker_command = config.CC + " " + config.LDFLAGS.get("libbirdgems", "") + """ \
			-shared \
			""" + soname(target_binary) + """ \
			-fPIC \
			build/libbirdgems/*.o \
			$(pkg-config --libs glib-2.0) \
			$(pkg-config --libs gobject-2.0) \
			-o build/bin/""" + target_binary

    libbirdgems = Builder('libbirdgems',
                          valac_command, 
                          cc_command,
                          linker_command,
                          target_binary,
						  'libbirdgems.so',
                          deps)
			
    yield libbirdgems.build()
Exemple #15
0
def make_libbirdgems(target_binary, deps):
    valac_command = config.VALAC + """\
		-C \
		-H build/libbirdgems/birdgems.h \
		--pkg posix \
		--vapidir=./ \
		--basedir=build/libbirdgems/ \
		""" + config.NON_NULL + """ \
        """ + config.VALACFLAGS.get("libbirdgems", "") + """ \
		--enable-experimental \
		--library libbirdgems \
		libbirdgems/*.vala \
        """

    cc_command = config.CC + " " + config.CFLAGS.get("libbirdgems", "") + """ \
			-fPIC \
			$(pkg-config --cflags glib-2.0) \
			-c C_SOURCE \
            -o OBJECT_FILE \
			"""

    linker_command = config.CC + " " + config.LDFLAGS.get("libbirdgems",
                                                          "") + """ \
			-shared \
			""" + soname(target_binary) + """ \
			-fPIC \
			build/libbirdgems/*.o \
			$(pkg-config --libs glib-2.0) \
			$(pkg-config --libs gobject-2.0) \
			-o build/bin/""" + target_binary

    libbirdgems = Builder('libbirdgems', valac_command, cc_command,
                          linker_command, target_binary, 'libbirdgems.so',
                          deps)

    yield libbirdgems.build()
Exemple #16
0
def make_libbirdfont(target_binary, deps):
    valac_command = config.VALAC + """\
        -C \
        --vapidir=./ \
        --basedir build/libbirdfont/ \
        """ + config.NON_NULL + """ \
        """ + config.VALACFLAGS.get("libbirdfont", "") + """ \
        --enable-experimental \
        --library libbirdfont \
        -H build/libbirdfont/birdfont.h \
        libbirdfont/*.vala \
        libbirdfont/OpenFontFormat/*.vala \
        libbirdfont/TextRendering/*.vala \
        --pkg posix \
        --pkg """ + config.GEE + """ \
        --pkg gio-2.0 \
        --pkg cairo \
        --pkg xmlbird \
        --pkg libbirdgems \
        --pkg svgbird \
        --pkg sqlite3 \
        --pkg gdk-pixbuf-2.0 \
        """

    cc_command = config.CC + " " + config.CFLAGS.get("libbirdfont", "") + """ \
            -c C_SOURCE \
            -fPIC \
            -D 'GETTEXT_PACKAGE="birdfont"' \
            -I ./build/libbirdfont \
            -I ./build/libbirdgems \
            -I ./build/libsvgbird \
            $(pkg-config --cflags sqlite3) \
            $(pkg-config --cflags fontconfig) \
            $(pkg-config --cflags """ + config.GEE + """) \
            $(pkg-config --cflags gio-2.0) \
            $(pkg-config --cflags cairo) \
            $(pkg-config --cflags glib-2.0) \
            $(pkg-config --cflags xmlbird) \
            -o OBJECT_FILE"""

    linker_command = config.CC + " " + config.LDFLAGS.get("libbirdfont",
                                                          "") + """ \
            -shared \
            """ + soname(target_binary) + """ \
            build/libbirdfont/*.o \
            $(pkg-config --libs sqlite3) \
            $(freetype-config --libs) \
            $(pkg-config --libs """ + config.GEE + """) \
            $(pkg-config --libs gio-2.0) \
            $(pkg-config --libs fontconfig) \
            $(pkg-config --libs cairo) \
            $(pkg-config --libs glib-2.0) \
            $(pkg-config --libs xmlbird) \
            -L./build -L./build/bin -l birdgems -l svgbird \
            -o ./build/bin/""" + target_binary

    libbirdfont = Builder('libbirdfont', valac_command, cc_command,
                          linker_command, target_binary, 'libbirdfont.so',
                          deps)

    yield libbirdfont.build()
Exemple #17
0
def make_libbirdfont(target_binary, deps):
    valac_command = """{valac} \
        -C \
        --vapidir=./ \
        --basedir build/libbirdfont/ \
        {non_null} \
        {valacflags[libbirdfont]} \
        --enable-experimental \
        --library libbirdfont \
        -H build/libbirdfont/birdfont.h \
        libbirdfont/*.vala \
        libbirdfont/OpenFontFormat/*.vala \
        libbirdfont/Renderer/*.vala \
        --pkg posix \
        --pkg {gee} \
        --pkg gio-2.0 \
        --pkg cairo \
        --pkg xmlbird \
        --pkg libbirdgems \
        --pkg sqlite3 \
        --pkg gdk-pixbuf-2.0 \
        """.format(**config.SETTINGS)

    cc_command = """{cc} {cflags[libbirdfont]} \
            -c C_SOURCE \
            -fPIC \
            -D 'GETTEXT_PACKAGE="birdfont"' \
            -I ./build/libbirdfont \
            -I ./build/libbirdgems \
            $({pkg-config} --cflags sqlite3) \
            $({pkg-config} --cflags fontconfig) \
            $({pkg-config} --cflags {gee}) \
            $({pkg-config} --cflags gio-2.0) \
            $({pkg-config} --cflags cairo) \
            $({pkg-config} --cflags glib-2.0) \
            $({pkg-config} --cflags xmlbird) \
            -o OBJECT_FILE""".format(**config.SETTINGS)

    linker_command = ("""{cc} {ldflags[libbirdfont]} \
            -shared \
            """ + soname(target_binary) + """ \
            build/libbirdfont/*.o \
            $({pkg-config} --libs sqlite3) \
            $(freetype-config --libs) \
            $({pkg-config} --libs {gee}) \
            $({pkg-config} --libs gio-2.0) \
            $({pkg-config} --libs fontconfig) \
            $({pkg-config} --libs cairo) \
            $({pkg-config} --libs glib-2.0) \
            $({pkg-config} --libs xmlbird) \
            -L./build -L./build/bin -l birdgems \
            -o ./build/bin/""").format(**config.SETTINGS) + target_binary

    libbirdfont = Builder('libbirdfont',
                          valac_command, 
                          cc_command,
                          linker_command,
                          target_binary,
                          'libbirdfont.so',
                          deps)
			
    yield libbirdfont.build()
Exemple #18
0
def make_libsvgbird(target_binary, deps):
    global version

    valac_command = config.VALAC + """\
        -C \
        --vapidir=./ \
        --basedir build/libsvgbird/ \
        """ + config.NON_NULL + """ \
        """ + config.VALACFLAGS.get("libsvgbird", "") + """ \
        --enable-experimental \
        --library libsvgbird \
        -H build/libsvgbird/svgbird.h \
        libsvgbird/*.vala \
        --pkg posix \
        --pkg svgbirdpoint \
        --pkg """ + config.GEE + """ \
        --pkg gio-2.0 \
        --pkg cairo \
        --pkg xmlbird \
        --vapi=./svgbird_generated.vapi \
        """

    cc_command = config.CC + " " + config.CFLAGS.get("libsvgbird", "") + """ \
            -c C_SOURCE \
            -std=c99 \
            -fPIC \
            -I ./build/libsvgbird \
            $(pkg-config --cflags """ + config.GEE + """) \
            $(pkg-config --cflags gio-2.0) \
            $(pkg-config --cflags cairo) \
            $(pkg-config --cflags glib-2.0) \
            $(pkg-config --cflags xmlbird) \
            $(pkg-config --cflags fontconfig) \
            $(pkg-config --cflags harfbuzz) \
            $(pkg-config --cflags harfbuzz-icu) \
            -o OBJECT_FILE"""

    linker_command = config.CC + " " + config.LDFLAGS.get("libsvgbird",
                                                          "") + """ \
            -shared \
            """ + soname(target_binary) + """ \
            build/libsvgbird/*.o \
            $(pkg-config --libs """ + config.GEE + """) \
            $(pkg-config --libs gio-2.0) \
            $(pkg-config --libs cairo) \
            $(pkg-config --libs glib-2.0) \
            $(pkg-config --libs xmlbird) \
            $(pkg-config --libs fontconfig) \
            $(pkg-config --libs harfbuzz) \
            $(pkg-config --libs harfbuzz-icu) \
            -L./build -L./build/bin \
            -o ./build/bin/""" + target_binary

    link_name = 'libsvgbird.so'
    source_directory = 'libsvgbird'

    libsvgbird = Builder(source_directory, valac_command, cc_command,
                         linker_command, target_binary, link_name, deps)

    f = open('./build/svgbird.pc', 'w+')
    f.write("""prefix=""" + config.PREFIX + """
exec_prefix=${prefix}
includedir=${prefix}/include
libdir=${exec_prefix}/lib

Name: svgbird
Description: SVG library
Version: """ + version.LIBSVGBIRD_VERSION + """
Cflags: -I${includedir}
Libs: -L${libdir} -lsvgbird
Requires: cairo, gobject-2.0, glib-2.0
""")

    yield libsvgbird.build()
Exemple #19
0
def make_libsvgbird(target_binary, deps):
    global version
	
    valac_command = config.VALAC + """\
        -C \
        --vapidir=./ \
        --basedir build/libsvgbird/ \
        """ + config.NON_NULL + """ \
        """ + config.VALACFLAGS.get("libsvgbird", "") + """ \
        --enable-experimental \
        --library libsvgbird \
        -H build/libsvgbird/svgbird.h \
        libsvgbird/*.vala \
        --pkg posix \
        --pkg svgbirdpoint \
        --pkg """ + config.GEE + """ \
        --pkg gio-2.0 \
        --pkg cairo \
        --pkg xmlbird \
        --vapi=./svgbird_generated.vapi \
        """

    cc_command = config.CC + " " + config.CFLAGS.get("libsvgbird", "") + """ \
            -c C_SOURCE \
            -std=c99 \
            -fPIC \
            -I ./build/libsvgbird \
            $(pkg-config --cflags """ + config.GEE + """) \
            $(pkg-config --cflags gio-2.0) \
            $(pkg-config --cflags cairo) \
            $(pkg-config --cflags glib-2.0) \
            $(pkg-config --cflags xmlbird) \
            $(pkg-config --cflags fontconfig) \
            $(pkg-config --cflags harfbuzz) \
            $(pkg-config --cflags harfbuzz-icu) \
            -o OBJECT_FILE"""

    linker_command = config.CC + " " + config.LDFLAGS.get("libsvgbird", "") + """ \
            -shared \
            """ + soname(target_binary) + """ \
            build/libsvgbird/*.o \
            $(pkg-config --libs """ + config.GEE + """) \
            $(pkg-config --libs gio-2.0) \
            $(pkg-config --libs cairo) \
            $(pkg-config --libs glib-2.0) \
            $(pkg-config --libs xmlbird) \
            $(pkg-config --libs fontconfig) \
            $(pkg-config --libs harfbuzz) \
            $(pkg-config --libs harfbuzz-icu) \
            -L./build -L./build/bin \
            -o ./build/bin/""" + target_binary

    link_name = 'libsvgbird.so'
    source_directory = 'libsvgbird'
    
    libsvgbird = Builder(source_directory,
                         valac_command, 
                         cc_command,
                         linker_command,
                         target_binary,
                         link_name,
                         deps)
    
    f = open('./build/svgbird.pc', 'w+')
    f.write("""prefix=""" + config.PREFIX + """
exec_prefix=${prefix}
includedir=${prefix}/include
libdir=${exec_prefix}/lib

Name: svgbird
Description: SVG library
Version: """ + version.LIBSVGBIRD_VERSION + """
Cflags: -I${includedir}
Libs: -L${libdir} -lsvgbird
Requires: cairo, gobject-2.0, glib-2.0
""")

    yield libsvgbird.build()