Files
linux-steam-integration/Makefile.am
T
Ikey Doherty 2282296045 Add an option to disable replacement of the Steam binary
LSI was initially created for Solus inclusion, and the best approach
determined was to replace /usr/bin/steam with our own stand in shim,
so that it was fully integrated.

Doing so enables one to run steam from anywhere and it would correctly
appear in the path, with no issues. However, this made LSI suitable
only for distribution integration, such as the very tight integration
seen in Solus.

With this change, the binary name will change to lsi-steam, and an
additional .desktop file to launch the shim will be installed. The
user must then use the LSI specific .desktop file to launch Steam,
at which point they'll be going through the LSI shim system and
reaping the benefits, without having to modify any packages.

More changes are yet to come, which will configure lsi-steam to call
the "real" steam in exec rather than the masked libdir variant.

Signed-off-by: Ikey Doherty <ikey@solus-project.com>
2016-12-08 23:45:02 +00:00

100 lines
1.8 KiB
Makefile

EXTRA_DIST = \
LICENSE.LGPL2.1 \
README.rst \
data/lsi-settings.desktop \
data/lsi-steam.desktop
AM_CFLAGS = \
-fstack-protector -Wall -pedantic \
-Wstrict-prototypes -Wundef -fno-common \
-Werror-implicit-function-declaration \
-Wformat -Wformat-security -Werror=format-security \
-Wno-conversion -Wunused-variable -Wunreachable-code \
-Wall -W -D_FORTIFY_SOURCE=2 -std=c99
AM_CPPFLAGS = \
-I $(top_srcdir)/src \
-I $(top_srcdir)/src/shim \
-I $(top_srcdir)/src/libnica/src/include \
-DSYSTEMCONFDIR=\"$(sysconfdir)\" \
-DVENDORDIR=\"$(datadir)/defaults/linux-steam-integration\"
SUBDIRS = src/libnica
noinst_LTLIBRARIES = \
liblsi.la
bin_PROGRAMS =
desktopdir = $(datadir)/applications
desktop_DATA =
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)
desktopdir = $(datadir)/applications
desktop_DATA += \
data/lsi-settings.desktop
endif
# Convenience library for shared LSI functions
liblsi_la_SOURCES = \
src/shim/lsi.h \
src/shim/lsi.c
liblsi_la_CFLAGS = \
$(AM_CFLAGS) \
-I$(top_srcdir)/src/libnica/src/include/nica
liblsi_la_LIBADD = \
src/libnica/libnica.la
# Replace the main steam binary with our own steam file
if REPLACE_STEAM
bin_PROGRAMS += steam
steam_SOURCES = \
src/shim/shim.c
steam_LDADD = \
src/libnica/libnica.la \
liblsi.la
steam_CFLAGS = \
$(AM_CFLAGS)
else
# Don't replace steam - use a non conflicting filename
bin_PROGRAMS += lsi-steam
lsi_steam_SOURCES = \
src/shim/shim.c
lsi_steam_LDADD = \
src/libnica/libnica.la \
liblsi.la
lsi_steam_CFLAGS = \
$(AM_CFLAGS)
# Install custom .desktop file for steam
desktop_DATA += \
data/lsi-steam.desktop
endif