forked from finos/perspective
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
…inos#2076, update python lints for newest black version
- Loading branch information
Showing
7 changed files
with
77 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
cmake_minimum_required(VERSION 3.7.2) | ||
|
||
# ################################################## | ||
# Helper to grab dependencies from remote sources # | ||
# ################################################## | ||
function(psp_build_dep name cmake_file) | ||
if(EXISTS ${CMAKE_BINARY_DIR}/${name}-build) | ||
psp_build_message("${Cyan}Dependency found - not rebuilding - ${CMAKE_BINARY_DIR}/${name}-build${ColorReset}") | ||
else() | ||
configure_file(${cmake_file} ${name}-download/CMakeLists.txt) | ||
|
||
execute_process(COMMAND ${CMAKE_COMMAND} -G "${CMAKE_GENERATOR}" . | ||
RESULT_VARIABLE result | ||
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/${name}-download) | ||
|
||
if(result) | ||
message(FATAL_ERROR "CMake step for ${name} failed: ${result}") | ||
endif() | ||
|
||
execute_process(COMMAND ${CMAKE_COMMAND} --build . | ||
RESULT_VARIABLE result | ||
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/${name}-download) | ||
|
||
if(result) | ||
message(FATAL_ERROR "Build step for ${name} failed: ${result}") | ||
endif() | ||
endif() | ||
|
||
if(${name} STREQUAL arrow) | ||
# Overwrite arrow's CMakeLists with our custom, minimal CMakeLists. | ||
configure_file(${PSP_CMAKE_MODULE_PATH}/${name}/CMakeLists.txt ${CMAKE_BINARY_DIR}/${name}-src/cpp/ COPYONLY) | ||
configure_file(${PSP_CMAKE_MODULE_PATH}/${name}/config.h ${CMAKE_BINARY_DIR}/${name}-src/cpp/src/arrow/util/ COPYONLY) | ||
add_subdirectory(${CMAKE_BINARY_DIR}/${name}-src/cpp/ | ||
${CMAKE_BINARY_DIR}/${name}-build | ||
EXCLUDE_FROM_ALL) | ||
|
||
include_directories(${CMAKE_BINARY_DIR}/${name}-src/cpp/src/) | ||
elseif(${name} STREQUAL exprtk) | ||
# no cmakelists - just include the header | ||
include_directories(${CMAKE_BINARY_DIR}/${name}-src) | ||
elseif(${name} STREQUAL re2) | ||
# Overwrite re2's CMakeLists with our custom CMakeLists. | ||
configure_file(${PSP_CMAKE_MODULE_PATH}/${name}/CMakeLists.txt ${CMAKE_BINARY_DIR}/${name}-src/ COPYONLY) | ||
include_directories(${CMAKE_BINARY_DIR}/${name}-src) | ||
|
||
add_subdirectory(${CMAKE_BINARY_DIR}/${name}-src | ||
${CMAKE_BINARY_DIR}/${name}-build | ||
EXCLUDE_FROM_ALL) | ||
else() | ||
add_subdirectory(${CMAKE_BINARY_DIR}/${name}-src | ||
${CMAKE_BINARY_DIR}/${name}-build | ||
EXCLUDE_FROM_ALL) | ||
|
||
include_directories(${CMAKE_BINARY_DIR}/${name}-src/extras/${name}/include) | ||
include_directories(${CMAKE_BINARY_DIR}/${name}-src/include) | ||
include_directories(${CMAKE_BINARY_DIR}/${name}-src) | ||
endif() | ||
|
||
if(NOT PSP_WASM_BUILD AND (MACOS OR NOT MANYLINUX)) | ||
if(${name} STREQUAL arrow OR ${name} STREQUAL flatbuffers OR ${name} STREQUAL double-conversion OR ${name} STREQUAL re2) | ||
target_compile_options(${name} PRIVATE -fvisibility=hidden) | ||
endif() | ||
endif() | ||
endfunction() | ||
|
||
# ############################# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters