Skip to content

Commit

Permalink
Wizard recipe: kdb_c_api-v2022.9.3 (#5417)
Browse files Browse the repository at this point in the history
* New Recipe: kdb_c_api v2022.9.3

* added suggestions

* put in the right commit sha and fixed m64arm directory
  • Loading branch information
p-casgrain authored Sep 3, 2022
1 parent 1488c09 commit ca6e2e7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions K/kdb_c_api/build_tarballs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,23 @@
using BinaryBuilder, Pkg

name = "kdb_c_api"
version = v"2022.7.19"
version = v"2022.09.03"

# Collection of sources required to complete build
sources = [
GitSource("https://github.com/KxSystems/kdb.git", "01fb1243c6b32079938ef88a4434e46d2f3c00be")
GitSource("https://github.com/KxSystems/kdb.git", "f1b8e5e1dfaf86b1ccd3a2634d10e07718b71ece")
]

# Bash recipe for building across all platforms
script = raw"""
cd $WORKSPACE/srcdir
cd $WORKSPACE/srcdir
install_license kdb/LICENSE
mkdir ${libdir}
if [[ ${target} == aarch64-linux-* ]]; then opath="kdb/l64arm/c.o"; fi
if [[ ${target} == x86_64-linux-* ]]; then opath="kdb/l64/c.o"; fi
if [[ ${target} == i686-linux-* ]]; then opath="kdb/l32/c.o"; fi
if [[ ${target} == aarch64-apple-* ]]; then opath="kdb/m64/c.o"; fi
if [[ ${target} == x86_64-apple-* ]]; then opath="kdb/m64/c.o"; fi
if [[ ${target} == aarch64-apple-* ]]; then opath="kdb/m64arm/c.o"; fi
if [[ ${target} == x86_64-apple-* ]]; then opath="kdb/m64/c.o"; CC="gcc"; fi
if [[ ${target} == i686-apple-* ]]; then opath="kdb/m32/c.o"; fi
if [[ ${target} == x86_64-w64-* ]]; then opath="kdb/w64/c.dll"; fi
if [[ ${target} == i686-w64-* ]]; then opath="kdb/w32/c.dll"; fi
Expand All @@ -31,6 +30,7 @@ ${CC} -shared -fPIC ${opath} -o ${libdir}/c.${dlext}
# platforms are passed in on the command line
platforms = [
Platform("aarch64", "macos"; ),
Platform("x86_64", "macos"; ),
Platform("i686", "windows"; ),
Platform("i686", "linux"; libc = "musl"),
Platform("x86_64", "linux"; libc = "glibc"),
Expand Down

0 comments on commit ca6e2e7

Please sign in to comment.