-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (27 loc) · 834 Bytes
/
Makefile
File metadata and controls
39 lines (27 loc) · 834 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
MRUBY_URL := https://github.com/mruby/mruby.git
MRUBY_A := libmruby.a
MRUBY_A_FULL = build/androideabi/lib/$(MRUBY_A)
MRUBY_WITHOUT_JNI=0
all: setup build.xml
$(ANDROID_NDK_HOME)/ndk-build
ant debug install
.PHONY : clean all clean-with-git setup
andruboid.zip: setup
git clean -fxd -e "jni/*" -e $@
zip $@ -r . -x ./mruby\* $@
setup: jni/$(MRUBY_A) jni/mruby-all.h
jni/$(MRUBY_A): mruby/$(MRUBY_A_FULL)
cp $< $@
mruby/$(MRUBY_A_FULL): mruby mruby_config.rb
cd mruby ; MRUBY_CONFIG=../mruby_config.rb ruby minirake $(abspath $@)
mruby:
git clone $(MRUBY_URL) mruby
mruby_config.rb: mruby/build_config.rb build_config
cat $^ > mruby_config.rb
jni/mruby-all.h: make_header.rb mruby
ruby $<
build.xml:
$(ANDROID_SDK_HOME)/tools/android update project -p . -t 1
clean: clean-with-git
clean-with-git:
git clean -fxd