Intel(R) ME TEE Library
Cross-platform access library for Intel(R) CSME HECI interface.
CMake Build
ME TEE library uses CMake for both Linux and Windows builds.
Windows
From the "Developer Command Prompt for VS 2019" with C compiler and CMake component installed:
- Go to sources directory:
cd <srcdir>
- Create
build
directory:mkdir build
- Run
cmake -G "Visual Studio 16 2019" -A <build_arch> <srcdir>
from thebuild
directory (best to set build_arch to Win32) - Run
cmake --build . --config Release --target package -j <nproc>
from thebuild
directory to build an archive with all executables and libraries, nproc is the number of parallel threads in compilation, best to set to number of processor threads available
By default, CMake links with dynamic runtime (/MD), set BUILD_MSVC_RUNTIME_STATIC to ON to link with static runtime (/MT):
cmake -G "Visual Studio 16 2019" -A <build_arch> -DBUILD_MSVC_RUNTIME_STATIC=ON <srcdir>
Linux
- Create
build
directory - Run
cmake <srcdir>
from thebuild
directory - Run
make -j$(nproc) package
from thebuild
directory to build .deb and .rpm packages and .tgz archive
Meson Build
ME TEE library also supports Meson for both Linux and Windows builds.
General Setup
meson setup build/
meson configure -Dbuildtype=debug/release build
ninja -v -C build/
Windows Visual Studio
In order to use Visual Studio project meson requires to run under Visual Studio Command Prompt. In case of Visual Studio 2019, you can use either "x64 Native Tools Command Prompt for VS 2019" or under powershell enter VisualStudio DevShell and then just continue with the general setup
Powershell example setting:
$installPath = &"C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe" -version 16.0 -property installationpath
Import-Module (Join-Path $installPath "Common7\Tools\Microsoft.VisualStudio.DevShell.dll")
Enter-VsDevShell -VsInstallPath $installPath -SkipAutomaticLocation