Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions scripts/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,11 @@ host_target(gen-crc64be gen-crc64be.c)
macro(generate_crctbl proc path name table rows poly trans)
add_custom_command(
TARGET ${proc} POST_BUILD
COMMAND bash -c \"
mkdir -p ${BFDEV_GENERATED_PATH}/bfdev/crypto &&
${PROJECT_BINARY_DIR}/scripts/${proc}
${name} ${table} ${rows} ${poly} ${trans} >
${BFDEV_GENERATED_PATH}/bfdev/crypto/${path}
\"
COMMAND ${CMAKE_COMMAND} -E make_directory
${BFDEV_GENERATED_PATH}/bfdev/crypto
COMMAND ${PROJECT_BINARY_DIR}/scripts/${proc}
${name} ${table} ${rows} ${poly} ${trans} >
${BFDEV_GENERATED_PATH}/bfdev/crypto/${path}
)
endmacro()

Expand Down
4 changes: 2 additions & 2 deletions scripts/platform.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ macro(print_type output name)
endif()
endmacro()

if(CMAKE_SYSTEM_NAME MATCHES "Linux|Darwin|GNU")
if(CMAKE_SYSTEM_NAME MATCHES "Linux|Android|Darwin|GNU")
set(BFDEV_PORT_TYPE "posix")
endif()

if(CMAKE_SYSTEM_NAME MATCHES "MSYS|CYGWIN")
if(CMAKE_SYSTEM_NAME MATCHES "Windows|MSYS|CYGWIN")
set(BFDEV_PORT_TYPE "posix")
endif()

Expand Down
Loading