-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integrate DNMD into the runtime repos build.
Convert testing harness to C++11. Convert DNMD PALs to use the minipal and the COM minipal. Integrate DNMD testing into the CLR_Tools_Tests job. Link ole32 to the minipal.
- Loading branch information
1 parent
c0d3670
commit 8aea82f
Showing
87 changed files
with
1,887 additions
and
10,957 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Include the dnmd project into the CoreCLR build | ||
include(FetchContent) | ||
FetchContent_Declare( | ||
dnmd | ||
SOURCE_DIR "${CLR_SRC_NATIVE_DIR}/dnmd" | ||
) | ||
|
||
set(DNMD_BUILD_TESTS OFF) | ||
set(DNMD_INSTALL OFF) | ||
FetchContent_MakeAvailable(dnmd) | ||
|
||
set_property(DIRECTORY ${CLR_SRC_NATIVE_DIR}/dnmd PROPERTY CLR_CONTROL_FLOW_GUARD ON) | ||
|
||
# Install dnmd for usage by the cdac. | ||
install_static_library(dnmd cdac cdac) | ||
install_static_library(dnmd_interfaces_static cdac cdac) | ||
install(TARGETS dnmd_interfaces DESTINATION cdac COMPONENT cdac) | ||
add_dependencies(cdac dnmd_interfaces) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
41 changes: 0 additions & 41 deletions
41
src/native/dnmd/.github/workflows/publish-test-results.yml_disabled
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,37 @@ | ||
cmake_minimum_required(VERSION 3.10) | ||
cmake_minimum_required(VERSION 3.20) | ||
project(dnmd | ||
LANGUAGES C CXX) | ||
LANGUAGES C) | ||
|
||
option(INCLUDE_VENDORED_LIBS "Include vendored libraries (submodules) instead of discovering dependencies through packages." ON) | ||
# Always include our public headers | ||
include_directories(src/inc) | ||
|
||
# Include the metadata API headers provided by CoreCLR | ||
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../../coreclr/inc ${CMAKE_CURRENT_SOURCE_DIR}/../../coreclr/pal/prebuilt/inc) | ||
|
||
set(CMAKE_INSTALL_PREFIX ${CMAKE_BINARY_DIR}) | ||
if ("${CMAKE_CURRENT_SOURCE_DIR}" STREQUAL "${CMAKE_SOURCE_DIR}") | ||
# This is our root CMakeList.txt, so we need to set up some global settings and include the minipal here. | ||
include(../../../eng/native/configurepaths.cmake) | ||
include(${CLR_ENG_NATIVE_DIR}/configurecompiler.cmake) | ||
|
||
if (INCLUDE_VENDORED_LIBS) | ||
add_subdirectory(external/dncp) | ||
else() | ||
find_package(dncp REQUIRED) | ||
add_subdirectory(${CLR_SRC_NATIVE_DIR}/minipal minipal) | ||
endif() | ||
|
||
include_directories(src/inc) | ||
include_directories(src/inc/external) # Hiding the "external" subdirectory due to uses of <...> in cor.h. | ||
include_directories(${CLR_SRC_NATIVE_DIR}) | ||
|
||
option(DNMD_BUILD_TESTS "Build tests for dnmd" ON) | ||
option(DNMD_INSTALL "Install dnmd targets" ON) | ||
option(DNMD_BUILD_INTERFACES "Build implementations of the metadata interfaces for DNMD" ON) | ||
option(DNMD_BUILD_TOOLS "Build tools for dnmd" ON) | ||
|
||
if (DNMD_BUILD_INTERFACES OR DNMD_BUILD_TESTS OR DNMD_BUILD_TOOLS) | ||
enable_language(CXX) | ||
endif() | ||
|
||
add_subdirectory(src/) | ||
|
||
enable_testing() | ||
|
||
add_subdirectory(test/) | ||
if (DNMD_BUILD_TESTS) | ||
enable_testing() | ||
|
||
add_subdirectory(test/) | ||
endif() |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.