]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
vala: added namespace GIR version annotation
authorDaniel Espinosa <esodan@gmail.com>
Fri, 26 Apr 2019 18:38:09 +0000 (13:38 -0500)
committerDaniel Espinosa <esodan@gmail.com>
Fri, 26 Apr 2019 18:44:16 +0000 (13:44 -0500)
configure.ac
vala/Makefile.am
vala/namespace-info.vala.in [new file with mode: 0644]

index aa8097b233d1a4e2814a9450c29652e700901fab..7d9c993a8c441f6a9974c6b2be5b135735301c6c 100644 (file)
@@ -217,6 +217,7 @@ AC_CONFIG_FILES([Makefile
            gee/Makefile
            ccode/Makefile
            vala/Makefile
+           vala/namespace-info.vala
            codegen/Makefile
            compiler/Makefile
            vapi/Makefile
index 6be70557d38e5db0d8c0dfeec59e5e3dcd385e2b..a815915e20592d246009f3fda13e05d9628a4ab7 100644 (file)
@@ -25,6 +25,7 @@ lib_LTLIBRARIES = \
        $(NULL)
 
 libvala_la_VALASOURCES = \
+       namespace-info.vala \
        valaaddressofexpression.vala \
        valaarraycopymethod.vala \
        valaarraycreationexpression.vala \
@@ -224,6 +225,7 @@ libvala@PACKAGE_SUFFIX@.vapi: $(top_srcdir)/gee/gee.vapi $(top_srcdir)/vala/vala
 EXTRA_DIST = $(libvala_la_VALASOURCES) vala.vapi vala.vala.stamp vala.h valaversion.vala.in
 
 MAINTAINERCLEANFILES = \
+       namespace-info.vala \s
        vala.vapi \
        vala.h \
        $(libvala_la_VALASOURCES:.vala=.c) \
diff --git a/vala/namespace-info.vala.in b/vala/namespace-info.vala.in
new file mode 100644 (file)
index 0000000..7959aa2
--- /dev/null
@@ -0,0 +1,25 @@
+/* namespace-info.vala-in
+ *
+ * Copyright (C) 2019 Daniel Espinosa <esodan@gmail.com>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301  USA
+ *
+ * Authors:
+ *      Daniel Espinosa <esodan@gmail.com>
+ */
+[CCode (gir_namespace = "Vala", gir_version = "@API_VERSION@", cheader_filename = "vala.h")]
+namespace Vala {}
+
+