-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Rewrite the corehost CMake system to be more "Modern CMake"y and less MSBuild-y #102475
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 14 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
15a23ed
Change setup.cmake into a configure_file.
jkoritzinsky d5e23ce
Move nethost away from the include(lib.cmake) model
jkoritzinsky 224fe0b
Move static hostfxr away from lib_static
jkoritzinsky e4f8259
Inline pal::initialize_create_dump to enable building the PAL once in…
jkoritzinsky 1c6217d
Convert test libs to the new model
jkoritzinsky 836e7c8
Remove usage of testexe.cmake
jkoritzinsky 63c3e2e
Clean up nativehost
jkoritzinsky a47e8bc
Move everyone off of lib.cmake and exe.cmake
jkoritzinsky 179c666
Change how fxr_resolver.cpp is shared between targets
jkoritzinsky de0c333
Clean up libatomic references
jkoritzinsky 96fdb3f
Change how we reference atomic and pthread support libraries to make …
jkoritzinsky af2f6c1
Make shell32 Windows-only
jkoritzinsky 5860136
Add back convert_to_absolute_path for asm sources
jkoritzinsky 1d169b2
Only link libatomic on arm32
jkoritzinsky d9c7f7f
Update src/native/corehost/test/comsxs/CMakeLists.txt
jkoritzinsky f57940c
Make hostmisc an object lib instead of an interface lib
jkoritzinsky db241da
Various PR feedback
jkoritzinsky 5d04c10
Update src/native/corehost/CMakeLists.txt
jkoritzinsky File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
This file contains hidden or 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,23 @@ | ||
| #ifndef PAL_HOST_CONFIGURE_H_INCLUDED | ||
| #define PAL_HOST_CONFIGURE_H_INCLUDED | ||
|
|
||
| #cmakedefine01 CLR_SINGLE_FILE_HOST_ONLY | ||
|
|
||
| #ifdef CLR_SINGLE_FILE_HOST_ONLY | ||
| // When hosting components are all statically linked, | ||
| // the versioning information is irrelevant and may only come up in tracing. | ||
| // so we will use "static" | ||
| #define HOST_POLICY_PKG_NAME "static" | ||
| #define HOST_POLICY_PKG_REL_DIR "static" | ||
| #define REPO_COMMIT_HASH "static" | ||
| #else | ||
| #define HOST_POLICY_PKG_NAME "runtime.@[email protected]" | ||
| #define HOST_POLICY_PKG_REL_DIR "runtime.@CLI_CMAKE_PKG_RID@/native" | ||
| #define REPO_COMMIT_HASH "@CLI_CMAKE_COMMIT_HASH@" | ||
| #endif | ||
|
|
||
| #define FALLBACK_HOST_OS "@CLI_CMAKE_FALLBACK_OS@" | ||
| #define CURRENT_OS_NAME "@CLR_CMAKE_TARGET_OS@" | ||
| #define CURRENT_ARCH_NAME "@CLR_CMAKE_TARGET_ARCH@" | ||
|
|
||
| #endif // PAL_HOST_CONFIGURE_H_INCLUDED |
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.