gobject-introspection r1046 - in trunk: . gir girepository giscanner tests/everything tests/invoke tests/offsets tests/repository tests/scanner tools
- From: johan svn gnome org
- To: svn-commits-list gnome org
- Subject: gobject-introspection r1046 - in trunk: . gir girepository giscanner tests/everything tests/invoke tests/offsets tests/repository tests/scanner tools
- Date: Thu, 15 Jan 2009 22:31:07 +0000 (UTC)
Author: johan
Date: Thu Jan 15 22:31:07 2009
New Revision: 1046
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=1046&view=rev
Log:
2009-01-15 Johan Dahlin <jdahlin async com br>
Bug 567813 â Everything should be versioned
* gir/Makefile.am:
* girepository/Makefile.am:
* girepository/girepository.c (init_globals):
* girepository/girparser.c (locate_gir):
* giscanner/dumper.py:
* giscanner/transformer.py:
* gobject-introspection-1.0.pc.in:
* tests/everything/Makefile.am:
* tests/invoke/Makefile.am:
* tests/offsets/Makefile.am:
* tests/repository/Makefile.am:
* tests/scanner/Makefile.am:
* tools/Makefile.am:
Modified:
trunk/ChangeLog
trunk/gir/Makefile.am
trunk/girepository/Makefile.am
trunk/girepository/girepository.c
trunk/girepository/girparser.c
trunk/giscanner/dumper.py
trunk/giscanner/transformer.py
trunk/gobject-introspection-1.0.pc.in
trunk/tests/everything/Makefile.am
trunk/tests/invoke/Makefile.am
trunk/tests/offsets/Makefile.am
trunk/tests/repository/Makefile.am
trunk/tests/scanner/Makefile.am
trunk/tools/Makefile.am
Modified: trunk/gir/Makefile.am
==============================================================================
--- trunk/gir/Makefile.am (original)
+++ trunk/gir/Makefile.am Thu Jan 15 22:31:07 2009
@@ -136,7 +136,7 @@
--strip-prefix=g \
--libtool="$(LIBTOOL)" \
--include=GObject-2.0 \
- --library=girepository \
+ --library=girepository-1.0 \
-I$(srcdir)/girepository \
--pkg glib-2.0 \
--pkg gobject-2.0 \
@@ -145,13 +145,13 @@
# Generic rules
CLEANFILES = $(BUILT_SOURCES)
-girdir=$(datadir)/gir
+girdir=$(datadir)/gir-1.0
dist_gir_DATA = $(BUILT_SOURCES)
%.typelib: %.gir $(top_builddir)/tools/g-ir-compiler$(EXEEXT)
$(DEBUG) $(top_builddir)/tools/g-ir-compiler$(EXEEXT) --includedir=. $(G_IR_COMPILER_OPTS) $< -o $@
-typelibsdir = $(libdir)/girepository
+typelibsdir = $(libdir)/girepository-1.0
typelibs_DATA = \
GLib-2.0.typelib \
GModule-2.0.typelib \
Modified: trunk/girepository/Makefile.am
==============================================================================
--- trunk/girepository/Makefile.am (original)
+++ trunk/girepository/Makefile.am Thu Jan 15 22:31:07 2009
@@ -1,14 +1,14 @@
include $(top_srcdir)/gcov.mak
-GCOVSOURCES = $(libgirepository_la_SOURCES)
+GCOVSOURCES = $(libgirepository_1_0_la_SOURCES)
girepodir = $(includedir)/gobject-introspection-1.0/
girepo_HEADERS = girepository.h
-lib_LTLIBRARIES = libgirepository.la
+lib_LTLIBRARIES = libgirepository-1.0.la
noinst_LTLIBRARIES = libgirepository-parser.la
-libgirepository_la_SOURCES = \
+libgirepository_1_0_la_SOURCES = \
girepository.c \
gtypelib.h \
gtypelib.c \
@@ -20,9 +20,9 @@
gdump.c \
ginvoke.c
-libgirepository_la_CPPFLAGS = $(GIREPO_CFLAGS)
-libgirepository_la_LIBADD = $(GIREPO_LIBS)
-libgirepository_la_LDFLAGS = -no-undefined
+libgirepository_1_0_la_CPPFLAGS = $(GIREPO_CFLAGS)
+libgirepository_1_0_la_LIBADD = $(GIREPO_LIBS)
+libgirepository_1_0_la_LDFLAGS = -no-undefined
libgirepository_parser_la_SOURCES = \
girmodule.c \
Modified: trunk/girepository/girepository.c
==============================================================================
--- trunk/girepository/girepository.c (original)
+++ trunk/girepository/girepository.c Thu Jan 15 22:31:07 2009
@@ -132,7 +132,7 @@
libdir = GOBJECT_INTROSPECTION_LIBDIR;
- typelib_dir = g_build_filename (libdir, "girepository", NULL);
+ typelib_dir = g_build_filename (libdir, "girepository-1.0", NULL);
search_path = g_slist_prepend (search_path, typelib_dir);
Modified: trunk/girepository/girparser.c
==============================================================================
--- trunk/girepository/girparser.c (original)
+++ trunk/girepository/girparser.c Thu Jan 15 22:31:07 2009
@@ -243,7 +243,7 @@
}
for (dir = datadirs; *dir; dir++)
{
- path = g_build_filename (*dir, "gir", girname, NULL);
+ path = g_build_filename (*dir, "gir-1.0", girname, NULL);
if (g_file_test (path, G_FILE_TEST_EXISTS | G_FILE_TEST_IS_REGULAR))
return path;
g_free (path);
Modified: trunk/giscanner/dumper.py
==============================================================================
--- trunk/giscanner/dumper.py (original)
+++ trunk/giscanner/dumper.py Thu Jan 15 22:31:07 2009
@@ -49,7 +49,7 @@
g_thread_init (NULL);
context = g_option_context_new ("");
- g_option_context_add_main_entries (context, entries, "girepository");
+ g_option_context_add_main_entries (context, entries, "girepository-1.0");
g_option_context_add_group (context, g_irepository_get_option_group ());
if (!g_option_context_parse (context, &argc, &argv, &error))
{
@@ -182,10 +182,10 @@
args.append('-L.')
uninst_builddir = os.environ.get('UNINSTALLED_INTROSPECTION_BUILDDIR')
- # hack for building GIRepository.gir, skip -lgirepository since
- # libgirepository.la is not in current directory and we refer to it
+ # hack for building GIRepository.gir, skip -lgirepository-1.0 since
+ # libgirepository-1.0.la is not in current directory and we refer to it
# explicitly below anyway
- if not uninst_builddir or self._options.libraries[0] != 'girepository':
+ if not uninst_builddir or self._options.libraries[0] != 'girepository-1.0':
# We only use the first library; assume others are "custom"
# libraries like from gir-repository. Right now those don't define
# new GTypes, so we don't need to introspect them.
@@ -194,7 +194,7 @@
# hack for building gobject-introspection itself
if uninst_builddir:
path = os.path.join(uninst_builddir, 'girepository',
- 'libgirepository.la')
+ 'libgirepository-1.0.la')
args.append(path)
args.extend(self._run_pkgconfig('--libs'))
Modified: trunk/giscanner/transformer.py
==============================================================================
--- trunk/giscanner/transformer.py (original)
+++ trunk/giscanner/transformer.py Thu Jan 15 22:31:07 2009
@@ -108,7 +108,7 @@
def _find_include(self, include):
searchdirs = self._includepaths[:]
for path in _xdg_data_dirs:
- searchdirs.append(os.path.join(path, 'gir'))
+ searchdirs.append(os.path.join(path, 'gir-1.0'))
girname = '%s-%s.gir' % (include.name, include.version)
for d in searchdirs:
Modified: trunk/gobject-introspection-1.0.pc.in
==============================================================================
--- trunk/gobject-introspection-1.0.pc.in (original)
+++ trunk/gobject-introspection-1.0.pc.in Thu Jan 15 22:31:07 2009
@@ -7,12 +7,12 @@
g_ir_scanner=${bindir}/g-ir-scanner
g_ir_compiler=${bindir}/g-ir-compiler
g_ir_generate=${bindir}/g-ir-generate
-girdir=${prefix}/share/gir
-typelibdir=${libdir}/girepository
+girdir=${prefix}/share/gir-1.0
+typelibdir=${libdir}/girepository-1.0
Cflags: -I${includedir}/gobject-introspection-1.0
Requires: glib-2.0 gobject-2.0 gmodule-2.0 gthread-2.0
-Libs: -L${libdir} -lgirepository
+Libs: -L${libdir} -lgirepository-1.0
Name: gobject-introspection
Description: GObject Introspection
Modified: trunk/tests/everything/Makefile.am
==============================================================================
--- trunk/tests/everything/Makefile.am (original)
+++ trunk/tests/everything/Makefile.am Thu Jan 15 22:31:07 2009
@@ -10,15 +10,15 @@
AM_LDFLAGS = -version-info $(LT_VERSION)
LIBS = $(GOBJECT_LIBS)
-typelibsdir = $(libdir)/girepository
+typelibsdir = $(libdir)/girepository-1.0
typelibs_DATA = $(TYPELIBS)
-girsdir = $(datadir)/gir
+girsdir = $(datadir)/gir-1.0
girs_DATA = $(GIRS)
-lib_LTLIBRARIES = libgirepository-everything.la
+lib_LTLIBRARIES = libgirepository-everything-1.0.la
-libgirepository_everything_la_SOURCES = $(srcdir)/everything.c $(srcdir)/everything.h
+libgirepository_everything_1_0_la_SOURCES = $(srcdir)/everything.c $(srcdir)/everything.h
if OS_WIN32
AM_LDFLAGS += -no-undefined
@@ -30,11 +30,11 @@
CLEANFILES = $(TYPELIBS) $(TXMLS) $(GIRS)
BUILT_SOURCES = $(TYPELIBS) $(TXMLS) $(GIRS)
-Everything-$(TYPELIB_VERSION).gir: libgirepository-everything.la everything.c everything.h $(SCANNER_BIN) $(SCANNER_LIBS)
+Everything-$(TYPELIB_VERSION).gir: libgirepository-everything-1.0.la everything.c everything.h $(SCANNER_BIN) $(SCANNER_LIBS)
$(CHECK_DEBUG) $(SCANNER) \
--include=GObject-2.0 \
--libtool="$(LIBTOOL)" \
- --library=girepository-everything \
+ --library=girepository-everything-1.0 \
--namespace=Everything --nsversion=$(TYPELIB_VERSION) \
--pkg gobject-2.0 \
$(srcdir)/everything.h $(srcdir)/everything.c \
Modified: trunk/tests/invoke/Makefile.am
==============================================================================
--- trunk/tests/invoke/Makefile.am (original)
+++ trunk/tests/invoke/Makefile.am Thu Jan 15 22:31:07 2009
@@ -10,7 +10,7 @@
testfns-metadata.c
testfns_la_CFLAGS = $(GIREPO_CFLAGS) -I$(top_srcdir)/girepository
testfns_la_LDFLAGS = -module -avoid-version
-testfns_la_LIBADD = $(top_builddir)/girepository/libgirepository.la $(GIREPO_LIBS)
+testfns_la_LIBADD = $(top_builddir)/girepository/libgirepository-1.0.la $(GIREPO_LIBS)
if OS_WIN32
testfns_la_LDFLAGS += -no-undefined
@@ -24,11 +24,11 @@
invoke_SOURCES = invoke.c
invoke_CFLAGS = $(GIREPO_CFLAGS) -I$(top_srcdir)/girepository
-invoke_LDADD = $(top_builddir)/girepository/libgirepository.la $(GIREPO_LIBS)
+invoke_LDADD = $(top_builddir)/girepository/libgirepository-1.0.la $(GIREPO_LIBS)
genericmarshaller_SOURCES = genericmarshaller.c
genericmarshaller_CFLAGS = $(GIREPO_CFLAGS) -I$(top_srcdir)/girepository
-genericmarshaller_LDADD = $(top_builddir)/girepository/libgirepository.la $(GIREPO_LIBS)
+genericmarshaller_LDADD = $(top_builddir)/girepository/libgirepository-1.0.la $(GIREPO_LIBS)
TESTS = invoke genericmarshaller invoke-namespace-find.sh
Modified: trunk/tests/offsets/Makefile.am
==============================================================================
--- trunk/tests/offsets/Makefile.am (original)
+++ trunk/tests/offsets/Makefile.am Thu Jan 15 22:31:07 2009
@@ -39,7 +39,7 @@
nodist_gitestoffsets_SOURCES = gitestoffsets.c
gitestoffsets_CPPFLAGS = $(GIREPO_CFLAGS) -I$(top_srcdir)/girepository
-gitestoffsets_LDADD = $(top_builddir)/girepository/libgirepository.la $(GIREPO_LIBS)
+gitestoffsets_LDADD = $(top_builddir)/girepository/libgirepository-1.0.la $(GIREPO_LIBS)
gitestoffsets.c: gen-gitestoffsets offsets.h
$(PYTHON) $(srcdir)/gen-gitestoffsets $(srcdir)/offsets.h > $@ || ( rm -f $@ && false )
Modified: trunk/tests/repository/Makefile.am
==============================================================================
--- trunk/tests/repository/Makefile.am (original)
+++ trunk/tests/repository/Makefile.am Thu Jan 15 22:31:07 2009
@@ -6,11 +6,11 @@
gitestrepo_SOURCES = $(srcdir)/gitestrepo.c
gitestrepo_CPPFLAGS = $(GIREPO_CFLAGS) -I$(top_srcdir)/girepository
-gitestrepo_LDADD = $(top_builddir)/girepository/libgirepository.la $(GIREPO_LIBS)
+gitestrepo_LDADD = $(top_builddir)/girepository/libgirepository-1.0.la $(GIREPO_LIBS)
gitestthrows_SOURCES = $(srcdir)/gitestthrows.c
gitestthrows_CPPFLAGS = $(GIREPO_CFLAGS) -I$(top_srcdir)/girepository
-gitestthrows_LDADD = $(top_builddir)/girepository/libgirepository.la $(GIREPO_LIBS)
+gitestthrows_LDADD = $(top_builddir)/girepository/libgirepository-1.0.la $(GIREPO_LIBS)
TESTS = gitestrepo gitestthrows
TESTS_ENVIRONMENT=env top_builddir="$(top_builddir)" $(DEBUG)
Modified: trunk/tests/scanner/Makefile.am
==============================================================================
--- trunk/tests/scanner/Makefile.am (original)
+++ trunk/tests/scanner/Makefile.am Thu Jan 15 22:31:07 2009
@@ -106,7 +106,7 @@
noinst_PROGRAMS = barapp
barapp_SOURCES = $(srcdir)/barapp.c $(srcdir)/barapp.h
-barapp_LDADD = $(top_builddir)/girepository/libgirepository.la
+barapp_LDADD = $(top_builddir)/girepository/libgirepository-1.0.la
barapp_LDFLAGS = -export-dynamic
BarApp-1.0.gir: barapp $(SCANNER_BIN) $(SCANNER_LIBS) Makefile
$(SCANNER) \
Modified: trunk/tools/Makefile.am
==============================================================================
--- trunk/tools/Makefile.am (original)
+++ trunk/tools/Makefile.am Thu Jan 15 22:31:07 2009
@@ -12,13 +12,13 @@
g_ir_compiler_CFLAGS = $(GIREPO_CFLAGS)
g_ir_compiler_LDADD = \
$(top_builddir)/girepository/libgirepository-parser.la \
- $(top_builddir)/girepository/libgirepository.la \
+ $(top_builddir)/girepository/libgirepository-1.0.la \
$(GIREPO_LIBS)
g_ir_generate_SOURCES = generate.c
g_ir_generate_CFLAGS = $(GIREPO_CFLAGS)
g_ir_generate_LDADD = \
- $(top_builddir)/girepository/libgirepository.la \
+ $(top_builddir)/girepository/libgirepository-1.0.la \
$(GIREPO_LIBS)
GCOVSOURCES = \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]