diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..bdd22e6 --- /dev/null +++ b/.editorconfig @@ -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 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 75856c4..4da6b7e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,8 +3,8 @@ name: CI on: push: paths-ignore: - - '*.md' - - 'LICENSE' + - "*.md" + - "LICENSE" pull_request: env: diff --git a/CMakePresets.json b/CMakePresets.json index 82cb3dc..67fd674 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -1,80 +1,70 @@ { - "version": 2, - "configurePresets": [ - { - "name": "ninja-base", - "hidden": true, - "generator": "Ninja", - "cacheVariables": { - "CMAKE_EXPORT_COMPILE_COMMANDS": "ON", - "WIBO_ENABLE_LIBURING": "ON" - } - }, - { - "name": "debug", - "displayName": "Debug", - "inherits": [ - "ninja-base" - ], - "binaryDir": "${sourceDir}/build/debug", - "cacheVariables": { - "CMAKE_BUILD_TYPE": "Debug" - } - }, - { - "name": "release", - "displayName": "Release", - "inherits": [ - "ninja-base" - ], - "binaryDir": "${sourceDir}/build/release", - "cacheVariables": { - "CMAKE_BUILD_TYPE": "Release" - } - } - ], - "buildPresets": [ - { - "name": "debug", - "displayName": "Build (Debug)", - "configurePreset": "debug", - "targets": [ - "wibo", - "wibo_test_fixtures" - ], - "configuration": "Debug" - }, - { - "name": "release", - "displayName": "Build (Release)", - "configurePreset": "release", - "targets": [ - "wibo", - "wibo_test_fixtures" - ], - "configuration": "Release" - } - ], - "testPresets": [ - { - "name": "fixtures", - "displayName": "Run fixture tests (Debug)", - "configurePreset": "debug", - "configuration": "Debug", - "output": { - "outputOnFailure": true, - "shortProgress": true - } - }, - { - "name": "fixtures-release", - "displayName": "Run fixture tests (Release)", - "configurePreset": "release", - "configuration": "Release", - "output": { - "outputOnFailure": true, - "shortProgress": true - } - } - ] + "version": 2, + "configurePresets": [ + { + "name": "ninja-base", + "hidden": true, + "generator": "Ninja", + "cacheVariables": { + "CMAKE_EXPORT_COMPILE_COMMANDS": "ON", + "WIBO_ENABLE_LIBURING": "ON" + } + }, + { + "name": "debug", + "displayName": "Debug", + "inherits": ["ninja-base"], + "binaryDir": "${sourceDir}/build/debug", + "cacheVariables": { + "CMAKE_BUILD_TYPE": "Debug" + } + }, + { + "name": "release", + "displayName": "Release", + "inherits": ["ninja-base"], + "binaryDir": "${sourceDir}/build/release", + "cacheVariables": { + "CMAKE_BUILD_TYPE": "Release" + } + } + ], + "buildPresets": [ + { + "name": "debug", + "displayName": "Build (Debug)", + "configurePreset": "debug", + "targets": ["wibo", "wibo_test_fixtures"], + "configuration": "Debug" + }, + { + "name": "release", + "displayName": "Build (Release)", + "configurePreset": "release", + "targets": ["wibo", "wibo_test_fixtures"], + "configuration": "Release" + } + ], + "testPresets": [ + { + "name": "fixtures", + "displayName": "Run fixture tests (Debug)", + "configurePreset": "debug", + "configuration": "Debug", + "output": { + "outputOnFailure": true, + "shortProgress": true + } + }, + { + "name": "fixtures-release", + "displayName": "Run fixture tests (Release)", + "configurePreset": "release", + "configuration": "Release", + "output": { + "outputOnFailure": true, + "shortProgress": true + } + } + ] } diff --git a/README.md b/README.md index 82e2ad5..cf6885f 100644 --- a/README.md +++ b/README.md @@ -73,9 +73,9 @@ This will cross-compile the fixture executables, run them through `wibo`, and fa ## Related Projects -* [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. -* [decomp.me](https://decomp.me) - Collaborative decompilation website; uses wibo to run Windows compilers. +- [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. +- [decomp.me](https://decomp.me) - Collaborative decompilation website; uses wibo to run Windows compilers. ## License