Skip to content

Commit

Permalink
Build libaegis from scratch
Browse files Browse the repository at this point in the history
Summary:
libaegis is not available through system packages, and the .pc file is
only available in our github action. Instead, build it from scratch as a
target.

Reviewed By: bigfootjon

Differential Revision: D63475002

fbshipit-source-id: cf030ee6de7e470d590f55db21cdb76c0a0c45df
  • Loading branch information
Cullen Walsh authored and facebook-github-bot committed Sep 27, 2024
1 parent f13234e commit d9e7e17
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions shim/third-party/libaegis/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,28 @@
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory
# of this source tree.

load("@shim//third-party:third_party.bzl", "third_party_library")
load("@shim//build_defs:prebuilt_cpp_library.bzl", "prebuilt_cpp_library")

oncall("open_source")

third_party_library(
git_fetch(
name = "libaegis.git",
repo = "https://github.com/jedisct1/libaegis.git",
rev = "9c7677d742aaae312e09b1574998acba620188d8", # tag 0.1.23
)

genrule(
name = "libaegis-cmake",
out = "out",
cmd = "cmake -DCMAKE_INSTALL_PREFIX=$OUT $(location :libaegis.git) && make install",
)

prebuilt_cpp_library(
name = "aegis",
pkgconfig_name = "libaegis",
exported_preprocessor_flags = ["-I$(location :libaegis-cmake)/include"],
linker_flags = [
"-L$(location :libaegis-cmake)/lib64",
"-laegis",
],
visibility = ["PUBLIC"],
)

0 comments on commit d9e7e17

Please sign in to comment.