]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
vala: anotate valaversion file 786-add-gir-version-annotation ecb05993ebc6b370bbfed40aa4f9042a32052add 60/head
authorDaniel Espinosa <esodan@gmail.com>
Sat, 27 Apr 2019 02:05:14 +0000 (21:05 -0500)
committerDaniel Espinosa <esodan@gmail.com>
Sat, 27 Apr 2019 02:05:14 +0000 (21:05 -0500)
VAPI doesn't include annotations about GIR version.

configure.ac
vala/Makefile.am
vala/namespace-info.vala.in [deleted file]
vala/valaversion.vala.in

index 7d9c993a8c441f6a9974c6b2be5b135735301c6c..aa8097b233d1a4e2814a9450c29652e700901fab 100644 (file)
@@ -217,7 +217,6 @@ AC_CONFIG_FILES([Makefile
            gee/Makefile
            ccode/Makefile
            vala/Makefile
-           vala/namespace-info.vala
            codegen/Makefile
            compiler/Makefile
            vapi/Makefile
index a815915e20592d246009f3fda13e05d9628a4ab7..6be70557d38e5db0d8c0dfeec59e5e3dcd385e2b 100644 (file)
@@ -25,7 +25,6 @@ lib_LTLIBRARIES = \
        $(NULL)
 
 libvala_la_VALASOURCES = \
-       namespace-info.vala \
        valaaddressofexpression.vala \
        valaarraycopymethod.vala \
        valaarraycreationexpression.vala \
@@ -225,7 +224,6 @@ 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
deleted file mode 100644 (file)
index 7959aa2..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-/* 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 {}
-
-
index 6a3289d405dd9d8254a1b2cdc3e4f7e0d5696dfc..f3942f9fa691e35f9d5731d3bda677253e6778ba 100644 (file)
@@ -19,7 +19,7 @@
  * Author:
  *     Rico Tzschichholz <ricotz@ubuntu.com>
  */
-
+[CCode (gir_namespace = "Vala", gir_version = "@API_VERSION@", cheader_filename = "vala.h")]
 namespace Vala {
        /**
         * Like get_major_version, but from the headers used at application compile time,