Skip to content

Commit 9b8677c

Browse files
committed
crc
1 parent b799c1e commit 9b8677c

File tree

9 files changed

+1441
-361
lines changed

9 files changed

+1441
-361
lines changed

CMakeLists.txt

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,12 @@ file(GLOB PHOTON_SRC RELATIVE "${PROJECT_SOURCE_DIR}"
202202
rpc/*.cpp
203203
thread/*.cpp
204204
)
205+
if ((${ARCH} STREQUAL aarch64) OR (${ARCH} STREQUAL arm64))
206+
list(APPEND PHOTON_SRC common/checksum/crc64_ecma_refl_pmull.S)
207+
endif ()
208+
if ((${ARCH} STREQUAL x86_64))
209+
# TODO: add assembly code for fast CRC64 from ISA-L that needs *nasm* compiler
210+
endif ()
205211
if (APPLE)
206212
list(APPEND PHOTON_SRC io/kqueue.cpp)
207213
else ()
@@ -422,13 +428,14 @@ endif ()
422428

423429
################################################################################
424430

425-
# Install headers and libs
431+
# Install headers and test inputs
426432
add_custom_target(copy_includes ALL
427433
COMMAND ${CMAKE_COMMAND} -E copy_directory ${PROJECT_SOURCE_DIR}/include ${PROJECT_BINARY_DIR}/include
428-
COMMENT "Copying include files to build directory: ${PROJECT_BINARY_DIR}/include"
434+
COMMENT "Copying necessary files to build directory"
429435
)
430436
add_dependencies(copy_includes photon_static)
431437

438+
432439
install(DIRECTORY ${PROJECT_BINARY_DIR}/include/ DESTINATION include)
433440
install(FILES ${CMAKE_ARCHIVE_OUTPUT_DIRECTORY}/libphoton.a DESTINATION lib)
434441
install(PROGRAMS ${CMAKE_ARCHIVE_OUTPUT_DIRECTORY}/libphoton.so DESTINATION lib)

0 commit comments

Comments
 (0)