~thomas-voss/location-service/fix-1347887

« back to all changes in this revision

Viewing changes to examples/standalone/connectivity/CMakeLists.txt

This MP consolidates multiple related changes together, with the goal of:

(1.) Make the service instance accessible via a cli. Useful for testing scenarios.
(2.) To cut down time-to-first-fix (ttff) by:
  (2.1) Leveraging SUPL and other supplementary data downloaded over ordinary data connections.
  (2.2) Enabling network-based positioning providers to acquire fast position estimates.

In more detail:

* Added tests for daemon and cli.
* Unified daemon and cli header and implementation files.
* Add a command-line interface to the service.
* Split up provider selection policy to rely on an interface ProviderEnumerator to ease in testing.
* Trimmed down on types.
* Removed connectivity API draft to prepare for simpler approach.
* Refactored includes.
* Added a configuration option to handle cell and wifi ID reporting.
* Add a mock for a connectivity API exposed to providers and reporters.
* Add units for connectivity api.
* Refactor cell class into namespace radio. Fixes: 1226204, 1248973, 1281817

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
cmake_minimum_required(VERSION 2.8)
 
2
 
 
3
project(connectivity)
 
4
 
 
5
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
 
6
 
 
7
find_package(PkgConfig)
 
8
find_package(Threads)
 
9
 
 
10
pkg_check_modules(
 
11
  DBUS_CPP 
 
12
  dbus-cpp REQUIRED)
 
13
 
 
14
pkg_check_modules(
 
15
  PROCESS_CPP 
 
16
  process-cpp REQUIRED)
 
17
 
 
18
pkg_check_modules(
 
19
  LOCATION_CONNECTIVITY 
 
20
  ubuntu-location-service-connectivity REQUIRED)
 
21
 
 
22
include_directories(
 
23
  ${DBUS_CPP_INCLUDE_DIRS}
 
24
  ${PROCESS_CPP_INCLUDE_DIRS}
 
25
  ${LOCATION_CONNECTIVITY_INCLUDE_DIRS})
 
26
 
 
27
add_executable(
 
28
  connectivity
 
29
 
 
30
  connectivity.cpp)
 
31
 
 
32
target_link_libraries(
 
33
  connectivity
 
34
 
 
35
  ${CMAKE_THREAD_LIBS_INIT}
 
36
 
 
37
  ${DBUS_CPP_LDFLAGS}
 
38
  ${PROCESS_CPP_LDFLAGS}
 
39
  ${LOCATION_CONNECTIVITY_LDFLAGS})
 
40
 
 
41