-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from ZzzhHe/refactor-model-loading
Refactor model loading
- Loading branch information
Showing
31 changed files
with
665 additions
and
781 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,4 +14,4 @@ tools/opensbi/build | |
.idea | ||
3rd | ||
Doxyfile | ||
src/include/config.h | ||
src/include/config.h |
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 |
---|---|---|
@@ -1,71 +1,84 @@ | ||
{ | ||
"version": 6, | ||
"cmakeMinimumRequired": { | ||
"major": 3, | ||
"minor": 27, | ||
"patch": 0 | ||
}, | ||
"configurePresets": [ | ||
{ | ||
"name": "host", | ||
"description": "Linux Only", | ||
"hidden": true, | ||
"condition": { | ||
"type": "equals", | ||
"lhs": "${hostSystemName}", | ||
"rhs": "Linux" | ||
} | ||
}, | ||
{ | ||
"name": "std", | ||
"description": "This preset makes sure the project actually builds with at least the specified standard", | ||
"hidden": true, | ||
"cacheVariables": { | ||
"CMAKE_C_EXTENSIONS": "OFF", | ||
"CMAKE_C_STANDARD": "23", | ||
"CMAKE_C_STANDARD_REQUIRED": "ON", | ||
"CMAKE_CXX_EXTENSIONS": "OFF", | ||
"CMAKE_CXX_STANDARD": "23", | ||
"CMAKE_CXX_STANDARD_REQUIRED": "ON" | ||
} | ||
"version": 6, | ||
"cmakeMinimumRequired": { | ||
"major": 3, | ||
"minor": 23, | ||
"patch": 0 | ||
}, | ||
{ | ||
"name": "configurePresets_base", | ||
"hidden": true, | ||
"inherits": [ | ||
"host", | ||
"std" | ||
], | ||
"displayName": "configurePresets_base", | ||
"description": "base configurePresets", | ||
"binaryDir": "${sourceDir}/build", | ||
"cacheVariables": { | ||
"CMAKE_EXPORT_COMPILE_COMMANDS": { | ||
"type": "BOOL", | ||
"value": "ON" | ||
}, | ||
"EXECUTABLE_OUTPUT_PATH": { | ||
"type": "STRING", | ||
"value": "${sourceDir}/build/bin" | ||
}, | ||
"LIBRARY_OUTPUT_PATH": { | ||
"type": "STRING", | ||
"value": "${sourceDir}/build/lib" | ||
}, | ||
"COVERAGE_OUTPUT_DIR": { | ||
"type": "STRING", | ||
"value": "${sourceDir}/build/coverage" | ||
"configurePresets": [ | ||
{ | ||
"name": "std", | ||
"description": "This preset makes sure the project actually builds with at least the specified standard", | ||
"hidden": true, | ||
"cacheVariables": { | ||
"CMAKE_C_EXTENSIONS": "OFF", | ||
"CMAKE_C_STANDARD": "23", | ||
"CMAKE_C_STANDARD_REQUIRED": "ON", | ||
"CMAKE_CXX_EXTENSIONS": "OFF", | ||
"CMAKE_CXX_STANDARD": "23", | ||
"CMAKE_CXX_STANDARD_REQUIRED": "ON" | ||
} | ||
}, | ||
{ | ||
"name": "config-base", | ||
"hidden": true, | ||
"inherits": [ "std" ], | ||
"displayName": "config-base", | ||
"description": "base configurePresets", | ||
"binaryDir": "${sourceDir}/build", | ||
"cacheVariables": { | ||
"CMAKE_EXPORT_COMPILE_COMMANDS": { | ||
"type": "BOOL", | ||
"value": "ON" | ||
}, | ||
"EXECUTABLE_OUTPUT_PATH": { | ||
"type": "STRING", | ||
"value": "${sourceDir}/build/bin" | ||
}, | ||
"LIBRARY_OUTPUT_PATH": { | ||
"type": "STRING", | ||
"value": "${sourceDir}/build/lib" | ||
}, | ||
"COVERAGE_OUTPUT_DIR": { | ||
"type": "STRING", | ||
"value": "${sourceDir}/build/coverage" | ||
} | ||
} | ||
}, | ||
{ | ||
"name": "config-macos", | ||
"hidden": true, | ||
"inherits": [ "config-base" ], | ||
"displayName": "config-base", | ||
"description": "macOS configurePresets", | ||
"condition": { | ||
"type": "equals", | ||
"lhs": "${hostSystemName}", | ||
"rhs": "Darwin" | ||
}, | ||
"cacheVariables": { | ||
"CMAKE_MACOSX_RPATH": "1", | ||
"CMAKE_INSTALL_RPATH": "/Library/Frameworks", | ||
"CMAKE_BUILD_WITH_INSTALL_RPATH": "TRUE" | ||
} | ||
}, | ||
{ | ||
"name": "build", | ||
"hidden": false, | ||
"inherits": [ | ||
"config-base" | ||
], | ||
"displayName": "build-base", | ||
"description": "build base configurePresets" | ||
}, | ||
{ | ||
"name": "build-macos", | ||
"hidden": false, | ||
"inherits": [ | ||
"config-macos" | ||
], | ||
"displayName": "build-macos", | ||
"description": "macOS build configurePresets" | ||
} | ||
}, | ||
{ | ||
"name": "build", | ||
"hidden": false, | ||
"inherits": [ | ||
"configurePresets_base" | ||
], | ||
"displayName": "build", | ||
"description": "build" | ||
} | ||
] | ||
} | ||
] | ||
} |
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.