Skip to content

Commit 5339c0a

Browse files
authored
[FEA] Make maplibre-gl work in @rapidsai/jsdom (#433)
1 parent e8a8b1c commit 5339c0a

File tree

199 files changed

+3684
-3014
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

199 files changed

+3684
-3014
lines changed

.gitignore

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,19 @@
1515

1616
.env
1717
.creds
18-
.vscode
18+
.vscode/server
19+
.vscode/server-insiders
1920
.cmake-js
2021
modules/*/include/napi.h
2122
modules/*/include/napi-inl.h
2223
modules/*/include/napi-inl.deprecated.h
2324
modules/*/include/node_api.h
2425

25-
modules/demo/**/*/data
26+
modules/demo/**/*/data/*
2627

2728
modules/**/.eslintrc.js
2829

29-
modules/**/notebooks/data
30+
modules/**/notebooks/data/*
3031

3132
internal/*
3233

modules/core/cmake/Modules/ConfigureArrow.cmake

Lines changed: 38 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -86,45 +86,49 @@ function(find_and_configure_arrow VERSION BUILD_STATIC ENABLE_S3 ENABLE_ORC ENAB
8686
set(BUILD_WARNING_LEVEL "PRODUCTION" PARENT_SCOPE)
8787
set(BUILD_WARNING_LEVEL "PRODUCTION" CACHE STRING "" FORCE)
8888

89-
rapids_cpm_find(
90-
Arrow ${VERSION}
89+
_get_update_disconnected_state(Arrow ${VERSION} UPDATE_DISCONNECTED)
90+
91+
rapids_cpm_find( Arrow ${VERSION}
9192
GLOBAL_TARGETS arrow_shared arrow_static
9293
parquet_shared parquet_static
9394
arrow_cuda_shared arrow_cuda_static
9495
arrow_dataset_shared arrow_dataset_static
9596
CPM_ARGS
96-
GIT_REPOSITORY https://github.com/apache/arrow.git
97-
GIT_TAG apache-arrow-${VERSION}
98-
GIT_SHALLOW TRUE SOURCE_SUBDIR cpp
99-
OPTIONS "CMAKE_VERBOSE_MAKEFILE ON"
100-
"CUDA_USE_STATIC_CUDA_RUNTIME OFF"
101-
"ARROW_IPC ON"
102-
"ARROW_CUDA ON"
103-
"ARROW_DATASET ON"
104-
"ARROW_WITH_BACKTRACE ON"
105-
"ARROW_CXXFLAGS -w"
106-
"ARROW_JEMALLOC OFF"
107-
"ARROW_S3 ${ENABLE_S3}"
108-
"ARROW_ORC ${ENABLE_ORC}"
109-
# e.g. needed by blazingsql-io
110-
${ARROW_PARQUET_OPTIONS}
111-
"ARROW_PARQUET ${ENABLE_PARQUET}"
112-
${ARROW_PYTHON_OPTIONS}
113-
# Arrow modifies CMake's GLOBAL RULE_LAUNCH_COMPILE unless this is off
114-
"ARROW_USE_CCACHE OFF"
115-
"ARROW_POSITION_INDEPENDENT_CODE ON"
116-
"ARROW_ARMV8_ARCH ${ARROW_ARMV8_ARCH}"
117-
"ARROW_SIMD_LEVEL ${ARROW_SIMD_LEVEL}"
118-
"ARROW_BUILD_STATIC ${ARROW_BUILD_STATIC}"
119-
"ARROW_BUILD_SHARED ${ARROW_BUILD_SHARED}"
120-
"ARROW_DEPENDENCY_USE_SHARED ${ARROW_BUILD_SHARED}"
121-
"ARROW_BOOST_USE_SHARED ${ARROW_BUILD_SHARED}"
122-
"ARROW_BROTLI_USE_SHARED ${ARROW_BUILD_SHARED}"
123-
"ARROW_GFLAGS_USE_SHARED ${ARROW_BUILD_SHARED}"
124-
"ARROW_GRPC_USE_SHARED ${ARROW_BUILD_SHARED}"
125-
"ARROW_PROTOBUF_USE_SHARED ${ARROW_BUILD_SHARED}"
126-
"ARROW_ZSTD_USE_SHARED ${ARROW_BUILD_SHARED}"
127-
"xsimd_SOURCE AUTO"
97+
${UPDATE_DISCONNECTED}
98+
# EXCLUDE_FROM_ALL TRUE
99+
GIT_REPOSITORY https://github.com/apache/arrow.git
100+
GIT_TAG apache-arrow-${VERSION}
101+
GIT_SHALLOW TRUE
102+
SOURCE_SUBDIR cpp
103+
OPTIONS "CMAKE_VERBOSE_MAKEFILE ON"
104+
"CUDA_USE_STATIC_CUDA_RUNTIME ON"
105+
"ARROW_IPC ON"
106+
"ARROW_CUDA ON"
107+
"ARROW_DATASET ON"
108+
"ARROW_WITH_BACKTRACE ON"
109+
"ARROW_CXXFLAGS -w"
110+
"ARROW_JEMALLOC OFF"
111+
"ARROW_S3 ${ENABLE_S3}"
112+
"ARROW_ORC ${ENABLE_ORC}"
113+
# e.g. needed by blazingsql-io
114+
${ARROW_PARQUET_OPTIONS}
115+
"ARROW_PARQUET ${ENABLE_PARQUET}"
116+
${ARROW_PYTHON_OPTIONS}
117+
# Arrow modifies CMake's GLOBAL RULE_LAUNCH_COMPILE unless this is off
118+
"ARROW_USE_CCACHE OFF"
119+
"ARROW_POSITION_INDEPENDENT_CODE ON"
120+
"ARROW_ARMV8_ARCH ${ARROW_ARMV8_ARCH}"
121+
"ARROW_SIMD_LEVEL ${ARROW_SIMD_LEVEL}"
122+
"ARROW_BUILD_STATIC ${ARROW_BUILD_STATIC}"
123+
"ARROW_BUILD_SHARED ${ARROW_BUILD_SHARED}"
124+
"ARROW_DEPENDENCY_USE_SHARED ${ARROW_BUILD_SHARED}"
125+
"ARROW_BOOST_USE_SHARED ${ARROW_BUILD_SHARED}"
126+
"ARROW_BROTLI_USE_SHARED ${ARROW_BUILD_SHARED}"
127+
"ARROW_GFLAGS_USE_SHARED ${ARROW_BUILD_SHARED}"
128+
"ARROW_GRPC_USE_SHARED ${ARROW_BUILD_SHARED}"
129+
"ARROW_PROTOBUF_USE_SHARED ${ARROW_BUILD_SHARED}"
130+
"ARROW_ZSTD_USE_SHARED ${ARROW_BUILD_SHARED}"
131+
"xsimd_SOURCE AUTO"
128132
)
129133

130134
set(ARROW_FOUND TRUE)

modules/core/cmake/Modules/ConfigureBlazingSQL.cmake

Lines changed: 48 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -39,21 +39,25 @@ function(find_and_configure_blazingsql)
3939

4040
if(NOT TARGET blazingdb::blazingsql-io)
4141
_get_major_minor_version(${VERSION} MAJOR_AND_MINOR)
42-
CPMFindPackage(NAME blazingsql-io
43-
VERSION ${VERSION}
44-
GIT_REPOSITORY https://github.com/trxcllnt/blazingsql.git
45-
GIT_TAG fea/rapids-cmake-${MAJOR_AND_MINOR}
46-
SOURCE_SUBDIR io
47-
OPTIONS # "S3_SUPPORT ON"
48-
"S3_SUPPORT OFF"
49-
"GCS_SUPPORT OFF"
50-
"BUILD_TESTS OFF"
51-
"BUILD_BENCHMARKS OFF"
52-
"BUILD_SHARED_LIBS OFF"
53-
# "ARROW_DEPENDENCY_SOURCE AUTO"
54-
"BLAZINGSQL_IO_BUILD_ARROW_ORC OFF"
55-
"BLAZINGSQL_IO_USE_ARROW_STATIC ON"
56-
"BLAZINGSQL_IO_BUILD_ARROW_PYTHON OFF"
42+
_get_update_disconnected_state(blazingsql-io ${VERSION} UPDATE_DISCONNECTED)
43+
CPMFindPackage(NAME blazingsql-io
44+
VERSION ${VERSION}
45+
# EXCLUDE_FROM_ALL TRUE
46+
GIT_REPOSITORY https://github.com/trxcllnt/blazingsql.git
47+
GIT_TAG fea/rapids-cmake-${MAJOR_AND_MINOR}
48+
GIT_SHALLOW TRUE
49+
${UPDATE_DISCONNECTED}
50+
SOURCE_SUBDIR io
51+
OPTIONS # "S3_SUPPORT ON"
52+
"S3_SUPPORT OFF"
53+
"GCS_SUPPORT OFF"
54+
"BUILD_TESTS OFF"
55+
"BUILD_BENCHMARKS OFF"
56+
"BUILD_SHARED_LIBS OFF"
57+
# "ARROW_DEPENDENCY_SOURCE AUTO"
58+
"BLAZINGSQL_IO_BUILD_ARROW_ORC OFF"
59+
"BLAZINGSQL_IO_USE_ARROW_STATIC ON"
60+
"BLAZINGSQL_IO_BUILD_ARROW_PYTHON OFF"
5761
)
5862
endif()
5963

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

6771
if(NOT TARGET blazingdb::blazingsql-engine)
6872
_get_major_minor_version(${VERSION} MAJOR_AND_MINOR)
69-
CPMFindPackage(NAME blazingsql-engine
70-
VERSION ${VERSION}
71-
GIT_REPOSITORY https://github.com/trxcllnt/blazingsql.git
72-
GIT_TAG fea/rapids-cmake-${MAJOR_AND_MINOR}
73-
SOURCE_SUBDIR engine
74-
OPTIONS "BUILD_TESTS OFF"
75-
"BUILD_BENCHMARKS OFF"
76-
"BUILD_SHARED_LIBS OFF"
77-
# "S3_SUPPORT ON"
78-
"S3_SUPPORT OFF"
79-
"GCS_SUPPORT OFF"
80-
"MYSQL_SUPPORT OFF"
81-
"SQLITE_SUPPORT OFF"
82-
"POSTGRESQL_SUPPORT OFF"
83-
"CUDA_STATIC_RUNTIME ON"
84-
# "ARROW_DEPENDENCY_SOURCE AUTO"
85-
"BLAZINGSQL_ENGINE_USE_ARROW_STATIC ON"
86-
"DISABLE_DEPRECATION_WARNING ON"
87-
"BLAZINGSQL_IO_USE_ARROW_STATIC ON"
88-
"BLAZINGSQL_IO_BUILD_ARROW_ORC OFF"
89-
"BLAZINGSQL_IO_BUILD_ARROW_PYTHON OFF"
90-
"BLAZINGSQL_ENGINE_ENABLE_DEBUG_UTILS OFF"
91-
"BLAZINGSQL_ENGINE_BUILD_ARROW_ORC OFF"
92-
"BLAZINGSQL_ENGINE_BUILD_ARROW_PYTHON OFF"
93-
"BLAZINGSQL_ENGINE_WITH_PYTHON_ERRORS OFF"
73+
_get_update_disconnected_state(blazingsql-engine ${VERSION} UPDATE_DISCONNECTED)
74+
CPMFindPackage(NAME blazingsql-engine
75+
VERSION ${VERSION}
76+
# EXCLUDE_FROM_ALL TRUE
77+
GIT_REPOSITORY https://github.com/trxcllnt/blazingsql.git
78+
GIT_TAG fea/rapids-cmake-${MAJOR_AND_MINOR}
79+
GIT_SHALLOW TRUE
80+
${UPDATE_DISCONNECTED}
81+
SOURCE_SUBDIR engine
82+
OPTIONS "BUILD_TESTS OFF"
83+
"BUILD_BENCHMARKS OFF"
84+
"BUILD_SHARED_LIBS OFF"
85+
# "S3_SUPPORT ON"
86+
"S3_SUPPORT OFF"
87+
"GCS_SUPPORT OFF"
88+
"MYSQL_SUPPORT OFF"
89+
"SQLITE_SUPPORT OFF"
90+
"POSTGRESQL_SUPPORT OFF"
91+
"CUDA_STATIC_RUNTIME ON"
92+
# "ARROW_DEPENDENCY_SOURCE AUTO"
93+
"BLAZINGSQL_ENGINE_USE_ARROW_STATIC ON"
94+
"DISABLE_DEPRECATION_WARNING ON"
95+
"BLAZINGSQL_IO_USE_ARROW_STATIC ON"
96+
"BLAZINGSQL_IO_BUILD_ARROW_ORC OFF"
97+
"BLAZINGSQL_IO_BUILD_ARROW_PYTHON OFF"
98+
"BLAZINGSQL_ENGINE_ENABLE_DEBUG_UTILS OFF"
99+
"BLAZINGSQL_ENGINE_BUILD_ARROW_ORC OFF"
100+
"BLAZINGSQL_ENGINE_BUILD_ARROW_PYTHON OFF"
101+
"BLAZINGSQL_ENGINE_WITH_PYTHON_ERRORS OFF"
94102
)
95103
endif()
96104

modules/core/cmake/Modules/ConfigureCUDF.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ function(find_and_configure_cudf)
4343
_get_update_disconnected_state(cudf ${VERSION} UPDATE_DISCONNECTED)
4444
CPMFindPackage(NAME cudf
4545
VERSION ${VERSION}
46+
# EXCLUDE_FROM_ALL TRUE
4647
GIT_REPOSITORY https://github.com/rapidsai/cudf.git
4748
GIT_TAG branch-${MAJOR_AND_MINOR}
4849
GIT_SHALLOW TRUE

modules/core/cmake/Modules/ConfigureCUGRAPH.cmake

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -36,18 +36,19 @@ function(find_and_configure_cugraph)
3636
if(NOT TARGET cugraph::cugraph)
3737
_get_major_minor_version(${VERSION} MAJOR_AND_MINOR)
3838
_get_update_disconnected_state(cugraph ${VERSION} UPDATE_DISCONNECTED)
39-
CPMFindPackage(NAME cugraph
40-
VERSION ${VERSION}
41-
GIT_REPOSITORY https://github.com/rapidsai/cugraph.git
42-
GIT_TAG branch-${MAJOR_AND_MINOR}
43-
GIT_SHALLOW TRUE
39+
CPMFindPackage(NAME cugraph
40+
VERSION ${VERSION}
41+
GIT_REPOSITORY https://github.com/rapidsai/cugraph.git
42+
GIT_TAG branch-${MAJOR_AND_MINOR}
43+
# EXCLUDE_FROM_ALL TRUE
44+
GIT_SHALLOW TRUE
4445
${UPDATE_DISCONNECTED}
45-
SOURCE_SUBDIR cpp
46-
OPTIONS "BUILD_TESTS OFF"
47-
"BUILD_BENCHMARKS OFF"
48-
"BUILD_SHARED_LIBS OFF"
49-
"CUDA_STATIC_RUNTIME ON"
50-
"BUILD_CUGRAPH_MG_TESTS OFF"
46+
SOURCE_SUBDIR cpp
47+
OPTIONS "BUILD_TESTS OFF"
48+
"BUILD_BENCHMARKS OFF"
49+
"BUILD_SHARED_LIBS OFF"
50+
"CUDA_STATIC_RUNTIME ON"
51+
"BUILD_CUGRAPH_MG_TESTS OFF"
5152
)
5253
endif()
5354
# Make sure consumers of our libs can see cugraph::cugraph

modules/core/cmake/Modules/ConfigureCUGRAPHOPS.cmake

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,18 @@ function(find_and_configure_cugraph_ops)
3232
if(NOT TARGET cugraph-ops::cugraph-ops++)
3333
_get_major_minor_version(${VERSION} MAJOR_AND_MINOR)
3434
_get_update_disconnected_state(cugraph-ops ${VERSION} UPDATE_DISCONNECTED)
35-
CPMFindPackage(NAME cugraph-ops
36-
VERSION ${VERSION}
37-
GIT_REPOSITORY "[email protected]:rapidsai/cugraph-ops.git"
38-
GIT_TAG branch-${MAJOR_AND_MINOR}
39-
GIT_SHALLOW TRUE
35+
CPMFindPackage(NAME cugraph-ops
36+
VERSION ${VERSION}
37+
# EXCLUDE_FROM_ALL TRUE
38+
GIT_REPOSITORY "[email protected]:rapidsai/cugraph-ops.git"
39+
GIT_TAG branch-${MAJOR_AND_MINOR}
40+
GIT_SHALLOW TRUE
4041
${UPDATE_DISCONNECTED}
41-
SOURCE_SUBDIR cpp
42-
OPTIONS "DETECT_CONDA_ENV OFF"
43-
"BUILD_SHARED_LIBS OFF"
44-
"CUDA_STATIC_RUNTIME ON"
45-
"BUILD_CUGRAPH_OPS_CPP_TESTS OFF")
42+
SOURCE_SUBDIR cpp
43+
OPTIONS "DETECT_CONDA_ENV OFF"
44+
"BUILD_SHARED_LIBS OFF"
45+
"CUDA_STATIC_RUNTIME ON"
46+
"BUILD_CUGRAPH_OPS_CPP_TESTS OFF")
4647
endif()
4748
# Make sure consumers of our libs can see cugraph-ops::Thrust
4849
_fix_cmake_global_defaults(cugraph-ops::Thrust)

modules/core/cmake/Modules/ConfigureCUML.cmake

Lines changed: 30 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -36,36 +36,37 @@ function(find_and_configure_cuml)
3636
if(NOT TARGET cuml::cuml)
3737
_get_major_minor_version(${VERSION} MAJOR_AND_MINOR)
3838
_get_update_disconnected_state(cuml ${VERSION} UPDATE_DISCONNECTED)
39-
CPMFindPackage(NAME cuml
40-
VERSION ${VERSION}
41-
GIT_REPOSITORY https://github.com/rapidsai/cuml.git
42-
GIT_TAG branch-${MAJOR_AND_MINOR}
43-
GIT_SHALLOW TRUE
39+
CPMFindPackage(NAME cuml
40+
VERSION ${VERSION}
41+
# EXCLUDE_FROM_ALL TRUE
42+
GIT_REPOSITORY https://github.com/rapidsai/cuml.git
43+
GIT_TAG branch-${MAJOR_AND_MINOR}
44+
GIT_SHALLOW TRUE
4445
${UPDATE_DISCONNECTED}
45-
SOURCE_SUBDIR cpp
46-
OPTIONS "SINGLEGPU ON"
47-
"WITH_UCX OFF"
48-
"CUDA_STATIC_RUNTIME ON"
49-
"BUILD_TESTS OFF"
50-
"BUILD_BENCHMARKS OFF"
51-
"DISABLE_OPENMP OFF"
52-
"DETECT_CONDA_ENV OFF"
53-
"ENABLE_CUMLPRIMS_MG ON"
54-
"BUILD_SHARED_LIBS OFF"
55-
"BUILD_CUML_MG_TESTS OFF"
56-
"BUILD_CUML_MG_BENCH OFF"
57-
"BUILD_CUML_STD_COMMS OFF"
58-
"BUILD_CUML_MPI_COMMS OFF"
59-
"BUILD_CUML_TESTS OFF"
60-
"BUILD_CUML_BENCH OFF"
61-
"BUILD_PRIMS_TESTS OFF"
62-
"BUILD_CUML_EXAMPLES OFF"
63-
"BUILD_CUML_C_LIBRARY OFF"
64-
"BUILD_CUML_CPP_LIBRARY ON"
65-
"BUILD_CUML_PRIMS_BENCH OFF"
66-
"RAFT_USE_FAISS_STATIC ON"
67-
"CUML_USE_FAISS_STATIC ON"
68-
"CUML_USE_TREELITE_STATIC ON"
46+
SOURCE_SUBDIR cpp
47+
OPTIONS "SINGLEGPU ON"
48+
"WITH_UCX OFF"
49+
"CUDA_STATIC_RUNTIME ON"
50+
"BUILD_TESTS OFF"
51+
"BUILD_BENCHMARKS OFF"
52+
"DISABLE_OPENMP OFF"
53+
"DETECT_CONDA_ENV OFF"
54+
"ENABLE_CUMLPRIMS_MG ON"
55+
"BUILD_SHARED_LIBS OFF"
56+
"BUILD_CUML_MG_TESTS OFF"
57+
"BUILD_CUML_MG_BENCH OFF"
58+
"BUILD_CUML_STD_COMMS OFF"
59+
"BUILD_CUML_MPI_COMMS OFF"
60+
"BUILD_CUML_TESTS OFF"
61+
"BUILD_CUML_BENCH OFF"
62+
"BUILD_PRIMS_TESTS OFF"
63+
"BUILD_CUML_EXAMPLES OFF"
64+
"BUILD_CUML_C_LIBRARY OFF"
65+
"BUILD_CUML_CPP_LIBRARY ON"
66+
"BUILD_CUML_PRIMS_BENCH OFF"
67+
"RAFT_USE_FAISS_STATIC ON"
68+
"CUML_USE_FAISS_STATIC ON"
69+
"CUML_USE_TREELITE_STATIC ON"
6970
)
7071
endif()
7172
# Make sure consumers of our libs can see cuml::cuml++

modules/core/cmake/Modules/ConfigureCUMLPRIMS.cmake

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,18 @@ function(find_and_configure_cumlprims_mg)
3030
if(NOT TARGET cumlprims_mg::cumlprims_mg)
3131
_get_major_minor_version(${VERSION} MAJOR_AND_MINOR)
3232
_get_update_disconnected_state(cumlprims_mg ${VERSION} UPDATE_DISCONNECTED)
33-
CPMFindPackage(NAME cumlprims_mg
34-
VERSION ${VERSION}
35-
GIT_REPOSITORY "[email protected]:rapidsai/cumlprims_mg.git"
36-
GIT_TAG branch-${MAJOR_AND_MINOR}
37-
GIT_SHALLOW TRUE
33+
CPMFindPackage(NAME cumlprims_mg
34+
VERSION ${VERSION}
35+
# EXCLUDE_FROM_ALL TRUE
36+
GIT_REPOSITORY "[email protected]:rapidsai/cumlprims_mg.git"
37+
GIT_TAG branch-${MAJOR_AND_MINOR}
38+
GIT_SHALLOW TRUE
3839
${UPDATE_DISCONNECTED}
39-
SOURCE_SUBDIR cpp
40-
OPTIONS "BUILD_TESTS OFF"
41-
"BUILD_BENCHMARKS OFF"
42-
"DETECT_CONDA_ENV OFF"
43-
"BUILD_SHARED_LIBS OFF")
40+
SOURCE_SUBDIR cpp
41+
OPTIONS "BUILD_TESTS OFF"
42+
"BUILD_BENCHMARKS OFF"
43+
"DETECT_CONDA_ENV OFF"
44+
"BUILD_SHARED_LIBS OFF")
4445
endif()
4546
# Make sure consumers of our libs can see cumlprims_mg::cumlprims_mg
4647
_fix_cmake_global_defaults(cumlprims_mg::cumlprims_mg)

0 commit comments

Comments
 (0)