Skip to content

Commit

Permalink
[open62541] v1.3.10, split off v1.4 (#8522)
Browse files Browse the repository at this point in the history
* [open62541] v1.3.10, split off v1.4

* loading packages

* add new line

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

* remove experimental

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

* adapt folder structure

* remove experimental also in 1.4 file

---------

Co-authored-by: Mosè Giordano <[email protected]>
  • Loading branch information
thomvet and giordano authored Apr 25, 2024
1 parent ab3303f commit a786f23
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 2 deletions.
44 changes: 44 additions & 0 deletions O/open62541/[email protected]/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

0 comments on commit a786f23

Please sign in to comment.