File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 11cmake_minimum_required (VERSION 3.20)
22project (ltfs,
3- VERSION "2.5.0.0"
3+ # TODO: Find a better solution to mark this version as different from the official build
4+ VERSION "2.5.0.9999"
45)
56include (CheckSymbolExists REQUIRED)
67include (CheckTypeSize REQUIRED)
@@ -29,7 +30,8 @@ endif()
2930add_subdirectory (messages)
3031add_subdirectory (src)
3132
32-
33+ # TODO: Improve the use of SNMP, right now this flags are not added to the build.
34+ # TODO: Test the use of SNMP
3335option (ENABLE_SNMP "Force to use ICU6x (unorm2) functions" OFF )
3436if (ENABLE_SNMP)
3537 pkg_check_modules(SNMP REQUIRED "net-snmp>=5.3" IMPORTED_TARGET)
Original file line number Diff line number Diff line change 1- # file(GLOB _MESSAGES_LIBS RELATIVE "." "*/")
21set (MESSAGES_LIBS
32 bin_ltfs
43 bin_ltfsck
@@ -22,22 +21,23 @@ set(MESSAGES_LIBS
2221foreach (NAME IN LISTS MESSAGES_LIBS)
2322 file (GLOB SRCS "${NAME} /*.txt" )
2423
24+ # Compile the message resources using genrb and pkgdata see make_message_src.sh
2525 add_custom_command (
2626 OUTPUT "res_${NAME} /lib${NAME} .a"
27- # ALL
2827 COMMAND mkdir -p res_${NAME}
2928 COMMAND ${ICU_GENRB_EXECUTABLE} -q ${SRCS} -d res_${NAME} 1> /dev/null
3029 COMMAND find res_${NAME} -name *.res > res_${NAME} /paths .txt
3130 COMMAND ${ICU_PKGDATA_EXECUTABLE} -d res_${NAME} / -m static -p ${NAME} -q res_${NAME} /paths .txt 1> /dev/null
3231 BYPRODUCTS "res_${NAME} "
33- # SOURCES
3432 )
33+ # Add the command as a target to be build when all is invoked
3534 add_custom_target ("${NAME} .a" ALL
3635 cp res_${NAME} /lib${NAME} .a lib${NAME} .a
3736 DEPENDS "res_${NAME} /lib${NAME} .a"
3837 BYPRODUCTS lib${NAME} .a
3938 )
4039
40+ # Define the library as an imported CMake lib
4141 add_library ("lib${NAME} _messages" STATIC IMPORTED GLOBAL )
4242 set_target_properties ("lib${NAME} _messages" PROPERTIES IMPORTED_LOCATION "${CMAKE_CURRENT_BINARY_DIR} /lib${NAME} .a" )
4343endforeach ()
Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ add_library(libltfs SHARED ${LIBLTFS_SRCS})
33set_property (TARGET libltfs PROPERTY OUTPUT_NAME ltfs)
44target_include_directories (libltfs BEFORE PUBLIC ".." )
55
6+ # TODO: Fix bundle errors.
7+ # ICU cannot find the message bundles for some weird reason
68target_link_libraries (libltfs
79 Threads::Threads
810 PkgConfig::FUSE
You can’t perform that action at this time.
0 commit comments