From 2350109bb72dd1d289a333dc89fde16f31eb6259 Mon Sep 17 00:00:00 2001 From: Ikey Doherty Date: Fri, 27 May 2016 02:47:08 +0100 Subject: [PATCH] Add non functioning frontend Signed-off-by: Ikey Doherty --- .gitignore | 1 + Makefile.am | 24 +++++++++++++++++++++--- src/frontend/main.c | 33 +++++++++++++++++++++++++++++++++ 3 files changed, 55 insertions(+), 3 deletions(-) create mode 100644 src/frontend/main.c diff --git a/.gitignore b/.gitignore index abe6129..362ac07 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,4 @@ m4/*.m4 *.la .libs /steam +/lsi-settings diff --git a/Makefile.am b/Makefile.am index d2e92de..7792d70 100644 --- a/Makefile.am +++ b/Makefile.am @@ -21,6 +21,27 @@ noinst_LTLIBRARIES = \ libnica.la \ liblsi.la +bin_PROGRAMS = \ + steam + +if HAVE_FRONTEND +bin_PROGRAMS += lsi-settings + +lsi_settings_SOURCES = \ + src/frontend/main.c + +lsi_settings_CFLAGS = \ + $(GTK_CFLAGS) \ + $(AM_CFLAGS) \ + -DGDK_VERSION_MAX_ALLOWED=GDK_VERSION_3_4 \ + -DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_3_4 + +lsi_settings_LDADD = \ + liblsi.la \ + $(GTK_LIBS) + +endif + # Convenience library to prevent external linking with currently unstable ABI libnica_la_SOURCES = \ src/nica/hashmap.h \ @@ -44,9 +65,6 @@ liblsi_la_CFLAGS = \ liblsi_la_LIBADD = \ libnica.la -bin_PROGRAMS = \ - steam - steam_SOURCES = \ src/shim/shim.c diff --git a/src/frontend/main.c b/src/frontend/main.c new file mode 100644 index 0000000..e107a79 --- /dev/null +++ b/src/frontend/main.c @@ -0,0 +1,33 @@ +/* + * This file is part of linux-steam-integration. + * + * Copyright © 2016 Ikey Doherty + * + * linux-steam-integration 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 2.1 + * of the License, or (at your option) any later version. + */ + +#include +#include + +int main(int argc, char **argv) +{ + gtk_init(&argc, &argv); + + return EXIT_FAILURE; +} + +/* + * Editor modelines - https://www.wireshark.org/tools/modelines.html + * + * Local variables: + * c-basic-offset: 8 + * tab-width: 8 + * indent-tabs-mode: nil + * End: + * + * vi: set shiftwidth=8 tabstop=8 expandtab: + * :indentSize=8:tabSize=8:noTabs=true: + */