diff --git a/src/Makefile.am b/src/Makefile.am index c8bb720..d00bbbd 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -51,7 +51,7 @@ AM_VALAFLAGS += \ -C \ --use-header \ --gir=Matrix-$(MATRIX_GLIB_API_VERSION).gir \ - $(top_srcdir)/src/c-api.vapi \ + --vapidir=$(top_srcdir)/vapi \ $(NULL) vala-stamp: $(libmatrix_glib_0_0_la_VALA_SOURCES) diff --git a/vala-globals.mk b/vala-globals.mk index 4796b95..601d494 100644 --- a/vala-globals.mk +++ b/vala-globals.mk @@ -3,6 +3,8 @@ VALA_PKG_LIST = \ --pkg=Json-1.0 \ --pkg=libsoup-2.4 \ --pkg=gee-0.8 \ + --pkg=c-api \ + --pkg=config \ $(NULL) VALADOC_FLAGS = \ @@ -12,6 +14,5 @@ VALADOC_FLAGS = \ --package-version=$(PACKAGE_VERSION) \ -b $(top_srcdir)/src \ $(VALA_PKG_LIST) \ - --vapidir=$(top_srcdir)/src \ - $(top_srcdir)/src/c-api.vapi \ + --vapidir=$(top_srcdir)/vapi \ $(NULL) diff --git a/src/c-api.vapi b/vapi/c-api.vapi similarity index 100% rename from src/c-api.vapi rename to vapi/c-api.vapi diff --git a/vapi/config.vapi b/vapi/config.vapi new file mode 100644 index 0000000..61502ed --- /dev/null +++ b/vapi/config.vapi @@ -0,0 +1,22 @@ +/* + * This file is part of matrix-glib-sdk + * + * matrix-glib-sdk 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 3 of the License, or (at your option) any later version. + * + * matrix-glib-sdk 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 matrix-glib-sdk. If not, see + * . + */ + +[CCode (cprefix = "", lower_case_cprefix = "", cheader_filename = "config.h")] +namespace Config { + public const bool DEBUG; +}