diff --git a/Makefile b/Makefile index 405203fda..a9fb15ffc 100644 --- a/Makefile +++ b/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 diff --git a/utils/Makefile b/utils/Makefile index 607aac30a..542d44824 100755 --- a/utils/Makefile +++ b/utils/Makefile @@ -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