Changeset View
Changeset View
Standalone View
Standalone View
src/CMakeLists.txt
Show All 40 Lines | 38 | set(elisaLib_SOURCES | |||
---|---|---|---|---|---|
41 | ) | 41 | ) | ||
42 | else() | 42 | else() | ||
43 | set(elisaLib_SOURCES | 43 | set(elisaLib_SOURCES | ||
44 | ${elisaLib_SOURCES} | 44 | ${elisaLib_SOURCES} | ||
45 | audiowrapper_qtmultimedia.cpp | 45 | audiowrapper_qtmultimedia.cpp | ||
46 | ) | 46 | ) | ||
47 | endif() | 47 | endif() | ||
48 | 48 | | |||
49 | if (ANDROID) | ||||
50 | set(elisaLib_SOURCES | ||||
51 | ${elisaLib_SOURCES} | ||||
52 | android/androidmusiclistener.cpp | ||||
53 | ) | ||||
54 | endif() | ||||
55 | | ||||
49 | if (KF5KIO_FOUND) | 56 | if (KF5KIO_FOUND) | ||
50 | set(elisaLib_SOURCES | 57 | set(elisaLib_SOURCES | ||
51 | ${elisaLib_SOURCES} | 58 | ${elisaLib_SOURCES} | ||
52 | models/filebrowsermodel.cpp | 59 | models/filebrowsermodel.cpp | ||
53 | models/filebrowserproxymodel.cpp | 60 | models/filebrowserproxymodel.cpp | ||
54 | ) | 61 | ) | ||
55 | endif() | 62 | endif() | ||
56 | 63 | | |||
▲ Show 20 Lines • Show All 143 Lines • ▼ Show 20 Line(s) | 204 | target_include_directories(elisaLib | |||
200 | ) | 207 | ) | ||
201 | 208 | | |||
202 | target_link_libraries(elisaLib | 209 | target_link_libraries(elisaLib | ||
203 | LINK_PRIVATE | 210 | LINK_PRIVATE | ||
204 | ${LIBVLC_LIBRARY} | 211 | ${LIBVLC_LIBRARY} | ||
205 | ) | 212 | ) | ||
206 | endif() | 213 | endif() | ||
207 | 214 | | |||
215 | if (ANDROID) | ||||
216 | target_link_libraries(elisaLib | ||||
217 | LINK_PUBLIC | ||||
218 | Qt5::AndroidExtras | ||||
219 | ) | ||||
220 | endif() | ||||
221 | | ||||
208 | generate_export_header(elisaLib BASE_NAME ElisaLib EXPORT_FILE_NAME elisaLib_export.h) | 222 | generate_export_header(elisaLib BASE_NAME ElisaLib EXPORT_FILE_NAME elisaLib_export.h) | ||
209 | 223 | | |||
210 | set_target_properties(elisaLib PROPERTIES | 224 | set_target_properties(elisaLib PROPERTIES | ||
211 | VERSION 0.1 | 225 | VERSION 0.1 | ||
212 | SOVERSION 0 | 226 | SOVERSION 0 | ||
213 | EXPORT_NAME ElisaLib | 227 | EXPORT_NAME ElisaLib | ||
214 | ) | 228 | ) | ||
215 | 229 | | |||
▲ Show 20 Lines • Show All 63 Lines • ▼ Show 20 Line(s) | 292 | set(elisa_SOURCES | |||
279 | main.cpp | 293 | main.cpp | ||
280 | 294 | | |||
281 | windows/WindowsTheme.qml | 295 | windows/WindowsTheme.qml | ||
282 | windows/PlatformIntegration.qml | 296 | windows/PlatformIntegration.qml | ||
283 | 297 | | |||
284 | android/ElisaMainWindow.qml | 298 | android/ElisaMainWindow.qml | ||
285 | android/AndroidTheme.qml | 299 | android/AndroidTheme.qml | ||
286 | android/PlatformIntegration.qml | 300 | android/PlatformIntegration.qml | ||
301 | android/AlbumsView.qml | ||||
302 | android/ArtistsView.qml | ||||
303 | android/TracksView.qml | ||||
304 | android/GenresView.qml | ||||
287 | 305 | | |||
288 | qml/ElisaMainWindow.qml | 306 | qml/ElisaMainWindow.qml | ||
289 | qml/ApplicationMenu.qml | 307 | qml/ApplicationMenu.qml | ||
290 | qml/BaseTheme.qml | 308 | qml/BaseTheme.qml | ||
291 | qml/Theme.qml | 309 | qml/Theme.qml | ||
292 | qml/PlatformIntegration.qml | 310 | qml/PlatformIntegration.qml | ||
293 | qml/LabelWithToolTip.qml | 311 | qml/LabelWithToolTip.qml | ||
294 | 312 | | |||
Show All 27 Lines | |||||
322 | qml/MediaTrackMetadataView.qml | 340 | qml/MediaTrackMetadataView.qml | ||
323 | qml/GridBrowserView.qml | 341 | qml/GridBrowserView.qml | ||
324 | qml/GridBrowserDelegate.qml | 342 | qml/GridBrowserDelegate.qml | ||
325 | qml/ListBrowserView.qml | 343 | qml/ListBrowserView.qml | ||
326 | qml/FileBrowserDelegate.qml | 344 | qml/FileBrowserDelegate.qml | ||
327 | qml/FileBrowserView.qml | 345 | qml/FileBrowserView.qml | ||
328 | qml/ScrollHelper.qml | 346 | qml/ScrollHelper.qml | ||
329 | qml/FlatButtonWithToolTip.qml | 347 | qml/FlatButtonWithToolTip.qml | ||
348 | | ||||
349 | qml/AlbumsView.qml | ||||
350 | qml/ArtistsView.qml | ||||
351 | qml/TracksView.qml | ||||
352 | qml/GenresView.qml | ||||
330 | ) | 353 | ) | ||
331 | 354 | | |||
332 | qt5_add_resources(elisa_SOURCES resources.qrc) | 355 | qt5_add_resources(elisa_SOURCES resources.qrc) | ||
333 | set_property(SOURCE qrc_resources.cpp PROPERTY SKIP_AUTOMOC ON) | 356 | set_property(SOURCE qrc_resources.cpp PROPERTY SKIP_AUTOMOC ON) | ||
334 | 357 | | |||
335 | set(elisa_ICONS_PNG | 358 | set(elisa_ICONS_PNG | ||
336 | ../icons/128-apps-elisa.png | 359 | ../icons/128-apps-elisa.png | ||
337 | ../icons/64-apps-elisa.png | 360 | ../icons/64-apps-elisa.png | ||
338 | ../icons/48-apps-elisa.png | 361 | ../icons/48-apps-elisa.png | ||
339 | ../icons/32-apps-elisa.png | 362 | ../icons/32-apps-elisa.png | ||
340 | ../icons/22-apps-elisa.png | 363 | ../icons/22-apps-elisa.png | ||
341 | ../icons/16-apps-elisa.png | 364 | ../icons/16-apps-elisa.png | ||
342 | ) | 365 | ) | ||
343 | 366 | | |||
344 | # add icons to application sources, to have them bundled | 367 | # add icons to application sources, to have them bundled | ||
345 | ecm_add_app_icon(elisa_SOURCES ICONS ${elisa_ICONS_PNG}) | 368 | ecm_add_app_icon(elisa_SOURCES ICONS ${elisa_ICONS_PNG}) | ||
346 | 369 | | |||
347 | add_executable(elisa ${elisa_SOURCES}) | 370 | add_executable(elisa ${elisa_SOURCES}) | ||
348 | 371 | | |||
349 | target_include_directories(elisa PRIVATE ${KDSoap_INCLUDE_DIRS}) | 372 | target_include_directories(elisa PRIVATE ${KDSoap_INCLUDE_DIRS}) | ||
350 | 373 | | |||
351 | target_link_libraries(elisa | 374 | target_link_libraries(elisa | ||
352 | LINK_PRIVATE | 375 | LINK_PRIVATE | ||
353 | elisaLib | 376 | elisaLib | ||
354 | Qt5::Widgets Qt5::QuickControls2 Qt5::Svg | 377 | Qt5::Widgets Qt5::QuickControls2 | ||
355 | KF5::I18n KF5::CoreAddons KF5::ConfigCore KF5::ConfigGui | 378 | KF5::I18n KF5::CoreAddons KF5::ConfigCore KF5::ConfigGui | ||
356 | ) | 379 | ) | ||
357 | 380 | | |||
358 | if (ANDROID) | 381 | if (ANDROID) | ||
359 | target_link_libraries(elisa | 382 | target_link_libraries(elisa | ||
360 | LINK_PRIVATE | 383 | LINK_PRIVATE | ||
361 | Qt5::AndroidExtras | 384 | Qt5::AndroidExtras Qt5::Svg Qt5::Sql Qt5::Concurrent KF5::Kirigami2 | ||
362 | ) | 385 | ) | ||
363 | endif() | 386 | endif() | ||
364 | 387 | | |||
365 | if (KF5Crash_FOUND) | 388 | if (KF5Crash_FOUND) | ||
366 | target_link_libraries(elisa | 389 | target_link_libraries(elisa | ||
367 | LINK_PRIVATE | 390 | LINK_PRIVATE | ||
368 | KF5::Crash | 391 | KF5::Crash | ||
369 | ) | 392 | ) | ||
▲ Show 20 Lines • Show All 41 Lines • ▼ Show 20 Line(s) | |||||
411 | if (KF5FileMetaData_FOUND) | 434 | if (KF5FileMetaData_FOUND) | ||
412 | target_link_libraries(elisaImport | 435 | target_link_libraries(elisaImport | ||
413 | LINK_PRIVATE | 436 | LINK_PRIVATE | ||
414 | KF5::FileMetaData | 437 | KF5::FileMetaData | ||
415 | ) | 438 | ) | ||
416 | endif() | 439 | endif() | ||
417 | 440 | | |||
418 | set(QML_IMPORT_PATH ${CMAKE_BINARY_DIR}/bin CACHE INTERNAL "qml import path" FORCE) | 441 | set(QML_IMPORT_PATH ${CMAKE_BINARY_DIR}/bin CACHE INTERNAL "qml import path" FORCE) | ||
442 | | ||||
443 | if (ANDROID) | ||||
astippich: This causes cmake to fail on linux | |||||
Are you sure that it fails ? mgallien: Are you sure that it fails ?
I fail to understand how this could fail. | |||||
444 | kirigami_package_breeze_icons(ICONS elisa) | ||||
445 | endif() |
This causes cmake to fail on linux