changes haxe build
This commit is contained in:
parent
0812b43bb8
commit
21505261f8
5
Makefile
5
Makefile
@ -1,14 +1,17 @@
|
|||||||
BIN_NAME := Haxe.lua
|
BIN_NAME := Haxe.lua
|
||||||
MINIFYD_NAME := Haxe.min.lua
|
MINIFYD_NAME := Haxe.min.lua
|
||||||
BUILD_DIR := build
|
BUILD_DIR := build
|
||||||
|
HAXE_FLAGS = -D webconsole
|
||||||
|
|
||||||
BIN_PATH := $(BUILD_DIR)/$(BIN_NAME)
|
BIN_PATH := $(BUILD_DIR)/$(BIN_NAME)
|
||||||
MIN_PATH := $(BUILD_DIR)/$(MINIFYD_NAME)
|
MIN_PATH := $(BUILD_DIR)/$(MINIFYD_NAME)
|
||||||
|
|
||||||
all: clean $(MIN_PATH)
|
all: clean $(MIN_PATH)
|
||||||
|
|
||||||
|
build: $(MIN_PATH)
|
||||||
|
|
||||||
$(BIN_PATH): $(shell find src -name '*.hx')
|
$(BIN_PATH): $(shell find src -name '*.hx')
|
||||||
haxe build.hxml --lua $@
|
haxe build.hxml $(HAXE_FLAGS)
|
||||||
|
|
||||||
$(MIN_PATH): $(BIN_PATH)
|
$(MIN_PATH): $(BIN_PATH)
|
||||||
node minify.js $@
|
node minify.js $@
|
||||||
|
@ -5,5 +5,5 @@
|
|||||||
|
|
||||||
--dce full
|
--dce full
|
||||||
|
|
||||||
# --lua build/Haxe.lua
|
--lua build/Haxe.lua
|
||||||
-D lua-vanilla
|
-D lua-vanilla
|
||||||
|
Loading…
Reference in New Issue
Block a user