Expand description
§MobileCoin SGX: Build Utilities
Utilities for compiling FFI wrappers to SGX libraries.
§Environment Variables
Below are environment variables that affect the building of the SGX FFI wrappers.
-
SGX_SDK
The path to the Intel SGX SDK. Provides:-
The location of the SGX SDK headers.
Note: the DCAP headers are assumed to be in the default system include path
-
The location of the SGX SDK libraries for linking
When
SGX_SDK
is not set:- The vendored local directory
headers/
will be used for compile time includes /opt/intel/sgxsdk
will be used as the linking directory for SGX SDK libraries
-
-
CFLAGS
- Used when generating the rust bindings. Useful to specify system include paths. Multiple arguments can be separated with whitespace. This does not support escaped whitespace as specified in https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html
Structs§
- SgxParse
Callbacks - SGXParseCallbacks to be used with bindgen::Builder::parse_callbacks
Functions§
- build_
output_ dir - Return the build output path.
- normalize_
item_ name - Normalizes a type encountered by bindgen
- sgx_
bin_ x64_ dir - Return the SGX binary path.
- sgx_
builder - Returns a builder configured with the defaults for using bindgen with the SGX libraries.
- sgx_
library_ dir - Return the SGX library path.
- sgx_
library_ string - Return the SGX library path as a string
- sgx_
library_ suffix - Return the SGX library suffix