support android build

This commit is contained in:
Yongjin Kim 2013-04-29 13:28:20 +09:00 committed by aydin.kim
parent 0c50d4374f
commit 3230f4c2e3
5 changed files with 332 additions and 108 deletions

View file

@ -6,6 +6,7 @@ check-$(1) : $$(DONE_$(1))
$$(Q) \
$$(ENV_CFLAGS_$(1)) \
$$(ENV_CXXFLAGS_$(1)) \
$$(ENV_RFLAGS_$(1)) \
$$(MAKE) -C $$(B)src/$$(PATH_$(1)) check

View file

@ -47,4 +47,4 @@ clean-script:
clean-servo: clean-gfx clean-util clean-net clean-script clean-msg
@$(call E, "cleaning servo")
$(Q)rm -f servo servo-test
$(Q)rm -f servo servo-test libservo*.so

View file

@ -157,3 +157,51 @@ DEPS_rust-layers += \
$(NULL)
endif
ifeq ($(CFG_OSTYPE),linux-androideabi)
DEPS_rust-azure += \
rust-freetype \
rust-fontconfig \
fontconfig \
libfreetype2 \
libexpat \
$(NULL)
# See note at top of file
DEPS_rust-layers += \
rust-freetype \
rust-fontconfig \
$(NULL)
DEPS_rust-fontconfig += \
fontconfig \
rust-freetype \
$(NULL)
DEPS_rust-freetype += \
libfreetype2 \
$(NULL)
DEPS_fontconfig += \
libexpat \
libfreetype2 \
$(NULL)
CFLAGS_fontconfig += \
"-I$(S)src/platform/android/libexpat/expat/lib" \
"-I$(S)src/platform/android/libfreetype2/include" \
$(NULL)
endif
DEPS_skia += \
libfreetype2 \
$(NULL)
CXXFLAGS_skia += \
-I$(S)src/platform/android/libfreetype2/include \
$(NULL)
NATIVE_BUILD += \
libfreetype2 \
libexpat \
fontconfig \
$(NULL)