Skip to content

Commit

Permalink
Cleanup Windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed May 8, 2023
1 parent f23a5a7 commit 8ff7ca8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 0 additions & 2 deletions src/Makevars.ucrt

This file was deleted.

5 changes: 2 additions & 3 deletions src/Makevars.win
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
CXX_STD = CXX11
GCC_VERSION = ${subst gcc,,${COMPILED_BY}}
RWINLIB = ../windows/zeromq-4.3.4

PKG_CXXFLAGS = -Wno-deprecated-declarations
#PKG_CXXFLAGS = -Wno-deprecated-declarations

PKG_CPPFLAGS = -DZMQ_STATIC \
-I${RWINLIB}/include -I../inst

PKG_LIBS = \
-L${RWINLIB}/lib${GCC_VERSION}${R_ARCH} \
-L${RWINLIB}/lib${R_ARCH}${CRT} \
-L${RWINLIB}/lib${R_ARCH} \
-lzmq -lsodium -liphlpapi -lws2_32

all: clean winlibs
Expand Down
2 changes: 1 addition & 1 deletion tools/winlibs.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Build against precompiled zeromq libs.
if(!file.exists("../windows/zeromq-4.3.4/include/zmq.h")){
if(getRversion() < "3.3.0") setInternet2()
download.file("https://github.com/rwinlib/zeromq/archive/v4.3.4.zip", "lib.zip", quiet = TRUE)
download.file("https://github.com/rwinlib/zeromq/archive/4.3.4.zip", "lib.zip", quiet = TRUE)
dir.create("../windows", showWarnings = FALSE)
unzip("lib.zip", exdir = "../windows")
unlink("lib.zip")
Expand Down

0 comments on commit 8ff7ca8

Please sign in to comment.