diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-11-16 13:40:22 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-11-16 16:07:03 +0000 |
commit | fb7d4ba1cbe24b74dfab0f54eeffe898a0291ce3 (patch) | |
tree | 179aa2c28935ea4c805290afb63f37a5cbccde56 /RepositoryExternal.mk | |
parent | dc65f048fd1b08d17e71e4d3a3a3c114aae871e6 (diff) |
build cairo on android
Change-Id: Ie2f7662a4cc3955963517f265894b8f6a495ece8
Reviewed-on: https://gerrit.libreoffice.org/19991
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'RepositoryExternal.mk')
-rw-r--r-- | RepositoryExternal.mk | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/RepositoryExternal.mk b/RepositoryExternal.mk index 31beeb977963..42f53dbb4ea9 100644 --- a/RepositoryExternal.mk +++ b/RepositoryExternal.mk @@ -1272,6 +1272,24 @@ endef endif # SYSTEM_CAIRO +else ifeq ($(OS),ANDROID) + +define gb_LinkTarget__use_cairo +$(call gb_LinkTarget_use_package,$(1),cairo) +$(call gb_LinkTarget_use_package,$(1),pixman) +$(call gb_LinkTarget_use_external,$(1),freetype_headers) +$(call gb_LinkTarget_set_include,$(1),\ + -I$(call gb_UnpackedTarball_get_dir,cairo) \ + -I$(call gb_UnpackedTarball_get_dir,cairo)/src \ + $$(INCLUDE) \ +) +$(call gb_LinkTarget_add_libs,$(1),\ + -L$(call gb_UnpackedTarball_get_dir,cairo)/src/.libs -lcairo \ + -L$(call gb_UnpackedTarball_get_dir,pixman)/pixman/.libs -lpixman-1 \ +) + +endef + endif # CAIRO ifneq ($(SYSTEM_FREETYPE),) |