Skip to content

Commit

Permalink
download libxml2 instead of bundle it to meet size limit of bioc
Browse files Browse the repository at this point in the history
  • Loading branch information
mikejiang committed Nov 18, 2020
1 parent cef2458 commit 0d30d23
Show file tree
Hide file tree
Showing 57 changed files with 18 additions and 14,479 deletions.
9 changes: 9 additions & 0 deletions src/Makevars.win
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,12 @@ libxmllibs=-L$(RWINLIB)/lib${R_ARCH} -lxml2 -llzma -liconv -lz

PKG_LIBS += $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS) $(libxmllibs) `${R_HOME}/bin/Rscript -e "cytolib:::cytolib_LdFlags();cat(' ');RProtoBufLib:::LdFlags();cat(' ');RcppParallel::RcppParallelLibs()"` ${RHDF5_LIBS} -lws2_32

all: clean winlibs

clean:
rm -f $(OBJECTS) $(SHLIB)

winlibs:
"${R_HOME}/bin${R_ARCH_BIN}/Rscript.exe" "../tools/winlibs.R" $(VERSION)

.PHONY: all winlibs clean
9 changes: 9 additions & 0 deletions tools/winlibs.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Build against static libraries from rwinlib
VERSION <- commandArgs(TRUE)
if(!file.exists(sprintf("../windows/libxml2-%s/include/libxml2/libxml/parser.h", VERSION))){
if(getRversion() < "3.3.0") setInternet2()
download.file(sprintf("https://github.com/rwinlib/libxml2/archive/v%s.zip", VERSION), "lib.zip", quiet = TRUE)
dir.create("../windows", showWarnings = FALSE)
unzip("lib.zip", exdir = "../windows")
unlink("lib.zip")
}
96 changes: 0 additions & 96 deletions windows/libxml2-2.9.4/include/libxml2/libxml/DOCBparser.h

This file was deleted.

Loading

0 comments on commit 0d30d23

Please sign in to comment.