-
-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extract System.Collections from mscorlib
- Update CMakes to remove files from mscorlib. - Add build option to expose new API. - Update templates accordingly. - Add CMake and source files to support new API. - Update CLR CMake to accomodate required changes. - Update target templates to surface the new build option as a compiler define. - Update build options for all targets to include System.Collections. Signed-off-by: José Simões <jose.simoes@eclo.solutions>
- Loading branch information
1 parent
b0a4758
commit 08e747d
Showing
19 changed files
with
347 additions
and
256 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# | ||
# Copyright (c) 2019 The nanoFramework project contributors | ||
# See LICENSE file in the project root for full license information. | ||
# | ||
|
||
|
||
# set include directories | ||
list(APPEND nanoFramework.System.Collections_INCLUDE_DIRS "${PROJECT_SOURCE_DIR}/src/HAL/Include") | ||
list(APPEND nanoFramework.System.Collections_INCLUDE_DIRS "${PROJECT_SOURCE_DIR}/src/nanoFramework.System.Collections") | ||
|
||
|
||
# the following CLR support files are required and added to the build by FindNF_CoreCLR.cmake | ||
# CLR_RT_HeapBlock_Queue.cpp | ||
# CLR_RT_HeapBlock_Stack.cpp | ||
|
||
# source files | ||
set(nanoFramework.System.Collections_SRCS | ||
|
||
# source files of the assembly | ||
nf_system_collections_System_Collections_Queue.cpp | ||
nf_system_collections_System_Collections_Stack.cpp | ||
nf_system_collections.cpp | ||
) | ||
|
||
foreach(SRC_FILE ${nanoFramework.System.Collections_SRCS}) | ||
set(nanoFramework.System.Collections_SRC_FILE SRC_FILE-NOTFOUND) | ||
find_file(nanoFramework.System.Collections_SRC_FILE ${SRC_FILE} | ||
PATHS | ||
|
||
# path for source files of this module | ||
${PROJECT_SOURCE_DIR}/src/nanoFramework.System.Collections | ||
|
||
CMAKE_FIND_ROOT_PATH_BOTH | ||
) | ||
# message("${SRC_FILE} >> ${nanoFramework.System.Collections_SRC_FILE}") # debug helper | ||
list(APPEND nanoFramework.System.Collections_SOURCES ${nanoFramework.System.Collections_SRC_FILE}) | ||
endforeach() | ||
|
||
|
||
include(FindPackageHandleStandardArgs) | ||
|
||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(nanoFramework.System.Collections DEFAULT_MSG nanoFramework.System.Collections_INCLUDE_DIRS nanoFramework.System.Collections_SOURCES) |
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
Oops, something went wrong.