File tree 3 files changed +19
-13
lines changed
3 files changed +19
-13
lines changed Original file line number Diff line number Diff line change 22
22
- {os: macos-14, r: 'release'}
23
23
- {os: windows-latest, r: '4.1'}
24
24
- {os: windows-latest, r: '4.2'}
25
- - {os: windows-latest, r: 'release'}
25
+ - {os: windows-latest, r: '4.3'}
26
+ - {os: windows-latest, r: '4.4'}
26
27
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
27
28
- {os: ubuntu-latest, r: 'release'}
28
29
- {os: ubuntu-latest, r: 'oldrel-1'}
Original file line number Diff line number Diff line change 1
1
Version: 1.0
2
+ ProjectId: df551388-4dd3-412f-ac41-f4c0a0c8a880
2
3
3
4
RestoreWorkspace: Default
4
5
SaveWorkspace: Default
Original file line number Diff line number Diff line change 1
- RWINLIB = ../windows/libmariadbclient
1
+ PKG_CONFIG_NAME = libmariadbclient
2
+ PKG_CONFIG ?= $(BINPREF)pkg-config
3
+ PKG_LIBS := $(shell $(PKG_CONFIG) --libs $(PKG_CONFIG_NAME))
2
4
3
- ifeq ($(R_COMPILED_BY),gcc 8.3.0)
4
- TLS_LIBS = -lssl -lcrypto
5
+ ifneq ($(PKG_LIBS),)
6
+ $(info using $(PKG_CONFIG_NAME) from Rtools)
7
+ PKG_CPPFLAGS := $(shell $(PKG_CONFIG) --cflags $(PKG_CONFIG_NAME)) $(EXTRA_CFLAGS)
8
+ else
9
+ RWINLIB = ../windows/libmariadbclient
10
+ PKG_CPPFLAGS = -I$(RWINLIB)/include/mariadb
11
+ PKG_LIBS = -L$(RWINLIB)/lib$(R_ARCH) -L$(RWINLIB)/lib \
12
+ -lmariadbclient -lssl -lcrypto -lz -lbcrypt -lsecur32 -lshlwapi -lcrypt32 -lgdi32 -lws2_32 -pthread
5
13
endif
6
14
7
- PKG_CPPFLAGS = -I$(RWINLIB)/include/mariadb
8
- PKG_LIBS = \
9
- -L$(RWINLIB)/lib$(R_ARCH) \
10
- -L$(RWINLIB)/lib \
11
- -lmariadbclient $(TLS_LIBS) -lz -lbcrypt -lsecur32 -lshlwapi -lcrypt32 -lgdi32 -lws2_32 -pthread
15
+ all: $(SHLIB)
16
+
17
+ $(OBJECTS): $(RWINLIB)
12
18
13
- all: clean winlibs
19
+ $(RWINLIB):
20
+ "${R_HOME}/bin${R_ARCH_BIN}/Rscript.exe" "../tools/winlibs.R"
14
21
15
22
clean:
16
23
rm -f $(SHLIB) $(OBJECTS)
17
-
18
- winlibs:
19
- "${R_HOME}/bin${R_ARCH_BIN}/Rscript.exe" "../tools/winlibs.R" $(VERSION)
You can’t perform that action at this time.
0 commit comments