Merge lp:~dobey/ubuntuone-client/drop-vapi into lp:ubuntuone-client

Proposed by dobey on 2012-09-17
Status: Merged
Approved by: dobey on 2012-09-17
Approved revision: 1312
Merged at revision: 1313
Proposed branch: lp:~dobey/ubuntuone-client/drop-vapi
Merge into: lp:ubuntuone-client
Diff against target: 161 lines (+1/-117)
4 files modified
configure.ac (+1/-26)
libsyncdaemon/Makefile.am (+0/-26)
libsyncdaemon/libsyncdaemon-vala.deps (+0/-2)
libsyncdaemon/test-libsyncdaemon-vapi.vala (+0/-63)
To merge this branch: bzr merge lp:~dobey/ubuntuone-client/drop-vapi
Reviewer Review Type Date Requested Status
Roberto Alsina (community) 2012-09-17 Approve on 2012-09-17
Review via email: mp+124774@code.launchpad.net

Commit Message

Drop vapi generation support to fix distcheck

To post a comment you must log in.
Roberto Alsina (ralsina) wrote :

+1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'configure.ac'
2--- configure.ac 2012-08-01 18:37:44 +0000
3+++ configure.ac 2012-09-17 19:21:22 +0000
4@@ -124,7 +124,7 @@
5 # Check for gtk-doc.
6 ##################################################
7 GTK_DOC_CHECK(1.0)
8-DISTCHECK_CONFIGURE_FLAGS="--enable-gtk-doc --disable-gtk-doc-html --disable-rendering --enable-debug"
9+DISTCHECK_CONFIGURE_FLAGS="--enable-gtk-doc --disable-rendering --enable-debug"
10 AC_SUBST(DISTCHECK_CONFIGURE_FLAGS)
11
12 ##################################################
13@@ -149,31 +149,6 @@
14 AC_SUBST(INTROSPECTION_TYPELIBDIR_NAME)
15 fi
16
17-##################################################
18-# Check for Vala's vapigen
19-##################################################
20-VAPIGEN=""
21-AC_MSG_CHECKING([whether to enable vapi generation])
22-AC_ARG_ENABLE([vapigen],
23- AC_HELP_STRING([--disable-vapigen],
24- [Build the vapi for libsyncdaemon [default=enabled]]),
25- [enable_vapigen=$enableval],
26- [enable_vapigen=yes])
27-if test "x$enable_vapigen" = "xyes"; then
28- if test "x$found_introspection" = "xyes"; then
29- AC_MSG_RESULT([yes])
30- AC_PATH_PROG([VAPIGEN], [vapigen], [])
31- AM_PROG_VALAC()
32- else
33- AC_MSG_RESULT([no])
34- AC_MSG_RESULT([gobject-introspection is required to generate a vapi])
35- fi
36-else
37- AC_MSG_RESULT([no])
38-fi
39-AC_SUBST(VAPIGEN)
40-AM_CONDITIONAL([HAVE_VAPIGEN], [test "x$VAPIGEN" != "x" -a "x$enable_vapigen" = "xyes"])
41-
42 dnl glib-genmarshal
43 AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal)
44
45
46=== modified file 'libsyncdaemon/Makefile.am'
47--- libsyncdaemon/Makefile.am 2011-02-04 19:40:39 +0000
48+++ libsyncdaemon/Makefile.am 2012-09-17 19:21:22 +0000
49@@ -76,7 +76,6 @@
50
51 EXTRA_DIST = \
52 syncdaemon-marshal.list \
53- libsyncdaemon-vala.deps \
54 utils.h \
55 $(MARSHAL_GENERATED)
56
57@@ -112,29 +111,4 @@
58
59 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
60
61-if HAVE_VAPIGEN
62-vapidir = $(datadir)/vala/vapi
63-vapi_DATA = libsyncdaemon-1.0.vapi libsyncdaemon-1.0.deps
64-
65-libsyncdaemon-1.0.vapi: Syncdaemon-1.0.gir Makefile
66- $(VAPIGEN) --pkg gobject-2.0 --library libsyncdaemon-1.0 $<
67-
68-libsyncdaemon-1.0.deps: libsyncdaemon-vala.deps Makefile
69- cp $< $@
70-
71-noinst_PROGRAMS += test-libsyncdaemon-vapi
72-
73-test_libsyncdaemon_vapi_SOURCES = \
74- libsyncdaemon-1.0.vapi \
75- test-libsyncdaemon-vapi.vala
76-
77-test_libsyncdaemon_vapi_VALAFLAGS = \
78- --pkg gobject-2.0 --pkg glib-2.0
79-
80-test_libsyncdaemon_vapi_LDADD = libsyncdaemon-1.0.la $(DBUS_LIBS)
81-
82-CLEANFILES += $(vapi_DATA) $(test_libsyncdaemon_vapi_SOURCES:.vala=.c)
83-
84-endif # HAVE_VAPIGEN
85-
86 endif # HAVE_INTROSPECTION
87
88=== removed file 'libsyncdaemon/libsyncdaemon-vala.deps'
89--- libsyncdaemon/libsyncdaemon-vala.deps 2011-02-01 20:17:31 +0000
90+++ libsyncdaemon/libsyncdaemon-vala.deps 1970-01-01 00:00:00 +0000
91@@ -1,2 +0,0 @@
92-gobject-2.0
93-
94
95=== removed file 'libsyncdaemon/test-libsyncdaemon-vapi.vala'
96--- libsyncdaemon/test-libsyncdaemon-vapi.vala 2012-04-09 20:07:05 +0000
97+++ libsyncdaemon/test-libsyncdaemon-vapi.vala 1970-01-01 00:00:00 +0000
98@@ -1,63 +0,0 @@
99-/*
100- * Syncdaemon Vala API test binary
101- *
102- * Copyright 2011-2012 Canonical Ltd.
103- *
104- * This program is free software: you can redistribute it and/or modify it
105- * under the terms of the GNU General Public License version 3, as published
106- * by the Free Software Foundation.
107- *
108- * This program is distributed in the hope that it will be useful, but
109- * WITHOUT ANY WARRANTY; without even the implied warranties of
110- * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
111- * PURPOSE. See the GNU General Public License for more details.
112- *
113- * You should have received a copy of the GNU General Public License along
114- * with this program. If not, see <http://www.gnu.org/licenses/>.
115- *
116- * In addition, as a special exception, the copyright holders give
117- * permission to link the code of portions of this program with the
118- * OpenSSL library under certain conditions as described in each
119- * individual source file, and distribute linked combinations
120- * including the two.
121- * You must obey the GNU General Public License in all respects
122- * for all of the code used other than OpenSSL. If you modify
123- * file(s) with this exception, you may extend this exception to your
124- * version of the file(s), but you are not obligated to do so. If you
125- * do not wish to do so, delete this exception statement from your
126- * version. If you delete this exception statement from all source
127- * files in the program, then also delete it here.
128- *
129- */
130-using GLib;
131-using Syncdaemon;
132-
133-public class TestVapi {
134- private MainLoop loop;
135- private int status;
136-
137- public TestVapi () {
138- status = 0;
139- }
140-
141- private bool test_instantiation () {
142- new Daemon ();
143-
144- loop.quit ();
145- return false;
146- }
147-
148- public int main () {
149- loop = new MainLoop ();
150-
151- Idle.add ((SourceFunc) test_instantiation);
152- loop.run ();
153-
154- return status;
155- }
156-}
157-
158-int main (string[] args) {
159- var test = new TestVapi ();
160- return test.main ();
161-}

Subscribers

People subscribed via source and target branches