]> gitweb.factorcode.org Git - factor.git/commitdiff
build-from-source.windows: add duckdb build
authorDoug Coleman <doug.coleman@gmail.com>
Tue, 23 May 2023 03:26:54 +0000 (22:26 -0500)
committerDoug Coleman <doug.coleman@gmail.com>
Tue, 23 May 2023 03:26:54 +0000 (22:26 -0500)
extra/build-from-source/windows/windows.factor

index 7025f5b4e1dd1a5f87773fde4bef12f0ba0af269..b863289d377cf4894c5ddacd55e9db065f71d69c 100644 (file)
@@ -267,6 +267,21 @@ IN: build-from-source.windows
         "sqlite3.dll" copy-output-file
     ] with-updated-github-repo ;
 
+: build-duckdb-dll ( -- )
+    "duckdb" "duckdb" [
+        [
+            32-bit? [
+                qw{ cmake -DBUILD_SHARED_LIBS=ON -A Win32 .. } try-process
+                qw{ msbuild duckdb.sln /property:Configuration=Release /p:Platform=Win32 } try-process
+            ] [
+                qw{ cmake -DBUILD_SHARED_LIBS=ON .. } try-process
+                qw{ msbuild duckdb.sln /property:Configuration=Release } try-process
+            ] if
+            "src/Release/duckdb.dll" copy-output-file
+            "Release/duckdb.exe" copy-output-file
+        ] with-build-directory
+    ] with-updated-github-repo ;
+
 : build-yaml-dll ( -- )
     "yaml" "libyaml" [
         [