summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2013-01-18 06:49:51 -0500
committerEric S. Raymond <esr@thyrsus.com>2013-01-18 06:49:51 -0500
commitcbc0a2cfc86ff83c22bd5433100b1d95bcd36950 (patch)
tree1bb28298712602e5f1244621d19859104551d321 /SConstruct
parentadfa428b28b11613c86c45a98f8a2aaebadf90b2 (diff)
downloadgpsd-cbc0a2cfc86ff83c22bd5433100b1d95bcd36950.tar.gz
Add the ability to build a libgps.a.
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct8
1 files changed, 6 insertions, 2 deletions
diff --git a/SConstruct b/SConstruct
index b000a557..b11bdd79 100644
--- a/SConstruct
+++ b/SConstruct
@@ -864,8 +864,7 @@ if qt_env:
compile_with = qt_env['CC']
compile_flags = qt_env['CFLAGS']
qtobjects.append(qt_env.SharedObject(src.split(".")[0] + '-qt', src,
- CC=compile_with,
- CFLAGS=compile_flags,
+ CC=compile_with, CFLAGS=compile_flags,
parse_flags=dbus_libs))
compiled_qgpsmmlib = Library(qt_env, "Qgpsmm", qtobjects, libgps_version)
libraries.append(compiled_qgpsmmlib)
@@ -875,6 +874,11 @@ if qt_env:
gpslibs = ["-lgps", "-lm"]
gpsdlibs = ["-lgpsd"] + usblibs + bluezlibs + gpslibs + caplibs
+# We need to be able to make a static client library for ad-hoc testing.
+# (None of the normal targets relies on this.)
+
+env.StaticLibrary(target = 'libgps.a', source = libgps_sources)
+
# Source groups
gpsd_sources = ['gpsd.c','ntpshm.c','shmexport.c','dbusexport.c']