Skip to content

Commit 3133543

Browse files
bjack205giordano
authored andcommitted
New Recipe: qdldl v0.1.5 (JuliaPackaging#4323)
* New Recipe: qdldl v0.1.5 * Build only Float64 for now * [QDLDL] Rename from `qdldl` to match styling of upstream project Co-authored-by: Mosè Giordano <[email protected]>
1 parent cdcc89f commit 3133543

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

Q/QDLDL/build_tarballs.jl

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Note that this script can accept some limited command-line arguments, run
2+
# `julia build_tarballs.jl --help` to see a usage message.
3+
using BinaryBuilder, Pkg
4+
5+
name = "QDLDL"
6+
version = v"0.1.5"
7+
8+
# Collection of sources required to complete build
9+
sources = [
10+
ArchiveSource("https://github.com/osqp/qdldl/archive/refs/tags/v$(version).tar.gz", "2868b0e61b7424174e9adef3cb87478329f8ab2075211ef28fe477f29e0e5c99")
11+
]
12+
13+
# Bash recipe for building across all platforms
14+
script = raw"""
15+
cd $WORKSPACE/srcdir
16+
cd qdldl-0.1.5/
17+
mkdir build
18+
cd build
19+
cmake -DCMAKE_INSTALL_PREFIX=$prefix -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TARGET_TOOLCHAIN} -DCMAKE_BUILD_TYPE=Release ..
20+
cmake --build .
21+
make install
22+
"""
23+
24+
# These are the platforms we will build for by default, unless further
25+
# platforms are passed in on the command line
26+
platforms = supported_platforms()
27+
28+
# The products that we will ensure are always built
29+
products = [
30+
LibraryProduct("libqdldl", :libqdldl)
31+
]
32+
33+
# Dependencies that must be installed before this package can be built
34+
dependencies = Dependency[
35+
]
36+
37+
# Build the tarballs, and possibly a `build.jl` as well.
38+
build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies; julia_compat="1.6")

0 commit comments

Comments
 (0)