ncannasse 7 lat temu
rodzic
commit
a3ef6fef1d
2 zmienionych plików z 32 dodań i 2 usunięć
  1. 31 1
      Makefile
  2. 1 1
      src/hl.h

+ 31 - 1
Makefile

@@ -120,6 +120,36 @@ ui: ${UI} libhl
 uv: ${UV} libhl
 	${CC} ${CFLAGS} -shared -o uv.hdll ${UV} ${LIBFLAGS} -L. -lhl -luv
 
+release: release_win release_haxelib
+	
+release_haxelib:
+	make HLIB=directx release_haxelib_package
+	make HLIB=sdl release_haxelib_package
+	make HLIB=openal release_haxelib_package
+
+ifeq ($(HLIB),directx)
+HLPACK=dx
+else
+HLPACK=$(HLIB)
+endif
+	
+release_haxelib_package:
+	rm -rf $(HLIB)_release
+	mkdir $(HLIB)_release
+	(cd libs/$(HLIB) && cp -R $(HLPACK) *.h *.c* haxelib.json ../../$(HLIB)_release | true)
+	zip -r $(HLIB).zip $(HLIB)_release
+	haxelib submit $(HLIB).zip
+	rm -rf $(HLIB)_release	
+	
+release_win:
+	rm -rf hl_release
+	mkdir hl_release
+	(cd ReleaseVS2013 && cp hl.exe libhl.dll *.hdll *.lib ../hl_release)
+	cp c:/windows/syswow64/msvcr120.dll hl_release
+	mkdir hl_release/include
+	cp src/hl.h src/hlc* hl_release/include
+	zip -r hl_release.zip hl_release
+	rm -rf hl_release
 
 .SUFFIXES : .c .o
 
@@ -132,4 +162,4 @@ clean_o:
 clean: clean_o
 	rm -f hl hl.exe libhl.$(LIBEXT) *.hdll
 
-.PHONY: libhl hl hlc fmt sdl libs
+.PHONY: libhl hl hlc fmt sdl libs release

+ 1 - 1
src/hl.h

@@ -22,7 +22,7 @@
 #ifndef HL_H
 #define HL_H
 
-#define HL_VERSION	0x130
+#define HL_VERSION	0x140
 
 #ifdef _WIN32
 #	define HL_WIN