]> git.datanom.net - lensdb.git/commitdiff
fix base
authorMichael Rasmussen <mir@datanom.net>
Tue, 15 Oct 2024 22:24:27 +0000 (00:24 +0200)
committerMichael Rasmussen <mir@datanom.net>
Tue, 15 Oct 2024 22:24:27 +0000 (00:24 +0200)
Signed-off-by: Michael Rasmussen <mir@datanom.net>
configure.ac
src/Makefile.am
src/main.c
src/sqlite-storage.c [new file with mode: 0644]
src/sqlite-storage.h [new file with mode: 0644]

index 57aa161192ece2112c9a62723ff002454736fb1e..fcd45a5a627950b1c6a84e371f0ed23a583b8750 100644 (file)
@@ -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 <assert.h> header file.]))
index cfb98dea2f77f19d853b8d50036a48996a0abfdc..07696d352efed04c86bb8e66b93923c83beddb87 100644 (file)
@@ -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 =
 
index cd9671f531ae327c6b033af8b1d6fbf4105032db..53a291b2c1337bf979872babab7677dca64dc173 100644 (file)
@@ -1,4 +1,10 @@
+#ifdef HAVE_CONFIG_H
+#       include <config.h>
+#endif
+#include <glib.h>
+#include <glib-object.h>
+#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 (file)
index 0000000..0154528
--- /dev/null
@@ -0,0 +1,2 @@
+#include "sqlite-storage.h"
+
diff --git a/src/sqlite-storage.h b/src/sqlite-storage.h
new file mode 100644 (file)
index 0000000..f81e7dc
--- /dev/null
@@ -0,0 +1,18 @@
+
+#ifndef __SQLITE_STORAGE_H__
+#define __SQLITE_STORAGE_H__
+
+#ifdef HAVE_CONFIG_H
+#       include <config.h>
+#endif
+
+#include <glib.h>
+#include <glib-object.h>
+#include <sqlite3.h>
+
+G_BEGIN_DECLS
+
+G_END_DECLS
+
+#endif
+
This page took 0.042495 seconds and 5 git commands to generate.