Skip to content

Commit da9df57

Browse files
committed
stage
1 parent 01690db commit da9df57

14 files changed

+172
-620
lines changed

.github/workflows/ExtensionTemplate.yml

Lines changed: 0 additions & 178 deletions
This file was deleted.

.github/workflows/MainDistributionPipeline.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ jobs:
1818
with:
1919
duckdb_version: main
2020
ci_tools_version: main
21-
extension_name: quack
21+
extension_name: wvlet
2222

2323
duckdb-stable-build:
2424
name: Build extension binaries
2525
uses: duckdb/extension-ci-tools/.github/workflows/[email protected]
2626
with:
2727
duckdb_version: v1.1.3
2828
ci_tools_version: v1.1.3
29-
extension_name: quack
29+
extension_name: wvlet
3030

3131
duckdb-stable-deploy:
3232
name: Deploy extension binaries
@@ -35,5 +35,5 @@ jobs:
3535
secrets: inherit
3636
with:
3737
duckdb_version: v1.1.3
38-
extension_name: quack
38+
extension_name: wvlet
3939
deploy_latest: ${{ startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main' }}

CMakeLists.txt

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,51 @@
11
cmake_minimum_required(VERSION 3.5)
22

33
# Set extension name here
4-
set(TARGET_NAME quack)
4+
set(TARGET_NAME wvlet)
55

66
# DuckDB's extension distribution supports vcpkg. As such, dependencies can be added in ./vcpkg.json and then
77
# used in cmake with find_package. Feel free to remove or replace with other dependencies.
88
# Note that it should also be removed from vcpkg.json to prevent needlessly installing it..
99
find_package(OpenSSL REQUIRED)
1010

11+
# Define wvlet library details
12+
set(WVLET_LIB_URL "https://github.com/quackmagic/wvlet-lib/releases/download/v2024.9.12/libwvlet_linux-x64.so")
13+
set(WVLET_LIB_PATH "${CMAKE_CURRENT_SOURCE_DIR}/third-party/libwvlet_linux-x64.so")
14+
15+
# Download wvlet library if it doesn't exist
16+
if(NOT EXISTS ${WVLET_LIB_PATH})
17+
message(STATUS "Downloading wvlet library from ${WVLET_LIB_URL}")
18+
# Create third-party directory if it doesn't exist
19+
file(MAKE_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/third-party")
20+
# Download the file
21+
file(DOWNLOAD
22+
${WVLET_LIB_URL}
23+
${WVLET_LIB_PATH}
24+
SHOW_PROGRESS
25+
STATUS DOWNLOAD_STATUS
26+
TLS_VERIFY ON)
27+
28+
list(GET DOWNLOAD_STATUS 0 STATUS_CODE)
29+
if(NOT STATUS_CODE EQUAL 0)
30+
message(FATAL_ERROR "Failed to download wvlet library")
31+
endif()
32+
33+
endif()
34+
1135
set(EXTENSION_NAME ${TARGET_NAME}_extension)
1236
set(LOADABLE_EXTENSION_NAME ${TARGET_NAME}_loadable_extension)
1337

1438
project(${TARGET_NAME})
1539
include_directories(src/include)
1640

17-
set(EXTENSION_SOURCES src/quack_extension.cpp)
41+
set(EXTENSION_SOURCES src/wvlet_extension.cpp)
1842

1943
build_static_extension(${TARGET_NAME} ${EXTENSION_SOURCES})
2044
build_loadable_extension(${TARGET_NAME} " " ${EXTENSION_SOURCES})
2145

2246
# Link OpenSSL in both the static library as the loadable extension
23-
target_link_libraries(${EXTENSION_NAME} OpenSSL::SSL OpenSSL::Crypto)
24-
target_link_libraries(${LOADABLE_EXTENSION_NAME} OpenSSL::SSL OpenSSL::Crypto)
47+
target_link_libraries(${EXTENSION_NAME} OpenSSL::SSL OpenSSL::Crypto ${WVLET_LIB_PATH})
48+
target_link_libraries(${LOADABLE_EXTENSION_NAME} OpenSSL::SSL OpenSSL::Crypto ${WVLET_LIB_PATH})
2549

2650
install(
2751
TARGETS ${EXTENSION_NAME}

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PROJ_DIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
22

33
# Configuration of extension
4-
EXT_NAME=quack
4+
EXT_NAME=wvlet
55
EXT_CONFIG=${PROJ_DIR}extension_config.cmake
66

77
# Include the Makefile from extension-ci-tools

docs/NEXT_README.md

Lines changed: 0 additions & 86 deletions
This file was deleted.

0 commit comments

Comments
 (0)