File tree 5 files changed +50
-4
lines changed
targets/win32/nanoCLR/Generated
5 files changed +50
-4
lines changed Original file line number Diff line number Diff line change 13
13
14
14
# ignore any content inside the Interop assemblies folder
15
15
InteropAssemblies /*
16
+ ! InteropAssemblies /CLR_IncludedAPI.h.in
16
17
! InteropAssemblies /CLR_RT_InteropAssembliesTable.cpp.in
17
18
! InteropAssemblies /README.md
18
19
Original file line number Diff line number Diff line change @@ -118,6 +118,9 @@ macro(PerformSettingsForApiEntry apiNamespace)
118
118
# list this option
119
119
list (APPEND apiListing "${apiNamespace} " )
120
120
121
+ # append to list of defines for Interop Assemblies include file
122
+ set (CLR_RT_NativeAssemblyPreprocessorDefines "${CLR_RT_NativeAssemblyPreprocessorDefines} \n #define API_${apiNamespaceWithoutDots} " )
123
+
121
124
# append to list of declaration for Interop Assemblies table
122
125
list (APPEND CLR_RT_NativeAssemblyDataList "extern const CLR_RT_NativeAssemblyData g_CLR_AssemblyNative_${apiNamespaceWithoutDots} ;" )
123
126
@@ -470,10 +473,14 @@ string(REPLACE ";" "\n " CLR_RT_NativeAssemblyDataTableEntries "${CLR_RT_Nati
470
473
list (LENGTH CLR_RT_NativeAssemblyDataTableEntriesList CLR_RT_NativeAssembliesCount)
471
474
472
475
476
+ # configure header file with Interop Assemblies defines and...
477
+ configure_file ("${CMAKE_SOURCE_DIR} /InteropAssemblies/CLR_IncludedAPI.h.in"
478
+ "${CMAKE_CURRENT_BINARY_DIR} /CLR_IncludedAPI.h" @ONLY)
479
+
473
480
# configure code file with Interop Assemblies table and...
474
481
configure_file ("${CMAKE_SOURCE_DIR} /InteropAssemblies/CLR_RT_InteropAssembliesTable.cpp.in"
475
482
"${CMAKE_CURRENT_BINARY_DIR} /CLR_RT_InteropAssembliesTable.cpp" @ONLY)
476
- # ... now add Interop Assemblies table to ChibiOS nanoCLR sources list
483
+ # ... now add Interop Assemblies table to nanoCLR sources list
477
484
list (APPEND NF_NativeAssemblies_SOURCES "${CMAKE_CURRENT_BINARY_DIR} /CLR_RT_InteropAssembliesTable.cpp" )
478
485
479
486
# create a .csv file with native assembly versions in the output directory
Original file line number Diff line number Diff line change
1
+ //
2
+ // Copyright (c) .NET Foundation and Contributors
3
+ // See LICENSE file in the project root for full license information.
4
+ //
5
+
6
+ //////////////////////////////////////////////////////////////////////////////
7
+ // This file was automatically generated by a tool. //
8
+ // Any changes you make here will be overwritten when it's generated again. //
9
+ //////////////////////////////////////////////////////////////////////////////
10
+
11
+ #ifndef _CLR_INCLUDEDAPI_H_
12
+ #define _CLR_INCLUDEDAPI_H_
13
+ @CLR_RT_NativeAssemblyPreprocessorDefines @
14
+
15
+ #endif // _CLR_INCLUDEDAPI_H_
Original file line number Diff line number Diff line change 1
1
2
- This folder contains the configuration file for the Assemblies Table collection.
2
+ This folder contains a template for a header with preprocessor defines and
3
+ for the configuration file for the Assemblies Table collection.
3
4
4
- It's a placeholder for the Interop assemblies source files.
5
- The source files for each Interop assembly should be placed in it's own folder.
5
+ The latter is a placeholder for the Interop assemblies source files.
6
+ The source files for each Interop assembly should be placed in its own folder.
6
7
Anything inside this folder is ignored by an exception pattern in .gitignore file.
Original file line number Diff line number Diff line change
1
+ //
2
+ // Copyright (c) .NET Foundation and Contributors
3
+ // See LICENSE file in the project root for full license information.
4
+ //
5
+
6
+ #ifndef _CLR_INCLUDEDAPI_H_
7
+ #define _CLR_INCLUDEDAPI_H_
8
+
9
+ #define API_nanoFramework_Networking_Sntp
10
+ #define API_nanoFramework_ResourceManager
11
+ #define API_nanoFramework_System_Collections
12
+ #define API_nanoFramework_System_Text
13
+ #define API_nanoFramework_Runtime_Events
14
+ #define API_System_Math
15
+ #define API_System_Net
16
+ #define API_System_Device_Gpio
17
+ #define API_System_Device_I2c
18
+ #define API_System_IO_Ports
19
+ #define API_System_Device_Spi
20
+ #define API_System_Runtime_Serialization
21
+
22
+ #endif // _CLR_INCLUDEDAPI_H_
You can’t perform that action at this time.
0 commit comments