mirror of
https://github.com/Bareflank/hypervisor
synced 2026-08-17 06:23:04 -04:00
This patch: - Adds a complete extension written in Rust, with all of the build system logic to support Rust development as well. - Fixes an issues on Intel systems where the MSR bitmaps were not set up properly. - Fixes a number of issues with UEFI. - Fixes a number of issues with Windows, including a BSOD issue with narrow contracts.
60 lines
2.8 KiB
CMake
60 lines
2.8 KiB
CMake
#
|
|
# Copyright (C) 2020 Assured Information Security, Inc.
|
|
#
|
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
# of this software and associated documentation files (the "Software"), to deal
|
|
# in the Software without restriction, including without limitation the rights
|
|
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
# copies of the Software, and to permit persons to whom the Software is
|
|
# furnished to do so, subject to the following conditions:
|
|
#
|
|
# The above copyright notice and this permission notice shall be included in all
|
|
# copies or substantial portions of the Software.
|
|
#
|
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
# SOFTWARE.
|
|
|
|
include(FetchContent)
|
|
set(FETCHCONTENT_BASE_DIR ${CMAKE_BINARY_DIR}/depend)
|
|
|
|
include(${CMAKE_CURRENT_LIST_DIR}/depend/bsl.cmake)
|
|
|
|
include(${bsl_SOURCE_DIR}/cmake/config/all_projects.cmake)
|
|
include(${bsl_SOURCE_DIR}/cmake/config/cmake.cmake)
|
|
include(${CMAKE_CURRENT_LIST_DIR}/config/default.cmake)
|
|
include(${CMAKE_CURRENT_LIST_DIR}/validate.cmake)
|
|
|
|
include(${bsl_SOURCE_DIR}/cmake/build_types.cmake)
|
|
include(${bsl_SOURCE_DIR}/cmake/find_programs.cmake)
|
|
|
|
include(${CMAKE_CURRENT_LIST_DIR}/target/info.cmake)
|
|
include(${CMAKE_CURRENT_LIST_DIR}/target/start.cmake)
|
|
include(${CMAKE_CURRENT_LIST_DIR}/target/stop.cmake)
|
|
include(${CMAKE_CURRENT_LIST_DIR}/target/dump.cmake)
|
|
include(${CMAKE_CURRENT_LIST_DIR}/target/loader_build.cmake)
|
|
include(${CMAKE_CURRENT_LIST_DIR}/target/loader_load.cmake)
|
|
include(${CMAKE_CURRENT_LIST_DIR}/target/loader_unload.cmake)
|
|
include(${CMAKE_CURRENT_LIST_DIR}/target/loader_clean.cmake)
|
|
include(${CMAKE_CURRENT_LIST_DIR}/target/loader_quick.cmake)
|
|
include(${CMAKE_CURRENT_LIST_DIR}/target/rust_clean.cmake)
|
|
include(${CMAKE_CURRENT_LIST_DIR}/target/rust_fmt.cmake)
|
|
include(${CMAKE_CURRENT_LIST_DIR}/target/copy_to_efi_partition.cmake)
|
|
|
|
include(${CMAKE_CURRENT_LIST_DIR}/write_constants.cmake)
|
|
include(${CMAKE_CURRENT_LIST_DIR}/write_toolchain_x64_ext_ld.cmake)
|
|
include(${CMAKE_CURRENT_LIST_DIR}/write_toolchain_x64_mk_ld.cmake)
|
|
|
|
if(DEFINED CMAKE_TOOLCHAIN_FILE)
|
|
set(CMAKE_TOOLCHAIN_FILE ${CMAKE_TOOLCHAIN_FILE})
|
|
endif()
|
|
|
|
include(${CMAKE_CURRENT_LIST_DIR}/function/hypervisor_add_mk_cross_compile.cmake)
|
|
include(${CMAKE_CURRENT_LIST_DIR}/function/hypervisor_add_ext_cross_compile.cmake)
|
|
include(${CMAKE_CURRENT_LIST_DIR}/function/hypervisor_add_efi_cross_compile.cmake)
|
|
|
|
include(${CMAKE_CURRENT_LIST_DIR}/interface/hypervisor.cmake)
|