From: Michael Rasmussen Date: Tue, 15 Oct 2024 22:24:27 +0000 (+0200) Subject: fix base X-Git-Url: http://git.datanom.net/lensdb.git/commitdiff_plain/1add773a4f57f945301ebfd9b77f3de70f377441?hp=6e763fa03cd4b1fdfb78d5de982d3d3647e9f7ac fix base Signed-off-by: Michael Rasmussen --- diff --git a/configure.ac b/configure.ac index 57aa161..fcd45a5 100644 --- a/configure.ac +++ b/configure.ac @@ -30,6 +30,7 @@ SQLITE3_REQUIRED=3.40 AC_SUBST(GLIB_REQUIRED) AC_SUBST(GOBJECT_REQUIRED) AC_SUBST(GTK_REQUIRED) +AC_SUBST(SQLITE3_REQUIRED) # Checks for programs. AC_PROG_CC @@ -51,10 +52,14 @@ PKG_CHECK_MODULES([GLIB], AC_SUBST(GLIB_CFLAGS) AC_SUBST(GLIB_LIBS) -PKG_CHECK_MODULES([GTK], gtk+-3.0 >= $GTK_REQUIRED) +PKG_CHECK_MODULES([GTK], [gtk+-3.0 >= $GTK_REQUIRED]) AC_SUBST(GTK_CFLAGS) AC_SUBST(GTK_LIBS) +PKG_CHECK_MODULES([SQLITE3], [sqlite3 >= $SQLITE3_REQUIRED]) +AC_SUBST(SQLITE3_LIBS) +AC_SUBST(SQLITE3_CFLAGS) + # Checks for header files. AC_CHECK_HEADER([assert.h], AC_DEFINE([HAVE_ASSERT_H], [1], [Define to 1 if you have the header file.])) diff --git a/src/Makefile.am b/src/Makefile.am index cfb98de..07696d3 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -4,16 +4,20 @@ AM_CPPFLAGS = \ -I${top_srcdir} \ -I${top_builddir} \ @GLIB_CFLAGS@ \ - @GTK_CFLAGS@ + @GTK_CFLAGS@ \ + @SQLITE3_CFLAGS@ bin_PROGRAMS = lensdb lensdb_SOURCES = \ - main.c + main.c \ + sqlite-storage.h \ + sqlite-storage.c lensdb_LDADD = \ @GLIB_LIBS@ \ - @GTK_LIBS@ + @GTK_LIBS@ \ + @SQLITE3_LIBS@ lensdb_LDFLAGS = diff --git a/src/main.c b/src/main.c index cd9671f..53a291b 100644 --- a/src/main.c +++ b/src/main.c @@ -1,4 +1,10 @@ +#ifdef HAVE_CONFIG_H +# include +#endif +#include +#include +#include "sqlite-storage.h" -int main(int argc, char** argv) { +gint main(gint argc, gchar** argv) { return 0; } diff --git a/src/sqlite-storage.c b/src/sqlite-storage.c new file mode 100644 index 0000000..0154528 --- /dev/null +++ b/src/sqlite-storage.c @@ -0,0 +1,2 @@ +#include "sqlite-storage.h" + diff --git a/src/sqlite-storage.h b/src/sqlite-storage.h new file mode 100644 index 0000000..f81e7dc --- /dev/null +++ b/src/sqlite-storage.h @@ -0,0 +1,18 @@ + +#ifndef __SQLITE_STORAGE_H__ +#define __SQLITE_STORAGE_H__ + +#ifdef HAVE_CONFIG_H +# include +#endif + +#include +#include +#include + +G_BEGIN_DECLS + +G_END_DECLS + +#endif +