Move internal vapis to a separate directory
Now it's more maintainable and the config constants are made available
This commit is contained in:
		| @@ -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) | ||||
|   | ||||
| @@ -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) | ||||
|   | ||||
							
								
								
									
										22
									
								
								vapi/config.vapi
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								vapi/config.vapi
									
									
									
									
									
										Normal file
									
								
							| @@ -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 | ||||
|  * <http://www.gnu.org/licenses/>. | ||||
|  */ | ||||
|  | ||||
| [CCode (cprefix = "", lower_case_cprefix = "", cheader_filename = "config.h")] | ||||
| namespace Config { | ||||
|     public const bool DEBUG; | ||||
| } | ||||
		Reference in New Issue
	
	Block a user