Skip to content

Commit

Permalink
[AlphaMolWrapper] add recipe (#7436)
Browse files Browse the repository at this point in the history
* Including build recipe for AlphaMolWrapper

* Updated readme in source repository

* Updated SOurce code to not duplicate numerical constants on windows machines.

* changing rad2 to rad2_ in another function call

* Updating branch of build recipe

* Update A/AlphaMolWrapper/build_tarballs.jl

Co-authored-by: Mosè Giordano <[email protected]>

* Update A/AlphaMolWrapper/build_tarballs.jl

Co-authored-by: Mosè Giordano <[email protected]>

* [AlphaMolWrapper] lowering preferred gcc version. specifying needed gmp version

* [AlphaMolWrapper] trying GMP_jll v6.2.0

* [AlphaMolWrapper] setting GMP_jll to required v6.2.1

* [AlphaMolWrapper] trying to use GMP_jll v6.1.2 for backward compatability

* [AlphaMolWrapper] setting GMP_jll to v6.2.1 again. Seems necessary.

* [AlphaMolWrapper] Updating preferred gcc version

* [AlphaMolWrapper] Increasing gcc version due to error in previous attempt.

* [AlphaMolWrapper] 9 seems to be the lowest we can go in terms of gcc level.

* [AlphaMolWrapper] Removing compat for julia 1.6.3, as it would require GMP_jll < 6.2.1 which does not work.

---------

Co-authored-by: Mosè Giordano <[email protected]>
  • Loading branch information
IvanSpirandelli and giordano authored Oct 2, 2023
1 parent be0ecb7 commit 19d5cf3
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions A/AlphaMolWrapper/build_tarballs.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
using BinaryBuilder, Pkg

name = "AlphaMolWrapper"
version = v"0.1"
julia_versions = [v"1.7", v"1.8", v"1.9", v"1.10"]
julia_compat = join("~" .* string.(getfield.(julia_versions, :major)) .* "." .* string.(getfield.(julia_versions, :minor)), ", ")

sources = [
GitSource("https://github.com/IvanSpirandelli/AlphaMolWrapper", "7d27ba6c26eed686a2d82e6e2956dd0ef4a85fd3"),
]

script = raw"""
cd ${WORKSPACE}/srcdir/AlphaMolWrapper
mkdir build && cd build
cmake .. \
-DCMAKE_INSTALL_PREFIX=${prefix} \
-DCMAKE_TOOLCHAIN_FILE=${CMAKE_TARGET_TOOLCHAIN} \
-DJulia_PREFIX=${prefix}
VERBOSE=ON cmake --build . --config Release --target install -- -j${nproc}
"""
include("../../L/libjulia/common.jl")
platforms = expand_cxxstring_abis(vcat(libjulia_platforms.(julia_versions)...))

products = [
LibraryProduct("libalphamolwrapper", :libalphamolwrapper),
]

dependencies = [
BuildDependency("libjulia_jll"),
Dependency("libcxxwrap_julia_jll"),
Dependency("GMP_jll"; compat="6.2.1"),
]

build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies;
preferred_gcc_version=v"9", julia_compat=julia_compat)

0 comments on commit 19d5cf3

Please sign in to comment.