sandboxed-api/sandboxed_api
Christian Blichmann 74bb2c35ca bazel: Add build rules for the new interface generator
This adds a workspace rule that inspects the current system first and
downloads a suitable version of LLVM/Clang from GitHub if it can't
find one. In the latter case, the necessary parts are build from source,
which can take a while (~10-15m, depending on the build machine).

In order to be found, LLVM/Clang system libraries must be version 11
or higher. On Debian/Ubuntu, install `llvm-13-dev` and `libclang-13-dev`.

The new `llvm_config.bzl` implements this logic. It is loosely based on
upstream's https://github.com/llvm/llvm-project/blob/main/utils/bazel/configure.bzl.
Note that due to the way Bazel separates local repositories, we have to
duplictate some of this code.

PiperOrigin-RevId: 438759950
Change-Id: Ia65f473b4cdef6507e3816bf09794ea10963d87a
2022-04-01 00:55:30 -07:00
..
bazel bazel: Add build rules for the new interface generator 2022-04-01 00:55:30 -07:00
docs Update references to the new documentation 2021-12-14 09:03:29 -08:00
examples Migration of remaining protobufs from proto2 to proto3 2022-03-16 00:43:46 -07:00
sandbox2 Extend ValidateInterpreter with Android_Arm64 interpreter 2022-03-30 09:45:58 -07:00
tools bazel: Add build rules for the new interface generator 2022-04-01 00:55:30 -07:00
util Enable RAW logging on Android via logcat 2022-03-24 09:04:44 -07:00
BUILD.bazel Change license link to HTTPS URL 2022-01-28 01:39:09 -08:00
call.h Change license link to HTTPS URL 2022-01-28 01:39:09 -08:00
client.cc Change to proto2::MessageLite and resolve reflextion for mobile builds 2022-03-03 04:48:30 -08:00
CMakeLists.txt Change license link to HTTPS URL 2022-01-28 01:39:09 -08:00
config.h Extend config.h to support HWSan and LSan 2022-03-03 07:12:50 -08:00
embed_file.cc Change license link to HTTPS URL 2022-01-28 01:39:09 -08:00
embed_file.h Change license link to HTTPS URL 2022-01-28 01:39:09 -08:00
file_toc.h Change license link to HTTPS URL 2022-01-28 01:39:09 -08:00
lenval_core.h Change license link to HTTPS URL 2022-01-28 01:39:09 -08:00
proto_arg.proto Migration of remaining protobufs from proto2 to proto3 2022-03-16 00:43:46 -07:00
proto_helper.cc Change to proto2::MessageLite and resolve reflextion for mobile builds 2022-03-03 04:48:30 -08:00
proto_helper.h Change to proto2::MessageLite and resolve reflextion for mobile builds 2022-03-03 04:48:30 -08:00
rpcchannel.cc Change license link to HTTPS URL 2022-01-28 01:39:09 -08:00
rpcchannel.h Change license link to HTTPS URL 2022-01-28 01:39:09 -08:00
sandbox.cc Fix a race when terminating sandbox from another thread 2022-03-23 03:35:28 -07:00
sandbox.h Fix a race when terminating sandbox from another thread 2022-03-23 03:35:28 -07:00
sapi_test.cc Fix a race when terminating sandbox from another thread 2022-03-23 03:35:28 -07:00
testing.cc Change license link to HTTPS URL 2022-01-28 01:39:09 -08:00
testing.h Change license link to HTTPS URL 2022-01-28 01:39:09 -08:00
transaction.cc Change license link to HTTPS URL 2022-01-28 01:39:09 -08:00
transaction.h Change license link to HTTPS URL 2022-01-28 01:39:09 -08:00
var_abstract.cc Change license link to HTTPS URL 2022-01-28 01:39:09 -08:00
var_abstract.h Change license link to HTTPS URL 2022-01-28 01:39:09 -08:00
var_array.h Change license link to HTTPS URL 2022-01-28 01:39:09 -08:00
var_int.cc Change license link to HTTPS URL 2022-01-28 01:39:09 -08:00
var_int.h Change license link to HTTPS URL 2022-01-28 01:39:09 -08:00
var_lenval.cc Change license link to HTTPS URL 2022-01-28 01:39:09 -08:00
var_lenval.h Change license link to HTTPS URL 2022-01-28 01:39:09 -08:00
var_proto.h Change to proto2::MessageLite and resolve reflextion for mobile builds 2022-03-03 04:48:30 -08:00
var_ptr.h Change license link to HTTPS URL 2022-01-28 01:39:09 -08:00
var_reg.h Change license link to HTTPS URL 2022-01-28 01:39:09 -08:00
var_struct.h Change license link to HTTPS URL 2022-01-28 01:39:09 -08:00
var_type.h Change license link to HTTPS URL 2022-01-28 01:39:09 -08:00
var_void.h Change license link to HTTPS URL 2022-01-28 01:39:09 -08:00
vars.h Change license link to HTTPS URL 2022-01-28 01:39:09 -08:00