Skip to content

Commit

Permalink
Add "hashlink" library to make release script
Browse files Browse the repository at this point in the history
  • Loading branch information
tobil4sk authored Sep 3, 2024
1 parent 9888913 commit cede6e5
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -235,20 +235,25 @@ 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

HLPACK=$(HLIB)
HLDIR=libs/$(HLIB)

ifeq ($(HLIB),directx)
HLPACK=dx
else
HLPACK=$(HLIB)
else ifeq ($(HLIB),hashlink)
HLDIR=other/haxelib
HLPACK=templates
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) *.h *.c* *.hx haxelib.json $(CURDIR)/$(HLIB)_release | true)
zip -r $(HLIB).zip $(HLIB)_release
haxelib submit $(HLIB).zip
rm -rf $(HLIB)_release
Expand Down

0 comments on commit cede6e5

Please sign in to comment.