2013-10-11 23:07:35 +00:00
|
|
|
include $(top_srcdir)/Makefile.decl
|
|
|
|
|
|
|
|
SUBDIRS = parser
|
|
|
|
|
|
|
|
sql_lib_LTLIBRARIES = libsql.la
|
|
|
|
sql_include_HEADERS = \
|
|
|
|
sql.h \
|
|
|
|
sql-multi-stmt.h \
|
|
|
|
sql-string.h \
|
|
|
|
sql-target.h \
|
|
|
|
sql-expr.h \
|
|
|
|
sql-insert.h \
|
2013-10-14 12:08:06 +00:00
|
|
|
sql-object.h \
|
2013-10-11 23:07:35 +00:00
|
|
|
sql-select.h \
|
|
|
|
sql-subquery.h \
|
|
|
|
sql-update.h \
|
|
|
|
sql-delete.h \
|
|
|
|
sql-field.h \
|
|
|
|
sql-join.h \
|
|
|
|
sql-operation.h \
|
|
|
|
sql-stmt.h \
|
|
|
|
sql-table.h \
|
|
|
|
sql-value.h \
|
|
|
|
sql-dml.h \
|
|
|
|
sql-function.h \
|
|
|
|
sql-render.h \
|
|
|
|
sql-parser.h
|
|
|
|
|
|
|
|
AM_CPPFLAGS = \
|
|
|
|
-I$(top_srcdir) \
|
|
|
|
$(glib_CFLAGS)
|
|
|
|
libsql_la_LIBADD = \
|
|
|
|
$(glib_LIBS) \
|
|
|
|
$(top_builddir)/gvn/libgvn.la
|
|
|
|
libsql_la_SOURCES = \
|
|
|
|
$(sql_include_HEADERS) \
|
|
|
|
sql-expr.c \
|
|
|
|
sql-insert.c \
|
2013-10-14 12:08:06 +00:00
|
|
|
sql-object.c \
|
2013-10-11 23:07:35 +00:00
|
|
|
sql-select.c \
|
|
|
|
sql-subquery.c \
|
|
|
|
sql-update.c \
|
|
|
|
sql-delete.c \
|
|
|
|
sql-field.c \
|
|
|
|
sql-join.c \
|
|
|
|
sql-operation.c \
|
|
|
|
sql-stmt.c \
|
|
|
|
sql-table.c \
|
|
|
|
sql-value.c \
|
|
|
|
sql-dml.c \
|
|
|
|
sql-function.c \
|
|
|
|
sql-multi-stmt.c \
|
|
|
|
sql-string.c \
|
|
|
|
sql-target.c \
|
|
|
|
sql-render.c \
|
2013-10-14 12:08:06 +00:00
|
|
|
$(top_srcdir)/sql/sql-parser.c
|
2013-10-11 23:07:35 +00:00
|
|
|
|
|
|
|
pkgconfig_DATA = sql.pc
|
|
|
|
|
|
|
|
EXTRA_DIST = sql.pc.in
|
|
|
|
|
|
|
|
DISTCLEANFILES = sql.pc
|
|
|
|
|
|
|
|
if ENABLE_VALA
|
|
|
|
if HAVE_INTROSPECTION
|
|
|
|
|
|
|
|
-include $(INTROSPECTION_MAKEFILE)
|
|
|
|
|
|
|
|
INTROSPECTION_SCANNER_ARGS = $(GIR_SCANNER_ARGS)
|
|
|
|
|
|
|
|
INTROSPECTION_COMPILER_ARGS = --includedir=$(top_builddir)/gvn
|
|
|
|
|
|
|
|
introspection_sources = $(libsql_la_SOURCES)
|
|
|
|
|
|
|
|
Sql-$(VERSION).gir: $(sql_lib_LTLIBRARIES) $(top_builddir)/gvn/Gvn-$(VERSION).gir
|
|
|
|
Sql_@uVERSION@_gir_SCANNERFLAGS = \
|
|
|
|
--include-uninstalled=$(top_builddir)/gvn/Gvn-$(VERSION).gir
|
|
|
|
Sql_@uVERSION@_gir_CFLAGS = -I$(top_srcdir)
|
|
|
|
Sql_@uVERSION@_gir_LIBS = $(sql_lib_LTLIBRARIES)
|
|
|
|
Sql_@uVERSION@_gir_FILES = $(introspection_sources)
|
|
|
|
Sql_@uVERSION@_gir_EXPORT_PACKAGES = sql
|
|
|
|
INTROSPECTION_GIRS = Sql-$(VERSION).gir
|
|
|
|
|
|
|
|
gir_DATA = $(INTROSPECTION_GIRS)
|
|
|
|
typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
|
|
|
|
|
|
|
|
CLEANFILES = $(gir_DATA) $(typelib_DATA)
|
|
|
|
|
|
|
|
$(vapis)/sql.vapi: $(INTROSPECTION_GIRS) $(vapidata)/Sql-$(VERSION).metadata
|
|
|
|
$(vapigen_v)$(VAPIGEN) -q \
|
|
|
|
--directory $(vapis) \
|
|
|
|
--vapidir $(vapis) \
|
|
|
|
--girdir $(top_builddir)/gvn \
|
|
|
|
--metadatadir $(vapidata) \
|
|
|
|
--library sql \
|
|
|
|
Sql-$(VERSION).gir
|
|
|
|
|
|
|
|
vapi_DATA = $(vapis)/sql.vapi
|
|
|
|
|
|
|
|
CLEANFILES += $(vapi_DATA)
|
|
|
|
|
|
|
|
endif
|
|
|
|
endif
|