blob: 18291f64b5cc9a9a26bb25364e3c9333c210e36a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
## erasure code plugins
set(erasure_plugin_dir ${CEPH_INSTALL_PKGLIBDIR}/erasure-code)
#jerasure subdir must be before shec so jerasure & neon obj libs are declared
include_directories(SYSTEM jerasure/jerasure/include)
include_directories(SYSTEM jerasure/gf-complete/include)
include_directories(jerasure)
# legacy jerasure flavors. these are left here for backward compatibility
# and should be removed in future versions
set(jerasure_legacy_flavors generic)
if(HAVE_ARM)
list(APPEND jerasure_legacy_flavors neon)
endif()
if(HAVE_INTEL)
list(APPEND jerasure_legacy_flavors sse3 sse4)
endif()
add_subdirectory(jerasure)
add_subdirectory(lrc)
add_subdirectory(shec)
add_subdirectory(clay)
if(HAVE_NASM_X64_AVX2 OR HAVE_ARMV8_SIMD)
set(WITH_EC_ISA_PLUGIN TRUE CACHE BOOL "")
endif()
if(WITH_EC_ISA_PLUGIN)
add_subdirectory(isa)
set(EC_ISA_LIB ec_isa)
endif()
add_library(erasure_code STATIC ErasureCodePlugin.cc)
target_link_libraries(erasure_code $<$<PLATFORM_ID:Windows>:dlfcn_win32>
${CMAKE_DL_LIBS})
add_library(erasure_code_objs OBJECT ErasureCode.cc)
add_custom_target(erasure_code_plugins DEPENDS
${EC_ISA_LIB}
ec_lrc
ec_jerasure
ec_shec
ec_clay)
|