Commit 78a041d0 authored by Morten Welinder's avatar Morten Welinder

embedder: Minor improvements targeting goffice

parent d3b3fe74
......@@ -185,6 +185,7 @@ BUILT_SOURCES = embedded-ui.c
embedded-ui.c: $(top_srcdir)/tools/embedder $(embedded_uis)
cd $(srcdir) && @PERL@ $(abs_top_srcdir)/tools/embedder \
--register-function=gnm_register_ui_files \
--register-file-function=gnm_rsm_register_file \
--include embedded-ui.h \
COMPRESS $(embedded_uis) >$(abs_builddir)/$@
......
2011-11-30 Morten Welinder <terra@gnome.org>
* embedder: Minor improvements targeting goffice.
2011-11-27 Morten Welinder <terra@gnome.org>
* Release 1.11.1
......
......@@ -9,11 +9,15 @@ $myself =~ s|^.*/||;
my $WIDTH = 70;
my $regfunc = undef;
my $regfuncstatic = 0;
my $regfilefunc = undef;
my @includes;
&GetOptions("register-function=s" => \$regfunc,
"register-file-function=s" => \$regfilefunc,
"static" => \$regfuncstatic,
"include=s" => \@includes,
);
) or die "$0: invalid usage -- inquire within\n";
# -----------------------------------------------------------------------------
......@@ -27,6 +31,7 @@ foreach (@includes) {
my $fileno = 0;
my $reg = "";
my $docompress = 0;
print "static " if $regfuncstatic;
print "void\n";
print "$regfunc (void)\n";
print "{\n";
......@@ -71,7 +76,7 @@ sub embed {
&embed_data ($data, $id);
my $len = length ($data);
$reg .= " gnm_rsm_register_file (\"$file\", $id, $len);\n";
$reg .= " $regfilefunc (\"$file\", $id, $len);\n";
}
sub embed_data {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment