<commit_before>#
# Copyright (c) 2017 The nanoFramework project contributors
# See LICENSE file in the project root for full license information.
#

# set include directories for nanoFramework Core, CoreLib and CLR startup

# include directories for Core
list(APPEND NF_CoreCLR_INCLUDE_DIRS ${PROJECT_SOURCE_DIR}/src/CLR/Core)
list(APPEND NF_CoreCLR_INCLUDE_DIRS ${PROJECT_SOURCE_DIR}/src/CLR/Include)
list(APPEND NF_CoreCLR_INCLUDE_DIRS ${PROJECT_SOURCE_DIR}/src/HAL/Include)
list(APPEND NF_CoreCLR_INCLUDE_DIRS ${PROJECT_SOURCE_DIR}/src/PAL/Include)

# include directories for CoreLib
list(APPEND NF_CoreCLR_INCLUDE_DIRS ${PROJECT_SOURCE_DIR}/src/CLR/CorLib)

# CLR startup
list(APPEND NF_CoreCLR_INCLUDE_DIRS  ${PROJECT_SOURCE_DIR}/src/CLR/Startup)

# others
list(APPEND NF_CoreCLR_INCLUDE_DIRS ${PROJECT_SOURCE_DIR}/src/CLR/Diagnostics)
list(APPEND NF_CoreCLR_INCLUDE_DIRS ${PROJECT_SOURCE_DIR}/src/CLR/Debugger)


# source files for nanoFramework Core, CoreLib and CLR startup
set(NF_CoreCLR_SRCS

    # Core
    Cache.cpp
    Checks.cpp
    CLR_RT_DblLinkedList.cpp
    CLR_RT_HeapBlock.cpp
    CLR_RT_HeapBlock_Array.cpp
    CLR_RT_HeapBlock_ArrayList.cpp
    CLR_RT_HeapBlock_BinaryBlob.cpp
    CLR_RT_HeapBlock_Delegate.cpp
    CLR_RT_HeapBlock_Delegate_List.cpp
    CLR_RT_HeapBlock_Finalizer.cpp
    CLR_RT_HeapBlock_Lock.cpp
    CLR_RT_HeapBlock_LockRequest.cpp
    CLR_RT_HeapBlock_Queue.cpp
    CLR_RT_HeapBlock_Node.cpp
    CLR_RT_HeapBlock_Stack.cpp
    CLR_RT_HeapBlock_String.cpp
    CLR_RT_HeapBlock_Timer.cpp
    CLR_RT_HeapBlock_WaitForObject.cpp
    CLR_RT_HeapCluster.cpp
    CLR_RT_Interop.cpp
    CLR_RT_Memory.cpp
    CLR_RT_ObjectToEvent_Destination.cpp
    CLR_RT_ObjectToEvent_Source.cpp
    CLR_RT_RuntimeMemory.cpp
    CLR_RT_StackFrame.cpp
    CLR_RT_SystemAssembliesTable.cpp
    CLR_RT_UnicodeHelper.cpp
    Core.cpp
    Execution.cpp
    GarbageCollector.cpp
    GarbageCollector_Compaction.cpp
    GarbageCollector_ComputeReachabilityGraph.cpp
    Interpreter.cpp
    Random.cpp
    Streams.cpp
    StringTable.cpp
    Thread.cpp
    TypeSystemLookup.cpp
    StringTableData.cpp
    TypeSystem.cpp
    nanoSupport_CRC32.c
    nanoHAL_SystemInformation.cpp

    # CoreLib
    corlib_native_System_AppDomain.cpp
    corlib_native_System_Array.cpp
    corlib_native_System_Attribute.cpp
    corlib_native_System_BitConverter.cpp
    corlib_native_System_Collections_ArrayList.cpp
    corlib_native_System_Collections_Queue.cpp
    corlib_native_System_Collections_Stack.cpp
    corlib_native_System_Console.cpp
    corlib_native_System_Convert.cpp
    corlib_native_System_DateTime.cpp
    corlib_native_System_Delegate.cpp
    corlib_native_System_Diagnostics_Debugger.cpp
    corlib_native_System_Double.cpp
    corlib_native_System_Enum.cpp
    corlib_native_System_Exception.cpp
    corlib_native_System_GC.cpp
    corlib_native_System_Globalization_CultureInfo.cpp
    corlib_native_System_Globalization_DateTimeFormat.cpp
    corlib_native_System_Guid.cpp
    corlib_native_System_MarshalByRefObject.cpp
    corlib_native_System_Math.cpp
    corlib_native_System_MulticastDelegate.cpp
    corlib_native_System_Number.cpp
    corlib_native_System_Object.cpp
    corlib_native_System_Random.cpp
    corlib_native_System_Reflection_Assembly.cpp
    corlib_native_System_Reflection_Binder.cpp
    corlib_native_System_Reflection_ConstructorInfo.cpp
    corlib_native_System_Reflection_FieldInfo.cpp
    corlib_native_System_Reflection_MethodBase.cpp
    corlib_native_System_Reflection_MemberInfo.cpp
    corlib_native_System_Reflection_PropertyInfo.cpp
    corlib_native_System_Reflection_RuntimeFieldInfo.cpp
    corlib_native_System_Reflection_RuntimeMethodInfo.cpp
    corlib_native_System_Resources_ResourceManager.cpp
    corlib_native_System_Runtime_CompilerServices_RuntimeHelpers.cpp
    corlib_native_System_Runtime_Remoting_RemotingServices.cpp
    corlib_native_System_RuntimeType.cpp
    corlib_native_System_String.cpp
    corlib_native_System_Text_UTF8Decoder.cpp
    corlib_native_System_Text_UTF8Encoding.cpp
    corlib_native_System_Threading_AutoResetEvent.cpp
    corlib_native_System_Threading_Interlocked.cpp
    corlib_native_System_Threading_ManualResetEvent.cpp
    corlib_native_System_Threading_Monitor.cpp
    corlib_native_System_Threading_Thread.cpp
    corlib_native_System_Threading_Timer.cpp
    corlib_native_System_Threading_WaitHandle.cpp
    corlib_native_System_TimeSpan.cpp
    corlib_native_System_Type.cpp
    corlib_native_System_ValueType.cpp
    corlib_native_System_WeakReference.cpp
    corlib_native.cpp

    # CLR startup
    CLRStartup.cpp

    # Core stubs
    Heap_Persistence_stub.cpp
    RPC_stub.cpp
    BinaryFormatter_stub.cpp

    # CLR stubs
    Debugger_stub.cpp
    Diagnostics_stub.cpp
    Messaging_stub.cpp
    
    # HAL
    nanoHAL_Time.cpp

    # PAL
    nanoPAL_BlockStorage.c<commit_msg>Fix missing stubs in CoreCLR (#448)<commit_after>#
# Copyright (c) 2017 The nanoFramework project contributors
# See LICENSE file in the project root for full license information.
#

# set include directories for nanoFramework Core, CoreLib and CLR startup

# include directories for Core
list(APPEND NF_CoreCLR_INCLUDE_DIRS ${PROJECT_SOURCE_DIR}/src/CLR/Core)
list(APPEND NF_CoreCLR_INCLUDE_DIRS ${PROJECT_SOURCE_DIR}/src/CLR/Include)
list(APPEND NF_CoreCLR_INCLUDE_DIRS ${PROJECT_SOURCE_DIR}/src/HAL/Include)
list(APPEND NF_CoreCLR_INCLUDE_DIRS ${PROJECT_SOURCE_DIR}/src/PAL/Include)

# include directories for CoreLib
list(APPEND NF_CoreCLR_INCLUDE_DIRS ${PROJECT_SOURCE_DIR}/src/CLR/CorLib)

# CLR startup
list(APPEND NF_CoreCLR_INCLUDE_DIRS  ${PROJECT_SOURCE_DIR}/src/CLR/Startup)

# others
list(APPEND NF_CoreCLR_INCLUDE_DIRS ${PROJECT_SOURCE_DIR}/src/CLR/Diagnostics)
list(APPEND NF_CoreCLR_INCLUDE_DIRS ${PROJECT_SOURCE_DIR}/src/CLR/Debugger)


# source files for nanoFramework Core, CoreLib and CLR startup
set(NF_CoreCLR_SRCS

    # Core
    Cache.cpp
    Checks.cpp
    CLR_RT_DblLinkedList.cpp
    CLR_RT_HeapBlock.cpp
    CLR_RT_HeapBlock_Array.cpp
    CLR_RT_HeapBlock_ArrayList.cpp
    CLR_RT_HeapBlock_BinaryBlob.cpp
    CLR_RT_HeapBlock_Delegate.cpp
    CLR_RT_HeapBlock_Delegate_List.cpp
    CLR_RT_HeapBlock_Finalizer.cpp
    CLR_RT_HeapBlock_Lock.cpp
    CLR_RT_HeapBlock_LockRequest.cpp
    CLR_RT_HeapBlock_Queue.cpp
    CLR_RT_HeapBlock_Node.cpp
    CLR_RT_HeapBlock_Stack.cpp
    CLR_RT_HeapBlock_String.cpp
    CLR_RT_HeapBlock_Timer.cpp
    CLR_RT_HeapBlock_WaitForObject.cpp
    CLR_RT_HeapCluster.cpp
    CLR_RT_Interop.cpp
    CLR_RT_Memory.cpp
    CLR_RT_ObjectToEvent_Destination.cpp
    CLR_RT_ObjectToEvent_Source.cpp
    CLR_RT_RuntimeMemory.cpp
    CLR_RT_StackFrame.cpp
    CLR_RT_SystemAssembliesTable.cpp
    CLR_RT_UnicodeHelper.cpp
    Core.cpp
    Execution.cpp
    GarbageCollector.cpp
    GarbageCollector_Compaction.cpp
    GarbageCollector_ComputeReachabilityGraph.cpp
    Interpreter.cpp
    Random.cpp
    Streams.cpp
    StringTable.cpp
    Thread.cpp
    TypeSystemLookup.cpp
    StringTableData.cpp
    TypeSystem.cpp
    nanoSupport_CRC32.c
    nanoHAL_SystemInformation.cpp

    # CoreLib
    corlib_native_System_AppDomain.cpp
    corlib_native_System_Array.cpp
    corlib_native_System_Attribute.cpp
    corlib_native_System_BitConverter.cpp
    corlib_native_System_Collections_ArrayList.cpp
    corlib_native_System_Collections_Queue.cpp
    corlib_native_System_Collections_Stack.cpp
    corlib_native_System_Console.cpp
    corlib_native_System_Convert.cpp
    corlib_native_System_DateTime.cpp
    corlib_native_System_Delegate.cpp
    corlib_native_System_Diagnostics_Debugger.cpp
    corlib_native_System_Double.cpp
    corlib_native_System_Enum.cpp
    corlib_native_System_Exception.cpp
    corlib_native_System_GC.cpp
    corlib_native_System_Globalization_CultureInfo.cpp
    corlib_native_System_Globalization_DateTimeFormat.cpp
    corlib_native_System_Guid.cpp
    corlib_native_System_MarshalByRefObject.cpp
    corlib_native_System_Math.cpp
    corlib_native_System_MulticastDelegate.cpp
    corlib_native_System_Number.cpp
    corlib_native_System_Object.cpp
    corlib_native_System_Random.cpp
    corlib_native_System_Reflection_Assembly.cpp
    corlib_native_System_Reflection_Binder.cpp
    corlib_native_System_Reflection_ConstructorInfo.cpp
    corlib_native_System_Reflection_FieldInfo.cpp
    corlib_native_System_Reflection_MethodBase.cpp
    corlib_native_System_Reflection_MemberInfo.cpp
    corlib_native_System_Reflection_PropertyInfo.cpp
    corlib_native_System_Reflection_RuntimeFieldInfo.cpp
    corlib_native_System_Reflection_RuntimeMethodInfo.cpp
    corlib_native_System_Resources_ResourceManager.cpp
    corlib_native_System_Runtime_CompilerServices_RuntimeHelpers.cpp
    corlib_native_System_Runtime_Remoting_RemotingServices.cpp
    corlib_native_System_RuntimeType.cpp
    corlib_native_System_String.cpp
    corlib_native_System_Text_UTF8Decoder.cpp
    corlib_native_System_Text_UTF8Encoding.cpp
    corlib_native_System_Threading_AutoResetEvent.cpp
    corlib_native_System_Threading_Interlocked.cpp
    corlib_native_System_Threading_ManualResetEvent.cpp
    corlib_native_System_Threading_Monitor.cpp
    corlib_native_System_Threading_Thread.cpp
    corlib_native_System_Threading_Timer.cpp
    corlib_native_System_Threading_WaitHandle.cpp
    corlib_native_System_TimeSpan.cpp
    corlib_native_System_Type.cpp
    corlib_native_System_ValueType.cpp
    corlib_native_System_WeakReference.cpp
    corlib_native.cpp

    # CLR startup
    CLRStartup.cpp

    # Core stubs
    Hardware_stub.cpp
    Heap_Persistence_stub.cpp
    InterruptHandler_stub.cpp
    NativeEventDispatcher_stub.cpp
    RPC_stub.cpp
    BinaryFormatter_stub.cpp

    # CLR stubs
    Debugger_stub.cpp
    Diagnostics_stub.cpp
    Messaging_stub.cpp
    
    # HAL
    nanoHAL_Time.cpp

    # PAL
    nanoPAL_BlockStorage.c
{'fraction_non_alphanumeric': 0.039842248963494795, 'fraction_numerical': 0.0019213267266659925, 'mean_word_length': 5.127633209417596, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4918567', 'n_tokens_mistral': 3415, 'n_tokens_neox': 3392, 'n_words': 383}