@@ -60,12 +60,13 @@ if (!dir.exists(cran_dir)) {
60
60
src_files <- list.files(" src" , pattern = " .[^o]$" , recursive = TRUE , full.names = TRUE )
61
61
pybind_src_files <- list.files(" src" , pattern = " ^(py_)" , recursive = TRUE , full.names = TRUE )
62
62
r_src_files <- src_files [! (src_files %in% pybind_src_files )]
63
- r_src_files <- r_src_files [! (r_src_files %in% c(" src/Makevars" ))]
63
+ r_src_files <- r_src_files [! (r_src_files %in% c(" src/Makevars" , " src/Makevars.win " ))]
64
64
cat(r_src_files )
65
65
pkg_core_files <- c(
66
66
" .Rbuildignore" ,
67
67
" configure" ,
68
68
" configure.ac" ,
69
+ " configure.win" ,
69
70
" cran-comments.md" ,
70
71
" DESCRIPTION" ,
71
72
" inst/COPYRIGHTS" ,
@@ -139,7 +140,7 @@ if (all(file.exists(pkg_core_files))) {
139
140
}
140
141
}
141
142
142
- # Overwrite PKG_CPPFLAGS in src/Makevars
143
+ # Overwrite PKG_CPPFLAGS in src/Makevars.in
143
144
cran_makevars <- file.path(cran_dir , " src/Makevars.in" )
144
145
makevars_lines <- readLines(cran_makevars )
145
146
makevars_lines [grep(" -I$(PKGROOT)/include \\ " , makevars_lines , fixed = T )] <- " -I$(PKGROOT)/src/include \\ "
@@ -150,6 +151,17 @@ makevars_lines <- makevars_lines[-c(
150
151
)]
151
152
writeLines(makevars_lines , cran_makevars )
152
153
154
+ # Overwrite PKG_CPPFLAGS in src/Makevars.win.in
155
+ cran_makevars_win <- file.path(cran_dir , " src/Makevars.win.in" )
156
+ makevars_win_lines <- readLines(cran_makevars_win )
157
+ makevars_win_lines [grep(" -I$(PKGROOT)/include \\ " , makevars_win_lines , fixed = T )] <- " -I$(PKGROOT)/src/include \\ "
158
+ makevars_win_lines <- makevars_win_lines [- c(
159
+ grep(" -I$(PKGROOT)/deps/eigen \\ " , makevars_win_lines , fixed = T ),
160
+ grep(" -I$(PKGROOT)/deps/fmt/include \\ " , makevars_win_lines , fixed = T ),
161
+ grep(" -I$(PKGROOT)/deps/fast_double_parser/include \\ " , makevars_win_lines , fixed = T )
162
+ )]
163
+ writeLines(makevars_win_lines , cran_makevars_win )
164
+
153
165
# Remove vignette deps from DESCRIPTION if no vignettes
154
166
if (! include_vignettes ) {
155
167
cran_description <- file.path(cran_dir , " DESCRIPTION" )
0 commit comments