Add .editorconfig & format some files

This commit is contained in:
Luke Street 2025-10-09 16:51:48 -06:00
parent 0c2c0f653b
commit cadb3cd00e
4 changed files with 101 additions and 83 deletions

28
.editorconfig Normal file
View File

@ -0,0 +1,28 @@
# EditorConfig is awesome: https://EditorConfig.org
# top-most EditorConfig file
root = true
# All files
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
# C/C++ files
[*.{c,cpp,h,hpp,cc,cxx}]
indent_style = tab
indent_size = 4
tab_width = 4
max_line_length = 120
# YAML files
[*.{yml,yaml}]
indent_style = space
indent_size = 2
# JSON files
[*.json]
indent_style = space
indent_size = 2

View File

@ -3,8 +3,8 @@ name: CI
on: on:
push: push:
paths-ignore: paths-ignore:
- '*.md' - "*.md"
- 'LICENSE' - "LICENSE"
pull_request: pull_request:
env: env:

View File

@ -1,80 +1,70 @@
{ {
"version": 2, "version": 2,
"configurePresets": [ "configurePresets": [
{ {
"name": "ninja-base", "name": "ninja-base",
"hidden": true, "hidden": true,
"generator": "Ninja", "generator": "Ninja",
"cacheVariables": { "cacheVariables": {
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON", "CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
"WIBO_ENABLE_LIBURING": "ON" "WIBO_ENABLE_LIBURING": "ON"
} }
}, },
{ {
"name": "debug", "name": "debug",
"displayName": "Debug", "displayName": "Debug",
"inherits": [ "inherits": ["ninja-base"],
"ninja-base" "binaryDir": "${sourceDir}/build/debug",
], "cacheVariables": {
"binaryDir": "${sourceDir}/build/debug", "CMAKE_BUILD_TYPE": "Debug"
"cacheVariables": { }
"CMAKE_BUILD_TYPE": "Debug" },
} {
}, "name": "release",
{ "displayName": "Release",
"name": "release", "inherits": ["ninja-base"],
"displayName": "Release", "binaryDir": "${sourceDir}/build/release",
"inherits": [ "cacheVariables": {
"ninja-base" "CMAKE_BUILD_TYPE": "Release"
], }
"binaryDir": "${sourceDir}/build/release", }
"cacheVariables": { ],
"CMAKE_BUILD_TYPE": "Release" "buildPresets": [
} {
} "name": "debug",
], "displayName": "Build (Debug)",
"buildPresets": [ "configurePreset": "debug",
{ "targets": ["wibo", "wibo_test_fixtures"],
"name": "debug", "configuration": "Debug"
"displayName": "Build (Debug)", },
"configurePreset": "debug", {
"targets": [ "name": "release",
"wibo", "displayName": "Build (Release)",
"wibo_test_fixtures" "configurePreset": "release",
], "targets": ["wibo", "wibo_test_fixtures"],
"configuration": "Debug" "configuration": "Release"
}, }
{ ],
"name": "release", "testPresets": [
"displayName": "Build (Release)", {
"configurePreset": "release", "name": "fixtures",
"targets": [ "displayName": "Run fixture tests (Debug)",
"wibo", "configurePreset": "debug",
"wibo_test_fixtures" "configuration": "Debug",
], "output": {
"configuration": "Release" "outputOnFailure": true,
} "shortProgress": true
], }
"testPresets": [ },
{ {
"name": "fixtures", "name": "fixtures-release",
"displayName": "Run fixture tests (Debug)", "displayName": "Run fixture tests (Release)",
"configurePreset": "debug", "configurePreset": "release",
"configuration": "Debug", "configuration": "Release",
"output": { "output": {
"outputOnFailure": true, "outputOnFailure": true,
"shortProgress": true "shortProgress": true
} }
}, }
{ ]
"name": "fixtures-release",
"displayName": "Run fixture tests (Release)",
"configurePreset": "release",
"configuration": "Release",
"output": {
"outputOnFailure": true,
"shortProgress": true
}
}
]
} }

View File

@ -73,9 +73,9 @@ This will cross-compile the fixture executables, run them through `wibo`, and fa
## Related Projects ## Related Projects
* [taviso/loadlibrary](https://github.com/taviso/loadlibrary) - Initial inspiration for this project. - [taviso/loadlibrary](https://github.com/taviso/loadlibrary) - Initial inspiration for this project.
* [evmar/retrowin32](https://github.com/evmar/retrowin32) - A similar project with different goals and architecture. - [evmar/retrowin32](https://github.com/evmar/retrowin32) - A similar project with different goals and architecture.
* [decomp.me](https://decomp.me) - Collaborative decompilation website; uses wibo to run Windows compilers. - [decomp.me](https://decomp.me) - Collaborative decompilation website; uses wibo to run Windows compilers.
## License ## License