Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[make] Add "hashlink" library to release script #712

Merged
merged 3 commits into from
Sep 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -235,20 +235,27 @@ mesa:
release: release_prepare release_$(RELEASE_NAME)

release_haxelib:
${MAKE} HLIB=hashlink release_haxelib_package
${MAKE} HLIB=directx release_haxelib_package
${MAKE} HLIB=sdl release_haxelib_package
${MAKE} HLIB=openal release_haxelib_package

ifeq ($(HLIB),hashlink)
HLDIR=other/haxelib
HLPACK=templates hlmem memory.hxml Run.hx
else
HLDIR=libs/$(HLIB)
ifeq ($(HLIB),directx)
HLPACK=dx
HLPACK=dx *.h *.c *.cpp
else
HLPACK=$(HLIB)
HLPACK=$(HLIB) *.h *.c
endif
endif

release_haxelib_package:
rm -rf $(HLIB)_release
mkdir $(HLIB)_release
(cd libs/$(HLIB) && cp -R $(HLPACK) *.h *.c* haxelib.json ../../$(HLIB)_release | true)
(cd $(HLDIR) && cp -R $(HLPACK) haxelib.json $(CURDIR)/$(HLIB)_release | true)
zip -r $(HLIB).zip $(HLIB)_release
haxelib submit $(HLIB).zip
rm -rf $(HLIB)_release
Expand Down