Skip to content

Commit

Permalink
[FEA] Make maplibre-gl work in @rapidsai/jsdom (#433)
Browse files Browse the repository at this point in the history
  • Loading branch information
trxcllnt authored Sep 16, 2022
1 parent e8a8b1c commit 5339c0a
Show file tree
Hide file tree
Showing 199 changed files with 3,684 additions and 3,014 deletions.
7 changes: 4 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,19 @@

.env
.creds
.vscode
.vscode/server
.vscode/server-insiders
.cmake-js
modules/*/include/napi.h
modules/*/include/napi-inl.h
modules/*/include/napi-inl.deprecated.h
modules/*/include/node_api.h

modules/demo/**/*/data
modules/demo/**/*/data/*

modules/**/.eslintrc.js

modules/**/notebooks/data
modules/**/notebooks/data/*

internal/*

Expand Down
72 changes: 38 additions & 34 deletions modules/core/cmake/Modules/ConfigureArrow.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -86,45 +86,49 @@ function(find_and_configure_arrow VERSION BUILD_STATIC ENABLE_S3 ENABLE_ORC ENAB
set(BUILD_WARNING_LEVEL "PRODUCTION" PARENT_SCOPE)
set(BUILD_WARNING_LEVEL "PRODUCTION" CACHE STRING "" FORCE)

rapids_cpm_find(
Arrow ${VERSION}
_get_update_disconnected_state(Arrow ${VERSION} UPDATE_DISCONNECTED)

rapids_cpm_find( Arrow ${VERSION}
GLOBAL_TARGETS arrow_shared arrow_static
parquet_shared parquet_static
arrow_cuda_shared arrow_cuda_static
arrow_dataset_shared arrow_dataset_static
CPM_ARGS
GIT_REPOSITORY https://github.com/apache/arrow.git
GIT_TAG apache-arrow-${VERSION}
GIT_SHALLOW TRUE SOURCE_SUBDIR cpp
OPTIONS "CMAKE_VERBOSE_MAKEFILE ON"
"CUDA_USE_STATIC_CUDA_RUNTIME OFF"
"ARROW_IPC ON"
"ARROW_CUDA ON"
"ARROW_DATASET ON"
"ARROW_WITH_BACKTRACE ON"
"ARROW_CXXFLAGS -w"
"ARROW_JEMALLOC OFF"
"ARROW_S3 ${ENABLE_S3}"
"ARROW_ORC ${ENABLE_ORC}"
# e.g. needed by blazingsql-io
${ARROW_PARQUET_OPTIONS}
"ARROW_PARQUET ${ENABLE_PARQUET}"
${ARROW_PYTHON_OPTIONS}
# Arrow modifies CMake's GLOBAL RULE_LAUNCH_COMPILE unless this is off
"ARROW_USE_CCACHE OFF"
"ARROW_POSITION_INDEPENDENT_CODE ON"
"ARROW_ARMV8_ARCH ${ARROW_ARMV8_ARCH}"
"ARROW_SIMD_LEVEL ${ARROW_SIMD_LEVEL}"
"ARROW_BUILD_STATIC ${ARROW_BUILD_STATIC}"
"ARROW_BUILD_SHARED ${ARROW_BUILD_SHARED}"
"ARROW_DEPENDENCY_USE_SHARED ${ARROW_BUILD_SHARED}"
"ARROW_BOOST_USE_SHARED ${ARROW_BUILD_SHARED}"
"ARROW_BROTLI_USE_SHARED ${ARROW_BUILD_SHARED}"
"ARROW_GFLAGS_USE_SHARED ${ARROW_BUILD_SHARED}"
"ARROW_GRPC_USE_SHARED ${ARROW_BUILD_SHARED}"
"ARROW_PROTOBUF_USE_SHARED ${ARROW_BUILD_SHARED}"
"ARROW_ZSTD_USE_SHARED ${ARROW_BUILD_SHARED}"
"xsimd_SOURCE AUTO"
${UPDATE_DISCONNECTED}
# EXCLUDE_FROM_ALL TRUE
GIT_REPOSITORY https://github.com/apache/arrow.git
GIT_TAG apache-arrow-${VERSION}
GIT_SHALLOW TRUE
SOURCE_SUBDIR cpp
OPTIONS "CMAKE_VERBOSE_MAKEFILE ON"
"CUDA_USE_STATIC_CUDA_RUNTIME ON"
"ARROW_IPC ON"
"ARROW_CUDA ON"
"ARROW_DATASET ON"
"ARROW_WITH_BACKTRACE ON"
"ARROW_CXXFLAGS -w"
"ARROW_JEMALLOC OFF"
"ARROW_S3 ${ENABLE_S3}"
"ARROW_ORC ${ENABLE_ORC}"
# e.g. needed by blazingsql-io
${ARROW_PARQUET_OPTIONS}
"ARROW_PARQUET ${ENABLE_PARQUET}"
${ARROW_PYTHON_OPTIONS}
# Arrow modifies CMake's GLOBAL RULE_LAUNCH_COMPILE unless this is off
"ARROW_USE_CCACHE OFF"
"ARROW_POSITION_INDEPENDENT_CODE ON"
"ARROW_ARMV8_ARCH ${ARROW_ARMV8_ARCH}"
"ARROW_SIMD_LEVEL ${ARROW_SIMD_LEVEL}"
"ARROW_BUILD_STATIC ${ARROW_BUILD_STATIC}"
"ARROW_BUILD_SHARED ${ARROW_BUILD_SHARED}"
"ARROW_DEPENDENCY_USE_SHARED ${ARROW_BUILD_SHARED}"
"ARROW_BOOST_USE_SHARED ${ARROW_BUILD_SHARED}"
"ARROW_BROTLI_USE_SHARED ${ARROW_BUILD_SHARED}"
"ARROW_GFLAGS_USE_SHARED ${ARROW_BUILD_SHARED}"
"ARROW_GRPC_USE_SHARED ${ARROW_BUILD_SHARED}"
"ARROW_PROTOBUF_USE_SHARED ${ARROW_BUILD_SHARED}"
"ARROW_ZSTD_USE_SHARED ${ARROW_BUILD_SHARED}"
"xsimd_SOURCE AUTO"
)

set(ARROW_FOUND TRUE)
Expand Down
88 changes: 48 additions & 40 deletions modules/core/cmake/Modules/ConfigureBlazingSQL.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -39,21 +39,25 @@ function(find_and_configure_blazingsql)

if(NOT TARGET blazingdb::blazingsql-io)
_get_major_minor_version(${VERSION} MAJOR_AND_MINOR)
CPMFindPackage(NAME blazingsql-io
VERSION ${VERSION}
GIT_REPOSITORY https://github.com/trxcllnt/blazingsql.git
GIT_TAG fea/rapids-cmake-${MAJOR_AND_MINOR}
SOURCE_SUBDIR io
OPTIONS # "S3_SUPPORT ON"
"S3_SUPPORT OFF"
"GCS_SUPPORT OFF"
"BUILD_TESTS OFF"
"BUILD_BENCHMARKS OFF"
"BUILD_SHARED_LIBS OFF"
# "ARROW_DEPENDENCY_SOURCE AUTO"
"BLAZINGSQL_IO_BUILD_ARROW_ORC OFF"
"BLAZINGSQL_IO_USE_ARROW_STATIC ON"
"BLAZINGSQL_IO_BUILD_ARROW_PYTHON OFF"
_get_update_disconnected_state(blazingsql-io ${VERSION} UPDATE_DISCONNECTED)
CPMFindPackage(NAME blazingsql-io
VERSION ${VERSION}
# EXCLUDE_FROM_ALL TRUE
GIT_REPOSITORY https://github.com/trxcllnt/blazingsql.git
GIT_TAG fea/rapids-cmake-${MAJOR_AND_MINOR}
GIT_SHALLOW TRUE
${UPDATE_DISCONNECTED}
SOURCE_SUBDIR io
OPTIONS # "S3_SUPPORT ON"
"S3_SUPPORT OFF"
"GCS_SUPPORT OFF"
"BUILD_TESTS OFF"
"BUILD_BENCHMARKS OFF"
"BUILD_SHARED_LIBS OFF"
# "ARROW_DEPENDENCY_SOURCE AUTO"
"BLAZINGSQL_IO_BUILD_ARROW_ORC OFF"
"BLAZINGSQL_IO_USE_ARROW_STATIC ON"
"BLAZINGSQL_IO_BUILD_ARROW_PYTHON OFF"
)
endif()

Expand All @@ -66,31 +70,35 @@ function(find_and_configure_blazingsql)

if(NOT TARGET blazingdb::blazingsql-engine)
_get_major_minor_version(${VERSION} MAJOR_AND_MINOR)
CPMFindPackage(NAME blazingsql-engine
VERSION ${VERSION}
GIT_REPOSITORY https://github.com/trxcllnt/blazingsql.git
GIT_TAG fea/rapids-cmake-${MAJOR_AND_MINOR}
SOURCE_SUBDIR engine
OPTIONS "BUILD_TESTS OFF"
"BUILD_BENCHMARKS OFF"
"BUILD_SHARED_LIBS OFF"
# "S3_SUPPORT ON"
"S3_SUPPORT OFF"
"GCS_SUPPORT OFF"
"MYSQL_SUPPORT OFF"
"SQLITE_SUPPORT OFF"
"POSTGRESQL_SUPPORT OFF"
"CUDA_STATIC_RUNTIME ON"
# "ARROW_DEPENDENCY_SOURCE AUTO"
"BLAZINGSQL_ENGINE_USE_ARROW_STATIC ON"
"DISABLE_DEPRECATION_WARNING ON"
"BLAZINGSQL_IO_USE_ARROW_STATIC ON"
"BLAZINGSQL_IO_BUILD_ARROW_ORC OFF"
"BLAZINGSQL_IO_BUILD_ARROW_PYTHON OFF"
"BLAZINGSQL_ENGINE_ENABLE_DEBUG_UTILS OFF"
"BLAZINGSQL_ENGINE_BUILD_ARROW_ORC OFF"
"BLAZINGSQL_ENGINE_BUILD_ARROW_PYTHON OFF"
"BLAZINGSQL_ENGINE_WITH_PYTHON_ERRORS OFF"
_get_update_disconnected_state(blazingsql-engine ${VERSION} UPDATE_DISCONNECTED)
CPMFindPackage(NAME blazingsql-engine
VERSION ${VERSION}
# EXCLUDE_FROM_ALL TRUE
GIT_REPOSITORY https://github.com/trxcllnt/blazingsql.git
GIT_TAG fea/rapids-cmake-${MAJOR_AND_MINOR}
GIT_SHALLOW TRUE
${UPDATE_DISCONNECTED}
SOURCE_SUBDIR engine
OPTIONS "BUILD_TESTS OFF"
"BUILD_BENCHMARKS OFF"
"BUILD_SHARED_LIBS OFF"
# "S3_SUPPORT ON"
"S3_SUPPORT OFF"
"GCS_SUPPORT OFF"
"MYSQL_SUPPORT OFF"
"SQLITE_SUPPORT OFF"
"POSTGRESQL_SUPPORT OFF"
"CUDA_STATIC_RUNTIME ON"
# "ARROW_DEPENDENCY_SOURCE AUTO"
"BLAZINGSQL_ENGINE_USE_ARROW_STATIC ON"
"DISABLE_DEPRECATION_WARNING ON"
"BLAZINGSQL_IO_USE_ARROW_STATIC ON"
"BLAZINGSQL_IO_BUILD_ARROW_ORC OFF"
"BLAZINGSQL_IO_BUILD_ARROW_PYTHON OFF"
"BLAZINGSQL_ENGINE_ENABLE_DEBUG_UTILS OFF"
"BLAZINGSQL_ENGINE_BUILD_ARROW_ORC OFF"
"BLAZINGSQL_ENGINE_BUILD_ARROW_PYTHON OFF"
"BLAZINGSQL_ENGINE_WITH_PYTHON_ERRORS OFF"
)
endif()

Expand Down
1 change: 1 addition & 0 deletions modules/core/cmake/Modules/ConfigureCUDF.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ function(find_and_configure_cudf)
_get_update_disconnected_state(cudf ${VERSION} UPDATE_DISCONNECTED)
CPMFindPackage(NAME cudf
VERSION ${VERSION}
# EXCLUDE_FROM_ALL TRUE
GIT_REPOSITORY https://github.com/rapidsai/cudf.git
GIT_TAG branch-${MAJOR_AND_MINOR}
GIT_SHALLOW TRUE
Expand Down
23 changes: 12 additions & 11 deletions modules/core/cmake/Modules/ConfigureCUGRAPH.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,19 @@ function(find_and_configure_cugraph)
if(NOT TARGET cugraph::cugraph)
_get_major_minor_version(${VERSION} MAJOR_AND_MINOR)
_get_update_disconnected_state(cugraph ${VERSION} UPDATE_DISCONNECTED)
CPMFindPackage(NAME cugraph
VERSION ${VERSION}
GIT_REPOSITORY https://github.com/rapidsai/cugraph.git
GIT_TAG branch-${MAJOR_AND_MINOR}
GIT_SHALLOW TRUE
CPMFindPackage(NAME cugraph
VERSION ${VERSION}
GIT_REPOSITORY https://github.com/rapidsai/cugraph.git
GIT_TAG branch-${MAJOR_AND_MINOR}
# EXCLUDE_FROM_ALL TRUE
GIT_SHALLOW TRUE
${UPDATE_DISCONNECTED}
SOURCE_SUBDIR cpp
OPTIONS "BUILD_TESTS OFF"
"BUILD_BENCHMARKS OFF"
"BUILD_SHARED_LIBS OFF"
"CUDA_STATIC_RUNTIME ON"
"BUILD_CUGRAPH_MG_TESTS OFF"
SOURCE_SUBDIR cpp
OPTIONS "BUILD_TESTS OFF"
"BUILD_BENCHMARKS OFF"
"BUILD_SHARED_LIBS OFF"
"CUDA_STATIC_RUNTIME ON"
"BUILD_CUGRAPH_MG_TESTS OFF"
)
endif()
# Make sure consumers of our libs can see cugraph::cugraph
Expand Down
21 changes: 11 additions & 10 deletions modules/core/cmake/Modules/ConfigureCUGRAPHOPS.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,18 @@ function(find_and_configure_cugraph_ops)
if(NOT TARGET cugraph-ops::cugraph-ops++)
_get_major_minor_version(${VERSION} MAJOR_AND_MINOR)
_get_update_disconnected_state(cugraph-ops ${VERSION} UPDATE_DISCONNECTED)
CPMFindPackage(NAME cugraph-ops
VERSION ${VERSION}
GIT_REPOSITORY "[email protected]:rapidsai/cugraph-ops.git"
GIT_TAG branch-${MAJOR_AND_MINOR}
GIT_SHALLOW TRUE
CPMFindPackage(NAME cugraph-ops
VERSION ${VERSION}
# EXCLUDE_FROM_ALL TRUE
GIT_REPOSITORY "[email protected]:rapidsai/cugraph-ops.git"
GIT_TAG branch-${MAJOR_AND_MINOR}
GIT_SHALLOW TRUE
${UPDATE_DISCONNECTED}
SOURCE_SUBDIR cpp
OPTIONS "DETECT_CONDA_ENV OFF"
"BUILD_SHARED_LIBS OFF"
"CUDA_STATIC_RUNTIME ON"
"BUILD_CUGRAPH_OPS_CPP_TESTS OFF")
SOURCE_SUBDIR cpp
OPTIONS "DETECT_CONDA_ENV OFF"
"BUILD_SHARED_LIBS OFF"
"CUDA_STATIC_RUNTIME ON"
"BUILD_CUGRAPH_OPS_CPP_TESTS OFF")
endif()
# Make sure consumers of our libs can see cugraph-ops::Thrust
_fix_cmake_global_defaults(cugraph-ops::Thrust)
Expand Down
59 changes: 30 additions & 29 deletions modules/core/cmake/Modules/ConfigureCUML.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -36,36 +36,37 @@ function(find_and_configure_cuml)
if(NOT TARGET cuml::cuml)
_get_major_minor_version(${VERSION} MAJOR_AND_MINOR)
_get_update_disconnected_state(cuml ${VERSION} UPDATE_DISCONNECTED)
CPMFindPackage(NAME cuml
VERSION ${VERSION}
GIT_REPOSITORY https://github.com/rapidsai/cuml.git
GIT_TAG branch-${MAJOR_AND_MINOR}
GIT_SHALLOW TRUE
CPMFindPackage(NAME cuml
VERSION ${VERSION}
# EXCLUDE_FROM_ALL TRUE
GIT_REPOSITORY https://github.com/rapidsai/cuml.git
GIT_TAG branch-${MAJOR_AND_MINOR}
GIT_SHALLOW TRUE
${UPDATE_DISCONNECTED}
SOURCE_SUBDIR cpp
OPTIONS "SINGLEGPU ON"
"WITH_UCX OFF"
"CUDA_STATIC_RUNTIME ON"
"BUILD_TESTS OFF"
"BUILD_BENCHMARKS OFF"
"DISABLE_OPENMP OFF"
"DETECT_CONDA_ENV OFF"
"ENABLE_CUMLPRIMS_MG ON"
"BUILD_SHARED_LIBS OFF"
"BUILD_CUML_MG_TESTS OFF"
"BUILD_CUML_MG_BENCH OFF"
"BUILD_CUML_STD_COMMS OFF"
"BUILD_CUML_MPI_COMMS OFF"
"BUILD_CUML_TESTS OFF"
"BUILD_CUML_BENCH OFF"
"BUILD_PRIMS_TESTS OFF"
"BUILD_CUML_EXAMPLES OFF"
"BUILD_CUML_C_LIBRARY OFF"
"BUILD_CUML_CPP_LIBRARY ON"
"BUILD_CUML_PRIMS_BENCH OFF"
"RAFT_USE_FAISS_STATIC ON"
"CUML_USE_FAISS_STATIC ON"
"CUML_USE_TREELITE_STATIC ON"
SOURCE_SUBDIR cpp
OPTIONS "SINGLEGPU ON"
"WITH_UCX OFF"
"CUDA_STATIC_RUNTIME ON"
"BUILD_TESTS OFF"
"BUILD_BENCHMARKS OFF"
"DISABLE_OPENMP OFF"
"DETECT_CONDA_ENV OFF"
"ENABLE_CUMLPRIMS_MG ON"
"BUILD_SHARED_LIBS OFF"
"BUILD_CUML_MG_TESTS OFF"
"BUILD_CUML_MG_BENCH OFF"
"BUILD_CUML_STD_COMMS OFF"
"BUILD_CUML_MPI_COMMS OFF"
"BUILD_CUML_TESTS OFF"
"BUILD_CUML_BENCH OFF"
"BUILD_PRIMS_TESTS OFF"
"BUILD_CUML_EXAMPLES OFF"
"BUILD_CUML_C_LIBRARY OFF"
"BUILD_CUML_CPP_LIBRARY ON"
"BUILD_CUML_PRIMS_BENCH OFF"
"RAFT_USE_FAISS_STATIC ON"
"CUML_USE_FAISS_STATIC ON"
"CUML_USE_TREELITE_STATIC ON"
)
endif()
# Make sure consumers of our libs can see cuml::cuml++
Expand Down
21 changes: 11 additions & 10 deletions modules/core/cmake/Modules/ConfigureCUMLPRIMS.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,18 @@ function(find_and_configure_cumlprims_mg)
if(NOT TARGET cumlprims_mg::cumlprims_mg)
_get_major_minor_version(${VERSION} MAJOR_AND_MINOR)
_get_update_disconnected_state(cumlprims_mg ${VERSION} UPDATE_DISCONNECTED)
CPMFindPackage(NAME cumlprims_mg
VERSION ${VERSION}
GIT_REPOSITORY "[email protected]:rapidsai/cumlprims_mg.git"
GIT_TAG branch-${MAJOR_AND_MINOR}
GIT_SHALLOW TRUE
CPMFindPackage(NAME cumlprims_mg
VERSION ${VERSION}
# EXCLUDE_FROM_ALL TRUE
GIT_REPOSITORY "[email protected]:rapidsai/cumlprims_mg.git"
GIT_TAG branch-${MAJOR_AND_MINOR}
GIT_SHALLOW TRUE
${UPDATE_DISCONNECTED}
SOURCE_SUBDIR cpp
OPTIONS "BUILD_TESTS OFF"
"BUILD_BENCHMARKS OFF"
"DETECT_CONDA_ENV OFF"
"BUILD_SHARED_LIBS OFF")
SOURCE_SUBDIR cpp
OPTIONS "BUILD_TESTS OFF"
"BUILD_BENCHMARKS OFF"
"DETECT_CONDA_ENV OFF"
"BUILD_SHARED_LIBS OFF")
endif()
# Make sure consumers of our libs can see cumlprims_mg::cumlprims_mg
_fix_cmake_global_defaults(cumlprims_mg::cumlprims_mg)
Expand Down
Loading

0 comments on commit 5339c0a

Please sign in to comment.