@@ -9,16 +9,24 @@ add_extension_definitions()
99include_directories (extension/httpfs/include
1010 ${DUCKDB_MODULE_BASE_DIR} /third_party/httplib)
1111
12+ if (NOT EMSCRIPTEN)
13+ set (EXTRA_SOURCES extension/httpfs/crypto.cpp extension/httpfs/httpfs_client.cpp)
14+ add_definitions (-DOVERRIDE_ENCRYPTION_UTILS=1)
15+ else ()
16+ set (EXTRA_SOURCES extension/httpfs/httpfs_client_wasm.cpp)
17+ endif ()
18+
1219build_static_extension(
1320 httpfs
1421 extension/httpfs/hffs.cpp
1522 extension/httpfs/s3fs.cpp
1623 extension/httpfs/httpfs.cpp
17- extension/httpfs/httpfs_client.cpp
1824 extension/httpfs/http_state.cpp
1925 extension/httpfs/crypto.cpp
26+ extension/httpfs/hash_functions.cpp
2027 extension/httpfs/create_secret_functions.cpp
21- extension/httpfs/httpfs_extension.cpp)
28+ extension/httpfs/httpfs_extension.cpp
29+ ${EXTRA_SOURCES} )
2230
2331set (PARAMETERS "-warnings" )
2432build_loadable_extension(
@@ -27,11 +35,12 @@ build_loadable_extension(
2735 extension/httpfs/hffs.cpp
2836 extension/httpfs/s3fs.cpp
2937 extension/httpfs/httpfs.cpp
30- extension/httpfs/httpfs_client.cpp
3138 extension/httpfs/http_state.cpp
3239 extension/httpfs/crypto.cpp
40+ extension/httpfs/hash_functions.cpp
3341 extension/httpfs/create_secret_functions.cpp
34- extension/httpfs/httpfs_extension.cpp)
42+ extension/httpfs/httpfs_extension.cpp
43+ ${EXTRA_SOURCES} )
3544
3645if (MINGW)
3746 set (OPENSSL_USE_STATIC_LIBS TRUE )
0 commit comments