Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[open62541] v1.3.10, split off v1.4 #8522

Merged
merged 6 commits into from
Apr 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions O/open62541/open62541@1.3/build_tarballs.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Note that this script can accept some limited command-line arguments, run
# `julia build_tarballs.jl --help` to see a usage message.
using BinaryBuilder, Pkg

name = "open62541"
version = v"1.3.10"
# Collection of sources required to complete build
sources = [
GitSource("https://github.com/open62541/open62541.git",
"2405c6588f8d8093e3e0e49e920db64daf479799")
]
# Bash recipe for building across all platforms
script = raw"""
cd $WORKSPACE/srcdir/open62541/
mkdir build && cd build/
cmake -DCMAKE_INSTALL_PREFIX=${prefix} \
-DCMAKE_TOOLCHAIN_FILE=${CMAKE_TARGET_TOOLCHAIN} \
-DCMAKE_BUILD_TYPE=Release \
-DUA_MULTITHREADING=100 \
-DUA_ENABLE_SUBSCRIPTIONS=ON \
-DUA_ENABLE_METHODCALLS=ON \
-DUA_ENABLE_PARSING=ON \
-DUA_ENABLE_NODEMANAGEMENT=ON \
-DUA_ENABLE_IMMUTABLE_NODES=ON \
-DUA_ENABLE_HISTORIZING=ON \
-DBUILD_SHARED_LIBS=ON \
-DUA_FORCE_WERROR=OFF \
..
make -j${nproc}
make install
install_license ../LICENSE
"""
# These are the platforms we will build for by default, unless further
# platforms are passed in on the command line
platforms = supported_platforms()
# The products that we will ensure are always built
products = [
LibraryProduct("libopen62541", :libopen62541)
]
# Dependencies that must be installed before this package can be built
dependencies = Dependency[
]
# Build the tarballs, and possibly a `build.jl` as well.
build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies; julia_compat="1.6")
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ fi
cd $WORKSPACE/srcdir/open62541/
if [[ "${target}" == *-freebsd* ]]; then
# https://github.com/open62541/open62541/issues/6414
atomic_patch -p1 ../0001-freebsd.patch
atomic_patch -p1 ../patches/0001-freebsd.patch
fi
mkdir build && cd build/
cmake -DCMAKE_INSTALL_PREFIX=${prefix} \
Expand All @@ -46,7 +46,7 @@ install_license ../LICENSE

# These are the platforms we will build for by default, unless further
# platforms are passed in on the command line
platforms = supported_platforms(; experimental=true)
platforms = supported_platforms()

# The products that we will ensure are always built
products = [
Expand Down