Welcome to mirror list, hosted at ThFree Co, Russian Federation.

CMakeLists.txt « platform - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 160c3f72ec60b81c10357b3db833a71f1af03bbd (plain)
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
include_directories(${OMIM_ROOT}/3party/jansson/src ${OMIM_ROOT}/platform)

set(
  SRC
  chunks_download_strategy.cpp
  chunks_download_strategy.hpp
  constants.hpp
  country_defines.cpp
  country_defines.hpp
  country_file.cpp
  country_file.hpp
  file_logging.cpp
  file_logging.hpp
  get_text_by_id.cpp
  get_text_by_id.hpp
  http_client.cpp
  http_client.hpp
  http_request.cpp
  http_request.hpp
  http_thread_callback.hpp
  local_country_file.cpp
  local_country_file.hpp
  local_country_file_utils.cpp
  local_country_file_utils.hpp
  location.hpp
  measurement_utils.cpp
  measurement_utils.hpp
  mwm_traits.cpp
  mwm_traits.hpp
  mwm_version.cpp
  mwm_version.hpp
  platform.cpp
  platform.hpp
  preferred_languages.cpp
  preferred_languages.hpp
  servers_list.cpp
  servers_list.hpp
  settings.cpp
  settings.hpp
)


if(${PLATFORM_IPHONE})
  set(
    SRC
    ${SRC}
    http_thread_apple.h
    http_thread_apple.mm
    http_client_apple.mm
    platform_ios.mm
    platform_unix_impl.cpp
    platform_unix_impl.hpp
  )
elseif(${PLATFORM_ANDROID})
  set(
    SRC
    ${SRC}
    platform_android.cpp
    platform_unix_impl.cpp
    platform_unix_impl.hpp
  )
else() # neither iPhone nor Android
  set(
    SRC
    ${SRC}
    location_service.cpp
    location_service.hpp
    platform_qt.cpp
    wifi_info.hpp
    wifi_location_service.cpp
  )

  if (${PLATFORM_WIN})
    set(
      SRC
      ${SRC}
      http_client_curl.cpp
      http_thread_qt.cpp
      http_thread_qt.hpp
      platform_win.cpp
      wifi_info_windows.cpp
    )
  elseif(${PLATFORM_MAC})
    set(
      SRC
      ${SRC}
      apple_location_service.mm
      http_client_apple.mm
      http_thread_apple.h
      http_thread_apple.mm
      platform_mac.mm
      platform_unix_impl.cpp
      platform_unix_impl.hpp
    )
  elseif(${PLATFORM_LINUX})
    set(
      SRC
      ${SRC}
      http_client_curl.cpp
      http_thread_qt.cpp
      http_thread_qt.hpp
      platform_linux.cpp
      platform_unix_impl.cpp
      platform_unix_impl.hpp
    )
  endif()
endif()



add_subdirectory(platform_tests_support)

add_library(platform ${SRC})

if (APPLE)
  target_compile_options(platform PUBLIC "-fobjc-arc")
endif()

omim_add_test_subdirectory(platform_tests)