summaryrefslogtreecommitdiff
path: root/Android.bp
diff options
context:
space:
mode:
authorAdam Serbinski <adam@serbinski.com>2019-04-23 07:29:01 -0400
committerGary E. Miller <gem@rellim.com>2019-04-24 14:01:30 -0700
commitea432167c68baa29fd841b2a7605f047869ae8c8 (patch)
tree48f8ca6c356ad1076a97d99497b9f66e96eae433 /Android.bp
parent2c9c36a4dd5eaf62e5bc7ed29a44a127f6495fee (diff)
downloadgpsd-ea432167c68baa29fd841b2a7605f047869ae8c8.tar.gz
Android: build client libraries for AOSP
This is not intended for use by the Android NDK. This will enable the building of libgps.so as part of an AOSP system build, which ultimately can be used in the creation of GPS clients in the form of a system daemon, in particular, a GNSS HAL. Signed-off-by: Adam Serbinski <adam@serbinski.com> Signed-off-by: Gary E. Miller <gem@rellim.com>
Diffstat (limited to 'Android.bp')
-rw-r--r--Android.bp81
1 files changed, 81 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
new file mode 100644
index 00000000..8a138f23
--- /dev/null
+++ b/Android.bp
@@ -0,0 +1,81 @@
+cc_binary {
+ name: "gps_test",
+ vendor: true,
+ local_include_dirs: ["android"],
+ srcs: [
+ "android/gps_test.c"
+ ],
+ shared_libs: [
+ "libutils",
+ "liblog",
+ "libcutils"
+ ],
+ static_libs: [
+ "libgps_static"
+ ],
+ cflags: [
+ "-Wno-unused-variable",
+ "-Wno-unused-parameter",
+ "-Wno-missing-field-initializers",
+ ]
+}
+
+cc_library_shared {
+ name: "libgps",
+ vendor: true,
+ local_include_dirs: ["android"],
+ export_include_dirs: ["."],
+ srcs: [
+ "bits.c",
+ "gpsdclient.c",
+ "gpsutils.c",
+ "android/gps_maskdump.c",
+ "hex.c",
+ "json.c",
+ "libgps_core.c",
+ "libgps_dbus.c",
+ "libgps_json.c",
+ "libgps_shm.c",
+ "libgps_sock.c",
+ "netlib.c",
+ "os_compat.c",
+ "rtcm2_json.c",
+ "rtcm3_json.c",
+ "shared_json.c"
+ ],
+ cflags: [
+ "-Wno-unused-variable",
+ "-Wno-unused-parameter",
+ "-Wno-missing-field-initializers",
+ ],
+}
+
+cc_library_static {
+ name: "libgps_static",
+ vendor: true,
+ local_include_dirs: ["android"],
+ export_include_dirs: ["."],
+ srcs: [
+ "bits.c",
+ "gpsdclient.c",
+ "gpsutils.c",
+ "android/gps_maskdump.c",
+ "hex.c",
+ "json.c",
+ "libgps_core.c",
+ "libgps_dbus.c",
+ "libgps_json.c",
+ "libgps_shm.c",
+ "libgps_sock.c",
+ "netlib.c",
+ "os_compat.c",
+ "rtcm2_json.c",
+ "rtcm3_json.c",
+ "shared_json.c"
+ ],
+ cflags: [
+ "-Wno-unused-variable",
+ "-Wno-unused-parameter",
+ "-Wno-missing-field-initializers",
+ ],
+}