Kaydet (Commit) 0b9066d9 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Cross-compilation support and iOS in particular

üst bfed48d5
...@@ -98,13 +98,21 @@ xml2_LDFLAGS+=-L$(SYSBASE)$/usr$/lib ...@@ -98,13 +98,21 @@ xml2_LDFLAGS+=-L$(SYSBASE)$/usr$/lib
CONFIGURE_DIR= CONFIGURE_DIR=
CONFIGURE_ACTION=.$/configure CONFIGURE_ACTION=.$/configure
CONFIGURE_FLAGS=--enable-ipv6=no --without-python --without-zlib --enable-shared --disable-static --with-sax1=yes ADDCFLAGS="$(xml2_CFLAGS) $(EXTRA_CFLAGS)" LDFLAGS="$(xml2_LDFLAGS) $(EXTRA_LINKFLAGS)" .IF "$(OS)"=="IOS"
CONFIGURE_FLAGS+=--disable-shared
.ELSE
CONFIGURE_FLAGS=--disable-static
.ENDIF
CONFIGURE_FLAGS+=--enable-ipv6=no --without-python --without-zlib --with-sax1=yes ADDCFLAGS="$(xml2_CFLAGS) $(EXTRA_CFLAGS)" LDFLAGS="$(xml2_LDFLAGS) $(EXTRA_LINKFLAGS)"
BUILD_ACTION=$(GNUMAKE) BUILD_ACTION=$(GNUMAKE)
BUILD_FLAGS+= -j$(EXTMAXPROCESS) BUILD_FLAGS+= -j$(EXTMAXPROCESS)
BUILD_DIR=$(CONFIGURE_DIR) BUILD_DIR=$(CONFIGURE_DIR)
.IF "$(debug)"!="" .IF "$(debug)"!=""
CONFIGURE_FLAGS+=--with-mem-debug --with-run-debug CONFIGURE_FLAGS+=--with-mem-debug --with-run-debug
.ENDIF .ENDIF
.IF "$(CROSS_COMPILING)"!=""
CONFIGURE_FLAGS+= --build="$(BUILD_PLATFORM)" --host="$(HOST_PLATFORM)"
.ENDIF
.ENDIF .ENDIF
...@@ -115,6 +123,9 @@ EXTRPATH=URELIB ...@@ -115,6 +123,9 @@ EXTRPATH=URELIB
OUT2LIB+=.libs$/libxml2.*.dylib OUT2LIB+=.libs$/libxml2.*.dylib
OUT2BIN+=.libs$/xmllint OUT2BIN+=.libs$/xmllint
OUT2BIN+=xml2-config OUT2BIN+=xml2-config
.ELIF "$(OS)"=="IOS"
OUT2LIB+=.libs$/libxml2.a
OUT2BIN+=xml2-config
.ELIF "$(OS)"=="WNT" .ELIF "$(OS)"=="WNT"
.IF "$(COM)"=="GCC" .IF "$(COM)"=="GCC"
OUT2LIB+=.libs$/libxml2*.a OUT2LIB+=.libs$/libxml2*.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