Skip to content

Commit 70cc0c1

Browse files
committed
remove kdb+ client libraries from repository, download from main repo during build
1 parent b7f0201 commit 70cc0c1

File tree

5 files changed

+16
-155
lines changed

5 files changed

+16
-155
lines changed

src/Makevars

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
OSFLAG :=
22
MS :=
3+
QLIB :=
4+
QLIBS :=
35

46
ifeq ($(OS),Windows_NT)
57
OSFLAG = w
8+
QLIB = e_static
9+
QLIBS = .lib
610
ifeq "$(WIN)" "64"
711
MS = 64
812
else
@@ -24,14 +28,22 @@ else
2428
ifeq ($(SUB_UNAME), MINGW32)
2529
OSFLAG = w
2630
endif
27-
MS=$(shell getconf LONG_BIT) # 32/64
31+
MS=$(shell getconf LONG_BIT)
32+
QLIB=e
33+
QLIBS=.o
2834
endif
2935
QARCH=$(OSFLAG)$(MS)
3036

3137
PKG_CFLAGS=-D_GNU_SOURCE
3238
ifeq ($(OSFLAG),w)
33-
PKG_LIBS=-L$(QARCH) -le_static -lws2_32 -liphlpapi
39+
PKG_LIBS=-L. -l$(QLIB) -lws2_32 -liphlpapi
3440
else
35-
PKG_LIBS=$(addsuffix /e.o,$(QARCH))
41+
PKG_LIBS=$(QLIB)$(QLIBS)
3642
endif
37-
OBJECTS=rkdb.o
43+
OBJECTS=rkdb.o
44+
.PHONY: all lib k.h
45+
all: k.h lib
46+
lib:
47+
curl -O -J -L https://github.com/KxSystems/kdb/raw/master/$(QARCH)/$(QLIB)$(QLIBS)
48+
k.h:
49+
curl -O -J -L https://github.com/KxSystems/kdb/raw/master/c/c/k.h

src/k.h

Lines changed: 0 additions & 151 deletions
This file was deleted.

src/l64/e.o

-79.6 KB
Binary file not shown.

src/m64/e.o

-79.7 KB
Binary file not shown.

src/w64/e_static.lib

-188 KB
Binary file not shown.

0 commit comments

Comments
 (0)