Skip to content

Commit

Permalink
[make] Add "hashlink" library to release script (#712)
Browse files Browse the repository at this point in the history
  • Loading branch information
tobil4sk committed Sep 11, 2024
1 parent b711d4d commit 86d6130
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -242,20 +242,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

0 comments on commit 86d6130

Please sign in to comment.