Skip to content

Commit

Permalink
Add Makevars.win
Browse files Browse the repository at this point in the history
  • Loading branch information
robomics committed Feb 5, 2024
1 parent 563b7e8 commit 96953cf
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/Makevars.win
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
PWD := $(shell pwd)
export CONAN_HOME := "$(PWD)\conan-staging\.conan2"
export CC := "$(shell "$(R_HOME)/bin/Rscript" -e 'Sys.which("gcc")')"
export CXX := "$(shell "$(R_HOME)/bin/Rscript" -e 'Sys.which("g++")')"

CONANDEPS_MK := $(shell ..\run_conan.py)
include $(CONANDEPS_MK)

PKG_CPPFLAGS := -std=c++17
PKG_CPPFLAGS := $(PKG_CPPFLAGS) $(shell "$(R_HOME)/bin/Rscript" -e 'Rcpp:::CxxFlags()' 2> /dev/null)
PKG_CPPFLAGS := $(PKG_CPPFLAGS) $(addprefix -isystem ,$(CONAN_INCLUDE_DIRS))
PKG_CPPFLAGS := $(PKG_CPPFLAGS) $(addprefix -isystem ,$(CONAN_INCLUDE_DIRS_HDF5_HDF5_C))
PKG_CPPFLAGS := $(PKG_CPPFLAGS) $(addprefix -D ,$(CONAN_DEFINES))

PKG_LIBS := $(addprefix -L ,$(CONAN_LIB_DIRS))
PKG_LIBS := $(PKG_LIBS) $(addprefix -l,$(CONAN_LIBS))
PKG_LIBS := $(PKG_LIBS) $(addprefix -l,$(CONAN_SYSTEM_LIBS))

0 comments on commit 96953cf

Please sign in to comment.