[Rcpp-commits] r2620 - in pkg/RcppGSL: R inst/skeleton

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Tue Nov 30 15:19:15 CET 2010


Author: romain
Date: 2010-11-30 15:19:15 +0100 (Tue, 30 Nov 2010)
New Revision: 2620

Added:
   pkg/RcppGSL/inst/skeleton/configure.win
Modified:
   pkg/RcppGSL/R/inline.R
Log:
also configure.win

Modified: pkg/RcppGSL/R/inline.R
===================================================================
--- pkg/RcppGSL/R/inline.R	2010-11-30 14:16:49 UTC (rev 2619)
+++ pkg/RcppGSL/R/inline.R	2010-11-30 14:19:15 UTC (rev 2620)
@@ -89,6 +89,7 @@
     settings <- plugin()
     settings$env$PKG_CPPFLAGS <- CFlags(FALSE)
     settings$configure <- readLines( system.file( "skeleton", "configure", package = "RcppGSL" ) )
+    settings$configure.win <- readLines( system.file( "skeleton", "configure.win", package = "RcppGSL" ) )
     settings$Makevars.in <- readLines( system.file( "skeleton", "Makevars.in", package = "RcppGSL" ) )
     settings
 }

Added: pkg/RcppGSL/inst/skeleton/configure.win
===================================================================
--- pkg/RcppGSL/inst/skeleton/configure.win	                        (rev 0)
+++ pkg/RcppGSL/inst/skeleton/configure.win	2010-11-30 14:19:15 UTC (rev 2620)
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+GSL_CFLAGS=`${R_HOME}/bin/Rscript -e "RcppGSL:::CFlags()"`
+GSL_LIBS=`${R_HOME}/bin/Rscript -e "RcppGSL:::LdFlags()"`
+RCPP_LDFLAGS=`${R_HOME}/bin/Rscript -e "Rcpp:::LdFlags()"`
+
+sed -e "s|@GSL_LIBS@|${GSL_LIBS}|" src/Makevars.in |
+    sed -e "s|@GSL_CFLAGS@|${GSL_CFLAGS}|" |
+    sed -e "s|@RCPP_LDFLAGS@|${RCPP_LDFLAGS}|" > src/Makevars
+



More information about the Rcpp-commits mailing list