File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ 2024-03-25 Tomas Kalibera <tomas.kalibera@gmail.com>
2+
3+ * src/Makevars.win: Preferentially use QuantLib from the system if
4+ found via pkg-config (prepare for upcoming Rtools)
5+
162025-03-24 Dirk Eddelbuettel <edd@debian.org>
27
38 * DESCRIPTION (Version, Date): New release 0.4.25
Original file line number Diff line number Diff line change 66# Copyright 2011 Uwe Ligges, Brian Ripley, and Josh Ulrich
77# Copyright 2018 - 2024 Jeroen Ooms
88
9- RWINLIB =../windows/quantlib
10- PKG_CPPFLAGS =-I$(RWINLIB ) /include -I../inst/include
11- PKG_CXXFLAGS =-DBOOST_NO_AUTO_PTR
12- PKG_LIBS = -L$(RWINLIB ) /lib$(R_ARCH ) -L$(RWINLIB ) /lib -lQuantLib
9+ PKG_CPPFLAGS = $(shell pkg-config --cflags quantlib 2>/dev/null)
10+ PKG_LIBS = $(shell pkg-config --libs quantlib 2>/dev/null)
11+
12+ ifeq ($(PKG_LIBS ) ,)
13+ RWINLIB = ../windows/quantlib
14+ PKG_CPPFLAGS = -I$(RWINLIB ) /include
15+ PKG_LIBS = -L$(RWINLIB ) /lib$(R_ARCH ) -L$(RWINLIB ) /lib -lQuantLib
16+ endif
17+
18+ PKG_CPPFLAGS += -I../inst/include
19+ PKG_CXXFLAGS = -DBOOST_NO_AUTO_PTR
1320
1421all : clean winlibs
1522
1623clean :
1724 rm -f $(SHLIB ) $(OBJECTS )
1825
1926winlibs :
27+ ifneq ($(RWINLIB ) ,)
2028 "${R_HOME}/bin${R_ARCH_BIN}/Rscript.exe" "../tools/winlibs.R"
29+ endif
30+
You can’t perform that action at this time.
0 commit comments