Kaydet (Commit) 9a42ca71 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Build the redland libs statically for Android

They are only linked to libunordf anyway, so we reduce the number of
shared libraries a bit this way.
üst 0d1c24e5
...@@ -404,6 +404,8 @@ endef ...@@ -404,6 +404,8 @@ endef
else # !SYSTEM_REDLAND else # !SYSTEM_REDLAND
ifneq ($(OS),ANDROID)
$(eval $(call gb_Helper_register_libraries,PLAINLIBS_OOO, \ $(eval $(call gb_Helper_register_libraries,PLAINLIBS_OOO, \
rdf \ rdf \
)) ))
...@@ -421,6 +423,26 @@ endif ...@@ -421,6 +423,26 @@ endif
endef endef
else # ANDROID
$(eval $(call gb_Helper_register_static_libraries,PLAINLIBS, \
rdf \
rasqal \
raptor \
))
define gb_LinkTarget__use_librdf
$(call gb_LinkTarget_use_static_libraries,$(1),\
rdf \
rasqal \
raptor \
crypto \
)
endef
endif # ANDROID
endif # SYSTEM_REDLAND endif # SYSTEM_REDLAND
......
...@@ -167,6 +167,9 @@ CONFIGURE_ACTION=.$/configure ...@@ -167,6 +167,9 @@ CONFIGURE_ACTION=.$/configure
.IF "$(OS)"=="IOS" .IF "$(OS)"=="IOS"
CONFIGURE_ACTION+=LIBS=-liconv CONFIGURE_ACTION+=LIBS=-liconv
.ENDIF
.IF "$(OS)"=="IOS" || "$(OS)"=="ANDROID"
CONFIGURE_FLAGS=--disable-shared CONFIGURE_FLAGS=--disable-shared
.ELSE .ELSE
CONFIGURE_FLAGS=--disable-static CONFIGURE_FLAGS=--disable-static
...@@ -202,12 +205,9 @@ OUT2INC+=src$/raptor.h ...@@ -202,12 +205,9 @@ OUT2INC+=src$/raptor.h
.IF "$(OS)"=="MACOSX" .IF "$(OS)"=="MACOSX"
OUT2LIB+=src$/.libs$/libraptor-lo.$(RAPTOR_MAJOR).dylib src$/.libs$/libraptor.dylib OUT2LIB+=src$/.libs$/libraptor-lo.$(RAPTOR_MAJOR).dylib src$/.libs$/libraptor.dylib
OUT2BIN+=src/raptor-config OUT2BIN+=src/raptor-config
.ELIF "$(OS)"=="IOS" .ELIF "$(OS)"=="IOS" || "$(OS)"=="ANDROID"
OUT2LIB+=src$/.libs$/libraptor.a OUT2LIB+=src$/.libs$/libraptor.a
OUT2BIN+=src/raptor-config OUT2BIN+=src/raptor-config
.ELIF "$(OS)"=="ANDROID"
OUT2LIB+=src$/.libs$/libraptor.so
OUT2BIN+=src/raptor-config
.ELIF "$(OS)"=="AIX" .ELIF "$(OS)"=="AIX"
OUT2LIB+=src$/.libs$/libraptor-lo.so.$(RAPTOR_MAJOR) src$/.libs$/libraptor.so OUT2LIB+=src$/.libs$/libraptor-lo.so.$(RAPTOR_MAJOR) src$/.libs$/libraptor.so
OUT2BIN+=src/raptor-config OUT2BIN+=src/raptor-config
......
...@@ -86,7 +86,7 @@ rasqal_LDFLAGS+= -L$(ILIB:s/;/ -L/) ...@@ -86,7 +86,7 @@ rasqal_LDFLAGS+= -L$(ILIB:s/;/ -L/)
CONFIGURE_DIR= CONFIGURE_DIR=
CONFIGURE_ACTION=.$/configure PATH="..$/..$/..$/bin:$$PATH" CONFIGURE_ACTION=.$/configure PATH="..$/..$/..$/bin:$$PATH"
CONFIGURE_FLAGS=--disable-static --disable-gtk-doc --with-openssl-digests --with-xml-parser=libxml --without-bdb --without-sqlite --without-mysql --without-postgresql --without-threestore --disable-pcre --with-decimal=none --with-www=xml --build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM) lt_cv_cc_dll_switch="-shared" CC="$(rasqal_CC)" CPPFLAGS="$(INCLUDE)" LDFLAGS="$(rasqal_LDFLAGS)" LIBS="$(rasqal_LIBS)" OBJDUMP="$(WRAPCMD) $(HOST_PLATFORM)-objdump" LIBXML2LIB="$(LIBXML2LIB)" XSLTLIB="$(XSLTLIB)" CONFIGURE_FLAGS=--disable-static --enable-shared --disable-gtk-doc --with-openssl-digests --with-xml-parser=libxml --without-bdb --without-sqlite --without-mysql --without-postgresql --without-threestore --disable-pcre --with-decimal=none --with-www=xml --build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM) lt_cv_cc_dll_switch="-shared" CC="$(rasqal_CC)" CPPFLAGS="$(INCLUDE)" LDFLAGS="$(rasqal_LDFLAGS)" LIBS="$(rasqal_LIBS)" OBJDUMP="$(WRAPCMD) $(HOST_PLATFORM)-objdump" LIBXML2LIB="$(LIBXML2LIB)" XSLTLIB="$(XSLTLIB)"
BUILD_ACTION=$(GNUMAKE) BUILD_ACTION=$(GNUMAKE)
BUILD_FLAGS+= -j$(EXTMAXPROCESS) BUILD_FLAGS+= -j$(EXTMAXPROCESS)
BUILD_DIR=$(CONFIGURE_DIR) BUILD_DIR=$(CONFIGURE_DIR)
...@@ -139,7 +139,7 @@ XSLTLIB!:=$(XSLTLIB) # expand dmake variables for xslt-config ...@@ -139,7 +139,7 @@ XSLTLIB!:=$(XSLTLIB) # expand dmake variables for xslt-config
CONFIGURE_DIR= CONFIGURE_DIR=
CONFIGURE_ACTION=.$/configure PATH="..$/..$/..$/bin:$$PATH" CONFIGURE_ACTION=.$/configure PATH="..$/..$/..$/bin:$$PATH"
.IF "$(OS)"=="IOS" .IF "$(OS)"=="IOS" || "$(OS)"=="ANDROID"
CONFIGURE_FLAGS=--disable-shared CONFIGURE_FLAGS=--disable-shared
.ELSE .ELSE
CONFIGURE_FLAGS=--disable-static CONFIGURE_FLAGS=--disable-static
...@@ -163,12 +163,9 @@ OUT2INC+=src$/rasqal.h ...@@ -163,12 +163,9 @@ OUT2INC+=src$/rasqal.h
.IF "$(OS)"=="MACOSX" .IF "$(OS)"=="MACOSX"
OUT2LIB+=src$/.libs$/librasqal-lo.$(RASQAL_MAJOR).dylib src$/.libs$/librasqal.dylib OUT2LIB+=src$/.libs$/librasqal-lo.$(RASQAL_MAJOR).dylib src$/.libs$/librasqal.dylib
OUT2BIN+=src/rasqal-config OUT2BIN+=src/rasqal-config
.ELIF "$(OS)"=="IOS" .ELIF "$(OS)"=="IOS" || "$(OS)"=="ANDROID"
OUT2LIB+=src$/.libs$/librasqal.a OUT2LIB+=src$/.libs$/librasqal.a
OUT2BIN+=src/rasqal-config OUT2BIN+=src/rasqal-config
.ELIF "$(OS)"=="ANDROID"
OUT2LIB+=src$/.libs$/librasqal.so
OUT2BIN+=src/rasqal-config
.ELIF "$(OS)"=="WNT" .ELIF "$(OS)"=="WNT"
.IF "$(COM)"=="GCC" .IF "$(COM)"=="GCC"
OUT2LIB+=src$/.libs$/*.a OUT2LIB+=src$/.libs$/*.a
......
...@@ -144,7 +144,7 @@ XSLTLIB!:=$(XSLTLIB) # expand dmake variables for xslt-config ...@@ -144,7 +144,7 @@ XSLTLIB!:=$(XSLTLIB) # expand dmake variables for xslt-config
CONFIGURE_DIR= CONFIGURE_DIR=
CONFIGURE_ACTION=.$/configure PATH="..$/..$/..$/bin:$$PATH" CONFIGURE_ACTION=.$/configure PATH="..$/..$/..$/bin:$$PATH"
CONFIGURE_FLAGS=--disable-gtk-doc --with-openssl-digests --with-xml-parser=libxml --with-raptor=system --with-rasqual=system --without-bdb --without-sqlite --without-mysql --without-postgresql --without-threestore --with-regex-library=posix --with-decimal=none --with-www=xml CONFIGURE_FLAGS=--disable-gtk-doc --with-openssl-digests --with-xml-parser=libxml --with-raptor=system --with-rasqual=system --without-bdb --without-sqlite --without-mysql --without-postgresql --without-threestore --with-regex-library=posix --with-decimal=none --with-www=xml
.IF "$(OS)"=="IOS" .IF "$(OS)"=="IOS" || "$(OS)"=="ANDROID"
CONFIGURE_FLAGS+= --disable-shared CONFIGURE_FLAGS+= --disable-shared
.ELSE .ELSE
CONFIGURE_FLAGS+= --disable-static CONFIGURE_FLAGS+= --disable-static
...@@ -169,10 +169,8 @@ OUT2INC+=librdf$/*.h ...@@ -169,10 +169,8 @@ OUT2INC+=librdf$/*.h
.IF "$(OS)"=="MACOSX" .IF "$(OS)"=="MACOSX"
OUT2LIB+=librdf$/.libs$/librdf-lo.$(REDLAND_MAJOR).dylib OUT2LIB+=librdf$/.libs$/librdf-lo.$(REDLAND_MAJOR).dylib
.ELIF "$(OS)"=="IOS" .ELIF "$(OS)"=="IOS" || "$(OS)"=="ANDROID"
OUT2LIB+=librdf$/.libs$/librdf.a OUT2LIB+=librdf$/.libs$/librdf.a
.ELIF "$(OS)"=="ANDROID"
OUT2LIB+=librdf$/.libs$/librdf.so
.ELIF "$(OS)"=="WNT" .ELIF "$(OS)"=="WNT"
.IF "$(COM)"=="GCC" .IF "$(COM)"=="GCC"
OUT2LIB+=librdf$/.libs$/*.a OUT2LIB+=librdf$/.libs$/*.a
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment