blob: 70a1874779df504b68db5668c3254d4afea5f554 (
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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
|
project(desktop)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
QT5_ADD_RESOURCES(RES_SOURCES res/resources.qrc)
set(RESOURCES_FOLDER ${CMAKE_BINARY_DIR}/${PROJECT_NAME}.app/Contents/Resources)
set(DATA_DIR ${OMIM_ROOT}/data)
execute_process(
COMMAND mkdir -p ${RESOURCES_FOLDER}
)
if (BUILD_DESIGNER)
execute_process(
COMMAND cp -rf ${OMIM_ROOT}/data/resources-mdpi_clear/ ${OMIM_ROOT}/data/resources-mdpi_design/
COMMAND cp -rf ${OMIM_ROOT}/data/resources-hdpi_clear/ ${OMIM_ROOT}/data/resources-hdpi_design/
COMMAND cp -rf ${OMIM_ROOT}/data/resources-xhdpi_clear/ ${OMIM_ROOT}/data/resources-xhdpi_design/
COMMAND cp -rf ${OMIM_ROOT}/data/resources-xxhdpi_clear/ ${OMIM_ROOT}/data/resources-xxhdpi_design/
COMMAND cp -rf ${OMIM_ROOT}/data/resources-6plus_clear/ ${OMIM_ROOT}/data/resources-6plus_design/
COMMAND cp -f ${OMIM_ROOT}/data/drules_proto_clear.bin ${OMIM_ROOT}/data/drules_proto_design.bin
COMMAND cp -f ${OMIM_ROOT}/data/colors.txt ${OMIM_ROOT}/data/colors_design.txt
COMMAND cp -f ${OMIM_ROOT}/data/patterns.txt ${OMIM_ROOT}/data/patterns_design.txt
)
endif()
include_directories(
${OMIM_ROOT}/3party/glm
${OMIM_ROOT}/3party/gflags/src
${CMAKE_CURRENT_BINARY_DIR}
)
set(
SRC
about.cpp
about.hpp
build_style/build_common.cpp
build_style/build_common.h
build_style/build_drules.cpp
build_style/build_drules.h
build_style/build_phone_pack.cpp
build_style/build_phone_pack.h
build_style/build_skins.cpp
build_style/build_skins.h
build_style/build_statistics.cpp
build_style/build_statistics.h
build_style/build_style.cpp
build_style/build_style.h
build_style/run_tests.cpp
build_style/run_tests.h
create_feature_dialog.cpp
create_feature_dialog.hpp
draw_widget.cpp
draw_widget.hpp
editor_dialog.cpp
editor_dialog.hpp
info_dialog.cpp
info_dialog.hpp
main.cpp
mainwindow.cpp
mainwindow.hpp
osm_auth_dialog.cpp
osm_auth_dialog.hpp
place_page_dialog.cpp
place_page_dialog.hpp
preferences_dialog.cpp
preferences_dialog.hpp
search_panel.cpp
search_panel.hpp
update_dialog.cpp
update_dialog.hpp
)
omim_add_executable(${PROJECT_NAME} MACOSX_BUNDLE ${RES_SOURCES} ${SRC})
omim_link_libraries(
${PROJECT_NAME}
qt_common
map
drape_frontend
routing
search
storage
tracking
traffic
routing_common
ugc
indexer
drape
partners_api
local_ads
platform
editor
geometry
coding
base
freetype
expat
gflags
icu
agg
jansson
protobuf
osrm
stats_client
minizip
succinct
pugixml
oauthcpp
opening_hours
stb_image
sdf_image
${Qt5Gui_LIBRARIES}
${Qt5Network_LIBRARIES}
${Qt5Widgets_LIBRARIES}
${LIBZ}
)
link_opengl(${PROJECT_NAME})
link_qt5_core(${PROJECT_NAME})
if (PLATFORM_MAC)
target_link_libraries(
${PROJECT_NAME}
"-framework Foundation"
"-framework CoreLocation"
"-framework CoreWLAN"
"-framework SystemConfiguration"
"-framework CFNetwork"
)
set_target_properties(
${PROJECT_NAME}
PROPERTIES
MACOSX_BUNDLE_INFO_PLIST ${PROJECT_SOURCE_DIR}/res/Info.plist
)
endif()
function(copy_resources)
set(files "")
foreach(file ${ARGN})
execute_process(
COMMAND cp -r ${DATA_DIR}/${file} ${RESOURCES_FOLDER}
)
endforeach()
endfunction()
copy_resources(
countries-strings
resources-default
resources-mdpi_clear
cuisine-strings
eula.html
categories.txt
classificator.txt
colors.txt
copyright.html
countries.txt
countries_obsolete.txt
drules_proto_clear.bin
drules_proto_dark.bin
drules_proto_vehicle_clear.bin
drules_proto_vehicle_dark.bin
editor.config
fonts_blacklist.txt
fonts_whitelist.txt
packed_polygons.bin
packed_polygons_obsolete.bin
patterns.txt
types.txt
unicode_blocks.txt
World.mwm
WorldCoasts.mwm
WorldCoasts_obsolete.mwm
icudt57l.dat
local_ads_symbols.txt
01_dejavusans.ttf
02_droidsans-fallback.ttf
03_jomolhari-id-a3d.ttf
04_padauk.ttf
05_khmeros.ttf
06_code2000.ttf
07_roboto_medium.ttf
../tools/shaders_compiler
)
if (BUILD_DESIGNER)
copy_resources(
resources-mdpi_design
resources-hdpi_design
resources-xhdpi_design
resources-xxhdpi_design
resources-6plus_design
colors_design.txt
patterns_design.txt
drules_proto_design.bin
)
endif()
add_subdirectory(qt_common)
|