Skip to content

Commit 070c83b

Browse files
committed
chore: add build specific version number and add comments
1 parent 1e730cc commit 070c83b

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
cmake_minimum_required(VERSION 3.20)
22
project(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
)
56
include(CheckSymbolExists REQUIRED)
67
include(CheckTypeSize REQUIRED)
@@ -29,7 +30,8 @@ endif()
2930
add_subdirectory(messages)
3031
add_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
3335
option(ENABLE_SNMP "Force to use ICU6x (unorm2) functions" OFF)
3436
if(ENABLE_SNMP)
3537
pkg_check_modules(SNMP REQUIRED "net-snmp>=5.3" IMPORTED_TARGET)

messages/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# file(GLOB _MESSAGES_LIBS RELATIVE "." "*/")
21
set(MESSAGES_LIBS
32
bin_ltfs
43
bin_ltfsck
@@ -22,22 +21,23 @@ set(MESSAGES_LIBS
2221
foreach(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")
4343
endforeach()

src/libltfs/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ add_library(libltfs SHARED ${LIBLTFS_SRCS})
33
set_property(TARGET libltfs PROPERTY OUTPUT_NAME ltfs)
44
target_include_directories(libltfs BEFORE PUBLIC "..")
55

6+
# TODO: Fix bundle errors.
7+
# ICU cannot find the message bundles for some weird reason
68
target_link_libraries(libltfs
79
Threads::Threads
810
PkgConfig::FUSE

0 commit comments

Comments
 (0)