Debian Codegraph @

debian/patches/1001_reenable-taglib.patch

raw
1 Description: Build with taglib support.
2 Author: Mike Gabriel <[email protected]>
3 Forwarded: https://gitlab.com/ubports/development/apps/lomiri-filemanager-app/-/merge_requests/121
4
5 --- a/src/plugin/CMakeLists.txt
6 +++ b/src/plugin/CMakeLists.txt
7 @@ -1,6 +1,3 @@
8 -# Disable TagLib in folderlistmodel plugin
9 -ADD_DEFINITIONS(-DDO_NOT_USE_TAG_LIB)
10 -
11 add_subdirectory(folderlistmodel)
12 add_subdirectory(placesmodel)
13 add_subdirectory(archives)
14 --- a/CMakeLists.txt
15 +++ b/CMakeLists.txt
16 @@ -33,6 +33,8 @@
17 endif(SAMBA_INCLUDE_DIRS AND SAMBA_LIBRARIES)
18 endif()
19
20 +pkg_check_modules(TAG taglib)
21 +
22 # Standard install paths
23 include(GNUInstallDirs)
24
25 --- a/src/plugin/folderlistmodel/CMakeLists.txt
26 +++ b/src/plugin/folderlistmodel/CMakeLists.txt
27 @@ -103,10 +103,19 @@
28 ${folderlistmodel_SRCS}
29 )
30
31 -target_link_libraries(folderlistmodel Qt5::Gui Qt5::Qml Qt5::Quick Qt5::Widgets)
32
33 -target_include_directories(folderlistmodel PUBLIC ${SAMBA_INCLUDE_DIRS})
34 -target_link_libraries(folderlistmodel ${SAMBA_LIBRARIES})
35 +target_include_directories(folderlistmodel PUBLIC
36 + ${SAMBA_INCLUDE_DIRS}
37 + ${TAG_INCLUDE_DIRS}
38 +)
39 +target_link_libraries(folderlistmodel
40 + Qt5::Gui
41 + Qt5::Qml
42 + Qt5::Quick
43 + Qt5::Widgets
44 + ${SAMBA_LIBRARIES}
45 + ${TAG_LIBRARIES}
46 +)
47
48 # Copy the plugin, the qmldir file and other assets to the build dir for running in QtCreator
49 if(NOT "${CMAKE_CURRENT_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_BINARY_DIR}")