git » sdk » commit 56e6f34

Use output filename variable

author Stephen Paul Weber
2026-03-10 15:13:59 UTC
committer Stephen Paul Weber
2026-03-10 15:13:59 UTC
parent 42cf66897d00924d492a0d33213705b307ff7fb4

Use output filename variable

Doesn't use the .so extension still but better than "output.dso"

Makefile +3 -3
cpp.hxml +1 -0

diff --git a/Makefile b/Makefile
index e45b7c8..1241c68 100644
--- a/Makefile
+++ b/Makefile
@@ -46,11 +46,11 @@ npm: npm/borogove-browser.js npm/borogove.js borogove/persistence/IDB.js borogov
 	-cd npm && npx tsc --esModuleInterop --lib esnext,dom --target esnext --preserveConstEnums --allowJs --checkJs -d index.ts > /dev/null
 	cd npm && npx tsc --esModuleInterop --lib esnext,dom --target esnext --preserveConstEnums --allowJs --checkJs -d index.ts
 
-cpp/output.dso:
+cpp/libborogove.dso:
 	haxe cpp.hxml
 
-libborogove.so: cpp/output.dso
-	mv cpp/output.dso libborogove.so
+libborogove.so: cpp/libborogove.dso
+	mv cpp/libborogove.dso libborogove.so
 
 doc:
 	npx @microsoft/api-extractor run -c npm/api-extractor.json || true
diff --git a/cpp.hxml b/cpp.hxml
index a01eb86..439517c 100644
--- a/cpp.hxml
+++ b/cpp.hxml
@@ -22,3 +22,4 @@ borogove.persistence.MediaStoreFS
 -D HXCPP_CPP17
 -D HaxeCBridge.name=borogove
 -D dll_link
+-D HAXE_OUTPUT_FILE=libborogove