зеркало из https://github.com/mozilla/shumway.git
Adds flex-sdk install and swf build target
This commit is contained in:
Родитель
62c3117902
Коммит
bc7d3c4f85
7
Makefile
7
Makefile
|
@ -37,7 +37,7 @@ install-libs:
|
|||
git submodule update
|
||||
|
||||
install-utils: check-system
|
||||
make -C utils/ install-asc install-closure install-tamarin install-js install-node-modules
|
||||
make -C utils/ install-asc install-closure install-tamarin install-js install-node-modules install-flex-sdk
|
||||
|
||||
BASE ?= $(error ERROR: Specify BASE that points to the Shumway folder with installed utils)
|
||||
|
||||
|
@ -64,6 +64,11 @@ check-extension: build-extension
|
|||
build-web:
|
||||
make -C web/ build
|
||||
|
||||
MXMLC_FLAGS ?= -static-link-runtime-shared-libraries
|
||||
MXMLC = ./utils/flex_sdk/bin/mxmlc $(MXMLC_FLAGS)
|
||||
%.swf: %.as
|
||||
$(MXMLC) $<
|
||||
|
||||
update-flash-refs:
|
||||
node utils/update-flash-refs.js examples/inspector/inspector.html src/flash
|
||||
node utils/update-flash-refs.js examples/racing/index.html src/flash
|
||||
|
|
|
@ -36,6 +36,9 @@ CLOSURE_URL = http://closure-compiler.googlecode.com/files/compiler-latest.zip
|
|||
ASC_JAR = ./asc.jar
|
||||
ASC_URL = ftp://ftp.mozilla.org/pub/js/tamarin/builds/asc/latest/asc.jar
|
||||
|
||||
FLEX_HOME = ./flex_sdk
|
||||
FLEX_URL = http://download.macromedia.com/pub/flex/sdk/flex_sdk_4.6.zip
|
||||
|
||||
ifeq ($(UNAME), Darwin)
|
||||
DARWING_VER = $(shell uname -a)
|
||||
ifneq ("$(filter 12.%, $(DARWING_VER))", "")
|
||||
|
@ -124,6 +127,12 @@ install-node-modules:
|
|||
install-swfdec:
|
||||
git clone git://anongit.freedesktop.org/swfdec/swfdec
|
||||
|
||||
install-flex-sdk:
|
||||
-rm -rf $(FLEX_HOME)
|
||||
mkdir -p $(FLEX_HOME)
|
||||
wget $(FLEX_URL) -O $(FLEX_HOME)/flex_sdk.zip
|
||||
unzip $(FLEX_HOME)/flex_sdk.zip -d $(FLEX_HOME)
|
||||
|
||||
build-playerglobal:
|
||||
make -C playerGlobal/ build
|
||||
|
||||
|
@ -133,7 +142,7 @@ clean:
|
|||
-rm -rf $(JSSHELL_HOME)
|
||||
make -C playerGlobal/ clean
|
||||
|
||||
.PHONY: install-tamarin install-js install-swfdec \
|
||||
.PHONY: install-tamarin install-js install-swfdec install-flex-sdk \
|
||||
install-node-modules build-tamarin-tests build-playerglobal \
|
||||
clean default
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче