You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Android.bp 4.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  1. cc_binary {
  2. name: "gps_test",
  3. vendor: true,
  4. srcs: [
  5. "android/gps_test.c"
  6. ],
  7. shared_libs: [
  8. "libutils",
  9. "liblog",
  10. "libcutils"
  11. ],
  12. static_libs: [
  13. "libgps_static"
  14. ],
  15. cflags: [
  16. "-Wno-unused-variable",
  17. "-Wno-unused-parameter",
  18. "-Wno-missing-field-initializers",
  19. ]
  20. }
  21. cc_binary {
  22. name: "gpsd",
  23. vendor: true,
  24. required: ["gpsd_wrapper"],
  25. generated_headers: [
  26. "gpsd_revision_h",
  27. "gpsd_config_h",
  28. "gpsd_packet_names_h"
  29. ],
  30. srcs: [
  31. "dbusexport.c",
  32. "gpsd.c",
  33. "shmexport.c",
  34. "timehint.c"
  35. ],
  36. static_libs: [
  37. "libgpsd",
  38. "libgps_static",
  39. ],
  40. cflags: [
  41. "-Wno-unused-variable",
  42. "-Wno-unused-parameter",
  43. "-Wno-missing-field-initializers",
  44. ]
  45. }
  46. cc_binary {
  47. name: "gpsd_wrapper",
  48. vendor: true,
  49. init_rc: ["android/gpsd.rc"],
  50. srcs: ["android/gpsd_wrapper.c"],
  51. shared_libs: [
  52. "liblog",
  53. "libcutils"
  54. ]
  55. }
  56. cc_library_shared {
  57. name: "libgps",
  58. vendor: true,
  59. export_include_dirs: ["."],
  60. generated_headers: [
  61. "gpsd_revision_h",
  62. "gpsd_config_h",
  63. "gpsd_packet_names_h"
  64. ],
  65. generated_sources: ["gps_maskdump_c"],
  66. srcs: [
  67. "bits.c",
  68. "gpsdclient.c",
  69. "gpsutils.c",
  70. "hex.c",
  71. "json.c",
  72. "libgps_core.c",
  73. "libgps_dbus.c",
  74. "libgps_json.c",
  75. "libgps_shm.c",
  76. "libgps_sock.c",
  77. "netlib.c",
  78. "os_compat.c",
  79. "rtcm2_json.c",
  80. "rtcm3_json.c",
  81. "shared_json.c"
  82. ],
  83. cflags: [
  84. "-Wno-unused-variable",
  85. "-Wno-unused-parameter",
  86. "-Wno-missing-field-initializers",
  87. ],
  88. }
  89. cc_library_static {
  90. name: "libgps_static",
  91. vendor: true,
  92. export_include_dirs: ["."],
  93. generated_headers: [
  94. "gpsd_revision_h",
  95. "gpsd_config_h",
  96. "gpsd_packet_names_h"
  97. ],
  98. generated_sources: ["gps_maskdump_c"],
  99. srcs: [
  100. "bits.c",
  101. "gpsdclient.c",
  102. "gpsutils.c",
  103. "hex.c",
  104. "json.c",
  105. "libgps_core.c",
  106. "libgps_dbus.c",
  107. "libgps_json.c",
  108. "libgps_shm.c",
  109. "libgps_sock.c",
  110. "netlib.c",
  111. "os_compat.c",
  112. "rtcm2_json.c",
  113. "rtcm3_json.c",
  114. "shared_json.c"
  115. ],
  116. cflags: [
  117. "-Wno-unused-variable",
  118. "-Wno-unused-parameter",
  119. "-Wno-missing-field-initializers",
  120. ],
  121. }
  122. genrule {
  123. name: "gpsd_packet_names_h",
  124. cmd: "rm -f $(out); sed -e '/^ *\\([A-Z][A-Z0-9_]*\\)," +
  125. "/s// \"\\1\",/' < $(in) > $(out)",
  126. srcs: ["packet_states.h"],
  127. out: ["packet_names.h"]
  128. }
  129. genrule {
  130. name: "gpsd_config_h",
  131. cmd: "cat $(in)/android/gpsd_config.in > $(out);" +
  132. "grep \"^gpsd_version\" $(in)/SConstruct | " +
  133. "cut -d\\= -f2 | sed -e 's/^/#define VERSION/'" +
  134. ">> $(out)",
  135. srcs: [""],
  136. out: ["gpsd_config.h"]
  137. }
  138. genrule {
  139. name: "gpsd_revision_h",
  140. cmd: "grep \"^gpsd_version\" $(in) | cut -d\\= -f2 " +
  141. "| sed -e 's/^/#define REVISION/' > $(out)",
  142. srcs: ["SConstruct"],
  143. out: ["revision.h"]
  144. }
  145. python_binary_host {
  146. name: "maskaudit",
  147. main: "maskaudit.py",
  148. srcs: ["maskaudit.py"]
  149. }
  150. genrule {
  151. name: "gps_maskdump_c",
  152. tools: ["maskaudit"],
  153. cmd: "$(location maskaudit) -c $(in) > $(out)",
  154. out: ["gps_maskdump.c"],
  155. srcs: [""]
  156. }
  157. cc_library_static {
  158. name: "libgpsd",
  159. vendor: true,
  160. export_include_dirs: ["."],
  161. generated_headers: [
  162. "gpsd_revision_h",
  163. "gpsd_config_h",
  164. "gpsd_packet_names_h"
  165. ],
  166. srcs: [
  167. "bsd_base64.c",
  168. "crc24q.c",
  169. "driver_ais.c",
  170. "driver_evermore.c",
  171. "driver_garmin.c",
  172. "driver_garmin_txt.c",
  173. "driver_geostar.c",
  174. "driver_greis.c",
  175. "driver_greis_checksum.c",
  176. "driver_italk.c",
  177. "driver_navcom.c",
  178. "driver_nmea0183.c",
  179. "driver_nmea2000.c",
  180. "driver_oncore.c",
  181. "driver_rtcm2.c",
  182. "driver_rtcm3.c",
  183. "drivers.c",
  184. "driver_sirf.c",
  185. "driver_skytraq.c",
  186. "driver_superstar2.c",
  187. "driver_tsip.c",
  188. "driver_ubx.c",
  189. "driver_zodiac.c",
  190. "geoid.c",
  191. "gpsd_json.c",
  192. "isgps.c",
  193. "libgpsd_core.c",
  194. "matrix.c",
  195. "net_dgpsip.c",
  196. "net_gnss_dispatch.c",
  197. "net_ntrip.c",
  198. "ntpshmread.c",
  199. "ntpshmwrite.c",
  200. "packet.c",
  201. "ppsthread.c",
  202. "pseudoais.c",
  203. "pseudonmea.c",
  204. "serial.c",
  205. "subframe.c",
  206. "timebase.c",
  207. "timespec_str.c"
  208. ],
  209. cflags: [
  210. "-Wno-unused-variable",
  211. "-Wno-unused-parameter",
  212. "-Wno-missing-field-initializers",
  213. "-Wno-uninitialized"
  214. ],
  215. }