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

@ -13,9 +13,7 @@
{ {
"name": "debug", "name": "debug",
"displayName": "Debug", "displayName": "Debug",
"inherits": [ "inherits": ["ninja-base"],
"ninja-base"
],
"binaryDir": "${sourceDir}/build/debug", "binaryDir": "${sourceDir}/build/debug",
"cacheVariables": { "cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug" "CMAKE_BUILD_TYPE": "Debug"
@ -24,9 +22,7 @@
{ {
"name": "release", "name": "release",
"displayName": "Release", "displayName": "Release",
"inherits": [ "inherits": ["ninja-base"],
"ninja-base"
],
"binaryDir": "${sourceDir}/build/release", "binaryDir": "${sourceDir}/build/release",
"cacheVariables": { "cacheVariables": {
"CMAKE_BUILD_TYPE": "Release" "CMAKE_BUILD_TYPE": "Release"
@ -38,20 +34,14 @@
"name": "debug", "name": "debug",
"displayName": "Build (Debug)", "displayName": "Build (Debug)",
"configurePreset": "debug", "configurePreset": "debug",
"targets": [ "targets": ["wibo", "wibo_test_fixtures"],
"wibo",
"wibo_test_fixtures"
],
"configuration": "Debug" "configuration": "Debug"
}, },
{ {
"name": "release", "name": "release",
"displayName": "Build (Release)", "displayName": "Build (Release)",
"configurePreset": "release", "configurePreset": "release",
"targets": [ "targets": ["wibo", "wibo_test_fixtures"],
"wibo",
"wibo_test_fixtures"
],
"configuration": "Release" "configuration": "Release"
} }
], ],

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