~ci-train-bot/location-service/location-service-ubuntu-yakkety-1895

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
option(
    LOCATION_SERVICE_ENABLE_GPS_PROVIDER
    "Enable location providers relying on the Android HAL to connect to GPS HW"
    ON
)

if (LOCATION_SERVICE_ENABLE_GPS_PROVIDER)
  find_file(
    UBUNTU_APPLICATION_GPS_H ubuntu_application_gps.h
    NAMES ubuntu/application/ubuntu_application_gps.h
  )

  if (UBUNTU_APPLICATION_GPS_H)
    message(STATUS "Enabling GPS location provider")

    add_library(gps provider.cpp)

    target_link_libraries(gps ubuntu_application_api)
  
    set(
      ENABLED_PROVIDER_TARGETS
      ${ENABLED_PROVIDER_TARGETS} gps
      PARENT_SCOPE)

    set(
      ENABLED_PROVIDER_TARGETS_DEFINITIONS
      -DCOM_UBUNTU_LOCATION_SERVICE_PROVIDERS_GPS ${ENABLED_PROVIDER_TARGETS_DEFINITIONS}
      PARENT_SCOPE
    )
  endif (UBUNTU_APPLICATION_GPS_H)
endif (LOCATION_SERVICE_ENABLE_GPS_PROVIDER)