File tree Expand file tree Collapse file tree 15 files changed +238
-23
lines changed Expand file tree Collapse file tree 15 files changed +238
-23
lines changed Original file line number Diff line number Diff line change @@ -49,16 +49,7 @@ if(ENABLE_SNMP)
49
49
endif ()
50
50
51
51
52
- # check_type_size(mode_t MODE_T)
53
- # check_type_size(off_t OFF_T)
54
- # check_type_size(size_t SIZE_T)
55
- # check_type_size(ssize_t SSIZE_T)
56
52
check_type_size (time_t SIZEOF_TIME_T )
57
53
add_compile_definitions (
58
54
SIZEOF_TIME_T=${SIZEOF_TIME_T}
59
55
)
60
- # check_type_size(uint8_t UINT8_T)
61
- # check_type_size(uint16_t UINT16_T)
62
- # check_type_size(uint32_t UINT32_T)
63
- # check_type_size(uint64_t UINT64_T)
64
- # check_type_size(uint64_t UINT64_T)
Original file line number Diff line number Diff line change @@ -38,6 +38,6 @@ foreach(NAME IN LISTS MESSAGES_LIBS)
38
38
BYPRODUCTS lib${NAME}.a
39
39
)
40
40
41
- add_library ("lib${NAME} " STATIC IMPORTED GLOBAL )
42
- set_target_properties ("lib${NAME} " PROPERTIES IMPORTED_LOCATION "${CMAKE_CURRENT_BINARY_DIR} /lib${NAME} .a" )
41
+ add_library ("lib${NAME} _messages " STATIC IMPORTED GLOBAL )
42
+ set_target_properties ("lib${NAME} _messages " PROPERTIES IMPORTED_LOCATION "${CMAKE_CURRENT_BINARY_DIR} /lib${NAME} .a" )
43
43
endforeach ()
Original file line number Diff line number Diff line change 1
- # Define the project targets
2
1
add_executable (ltfs main.c ltfs_fuse.c )
3
2
target_link_libraries (ltfs
4
3
Threads::Threads
@@ -17,8 +16,30 @@ target_compile_definitions(ltfs PRIVATE
17
16
)
18
17
19
18
add_subdirectory (libltfs )
19
+ add_subdirectory (iosched )
20
+ add_subdirectory (kmi )
21
+ add_subdirectory (tape_drivers )
22
+ add_subdirectory (tape_drivers/generic/file )
23
+ add_subdirectory (tape_drivers/generic/itdtimg )
24
+ add_subdirectory (utils )
25
+
26
+ option (ENABLE_LINTAPE "Support IBM's lin_tape driver or not" OFF )
27
+ if (ENABLE_LINTAPE )
28
+ add_subdirectory (tape_drivers/linux/lin_tape )
29
+ endif ()
30
+
31
+ if (LINUX )
32
+ add_subdirectory (tape_drivers/linux/sg )
33
+ elseif (APPLE )
34
+ add_subdirectory (tape_drivers/osx/iokit )
35
+ elseif (BSD )
36
+ if (CMAKE_SYSTEM_NAME STREQUAL "FreeBSD" )
37
+ add_subdirectory (tape_drivers/freebsd/cam )
38
+ elseif (CMAKE_SYSTEM_NAME STREQUAL "NetBSD" )
39
+ add_subdirectory (tape_drivers/netbsd/scsipi-ibmtape )
40
+ endif ()
41
+ endif ()
20
42
21
- # NOTE: Is this needed? cmake can add this feature using -DUSE_UNORM2
22
43
option (ICU_6X "Force to use ICU6x (unorm2) functions" OFF )
23
44
string (REPLACE "." ";" ICU_VERSION_ARRAY ${ICU_VERSION} )
24
45
list (GET ICU_VERSION_ARRAY 0 ICU_VERSION_MAJOR )
Original file line number Diff line number Diff line change
1
+ set (LIBIOSCHED_FCFS_SRCS fcfs.c )
2
+ add_library (libiosched_fcfs SHARED ${LIBIOSCHED_FCFS_SRCS} )
3
+ target_link_libraries (libiosched_fcfs
4
+ PkgConfig::FUSE
5
+ libltfs
6
+ libiosched_fcfs_messages
7
+ )
8
+ target_include_directories (libiosched_fcfs BEFORE PUBLIC ".." )
9
+
10
+ set (LIBIOSCHED_UNIFIED_SRCS
11
+ unified.c
12
+ cache_manager.c
13
+ )
14
+ add_library (libiosched_unified SHARED ${LIBIOSCHED_UNIFIED_SRCS} )
15
+ target_link_libraries (libiosched_unified
16
+ PkgConfig::FUSE
17
+ libltfs
18
+ libiosched_unified_messages
19
+ )
20
+ target_include_directories (libiosched_unified BEFORE PUBLIC ".." )
Original file line number Diff line number Diff line change
1
+ set (LIBKMI_SIMPLE_SRCS
2
+ simple.c
3
+ key_format_ltfs.c
4
+ )
5
+ add_library (libkmi_simple SHARED ${LIBKMI_SIMPLE_SRCS} )
6
+ target_link_libraries (libkmi_simple
7
+ PkgConfig::FUSE
8
+ libltfs
9
+ libkmi_simple_messages
10
+ )
11
+ target_include_directories (libkmi_simple BEFORE PUBLIC ".." )
12
+
13
+ set (LIBKMI_FLATFILE_SRCS
14
+ flatfile.c
15
+ key_format_ltfs.c
16
+ )
17
+ add_library (libkmi_flatfile SHARED ${LIBKMI_FLATFILE_SRCS} )
18
+ target_link_libraries (libkmi_flatfile
19
+ PkgConfig::FUSE
20
+ libltfs
21
+ libkmi_flatfile_messages
22
+ )
23
+ target_include_directories (libkmi_flatfile BEFORE PUBLIC ".." )
Original file line number Diff line number Diff line change 1
- cmake_minimum_required (VERSION 3.20 )
2
- project (libltfs,
3
- VERSION 2.5.0.0
4
- )
5
-
6
1
file (GLOB_RECURSE LIBLTFS_SRCS LIST_DIRECTORIES false "*.c" )
7
2
add_library (libltfs SHARED ${LIBLTFS_SRCS} )
8
- target_include_directories (libltfs BEFORE PUBLIC ".." )
3
+ set_property (TARGET libltfs PROPERTY OUTPUT_NAME ltfs )
4
+ target_include_directories (libltfs BEFORE PUBLIC ".." )
9
5
10
6
target_link_libraries (libltfs
11
7
Threads::Threads
12
8
PkgConfig::FUSE
13
9
LibXml2::LibXml2
14
10
PkgConfig::UUID
15
- libbin_ltfs
16
- liblibltfs
17
- libinternal_error
18
- libtape_common
11
+ libbin_ltfs_messages
12
+ liblibltfs_messages
13
+ libinternal_error_messages
14
+ libtape_common_messages
19
15
)
20
16
21
17
if (ENABLE_SNMP )
Original file line number Diff line number Diff line change
1
+ set (LIBTAPE_REED_SOLOMON_CRC_SRCS
2
+ reed_solomon_crc.c
3
+ )
4
+ add_library (libtape_reed_solomon_crc SHARED ${LIBTAPE_REED_SOLOMON_CRC_SRCS} )
5
+ target_link_libraries (libtape_reed_solomon_crc
6
+ PkgConfig::FUSE
7
+ libltfs
8
+ )
9
+
10
+ set (LIBTAPE_CRC32C_CRC_SRCS
11
+ crc32c_crc.c
12
+ )
13
+ add_library (libtape_crc32c_crc SHARED ${LIBTAPE_CRC32C_CRC_SRCS} )
14
+ target_link_libraries (libtape_crc32c_crc
15
+ PkgConfig::FUSE
16
+ libltfs
17
+ )
Original file line number Diff line number Diff line change
1
+ set (LIBTAPE_CAM_SRCS
2
+ cam_cmn.c
3
+ cam_tc.c
4
+ ../../vendor_compat.c
5
+ ../../ibm_tape.c
6
+ ../../hp_tape.c
7
+ ../../quantum_tape.c
8
+ )
9
+ add_library (libtape_cam SHARED ${LIBTAPE_CAM_SRCS} )
10
+ target_link_libraries (libtape_cam
11
+ PkgConfig::FUSE
12
+ libltfs
13
+ libtape_freebsd_cam_messages
14
+ libtape_reed_solomon_crc
15
+ libtape_crc32c_crc
16
+ )
17
+ target_include_directories (libtape_cam BEFORE PUBLIC "../.." )
Original file line number Diff line number Diff line change
1
+ set (LIBTAPE_FILE_SRCS
2
+ filedebug_tc.c
3
+ filedebug_conf_tc.c
4
+ ../../ibm_tape.c
5
+ )
6
+ add_library (libtape_file SHARED ${LIBTAPE_FILE_SRCS} )
7
+ target_link_libraries (libtape_file
8
+ PkgConfig::FUSE
9
+ libltfs
10
+ libtape_generic_file_messages
11
+ )
12
+ target_include_directories (libtape_file BEFORE PUBLIC "../.." )
Original file line number Diff line number Diff line change
1
+ set (LIBTAPE_ITDTIMG_SRCS
2
+ itdtimg_tc.c
3
+ ../../ibm_tape.c
4
+ )
5
+ add_library (libtape_itdtimg SHARED ${LIBTAPE_ITDTIMG_SRCS} )
6
+ target_link_libraries (libtape_itdtimg
7
+ PkgConfig::FUSE
8
+ libltfs
9
+ libtape_generic_itdtimg_messages
10
+ libtape_reed_solomon_crc
11
+ libtape_crc32c_crc
12
+ )
13
+ target_include_directories (libtape_itdtimg BEFORE PUBLIC "../.." )
You can’t perform that action at this time.
0 commit comments