-
Notifications
You must be signed in to change notification settings - Fork 6
/
libzenohc.rb
35 lines (31 loc) · 1.04 KB
/
libzenohc.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
require "json"
class Libzenohc < Formula
release = JSON.parse(File.read("#{__dir__}/release.json"))[File.basename(__FILE__, ".rb")]
desc "Zenoh-c API (geo-distributed pub/sub/query/storage of data)"
homepage "https://zenoh.io"
on_macos do
on_intel do
url release["x86_64-url"]
sha256 release["x86_64-sha256"]
end
on_arm do
url release["aarch64-url"]
sha256 release["aarch64-sha256"]
end
end
def install
lib.install "lib/libzenohc.dylib"
lib.install "lib/libzenohc.a"
lib.install "lib/pkgconfig/zenohc.pc"
lib.install "lib/cmake/zenohc/zenohcConfig.cmake"
lib.install "lib/cmake/zenohc/zenohcConfigVersion.cmake"
include.install "include/zenoh.h"
include.install "include/zenoh_commons.h"
include.install "include/zenoh_concrete.h"
include.install "include/zenoh_macros.h"
include.install "include/zenoh_configure.h"
include.install "include/zenoh_constants.h"
include.install "include/zenoh_memory.h"
include.install "include/zenoh_opaque.h"
end
end