diff --git a/CMakeLists.txt b/CMakeLists.txt index 3ecb2b89..a3fdf1bd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -34,6 +34,9 @@ target_link_libraries(uking PUBLIC sead) add_subdirectory(lib/agl) target_link_libraries(uking PUBLIC agl) +add_subdirectory(lib/aal) +target_link_libraries(uking PRIVATE aal) + add_subdirectory(lib/EventFlow) target_link_libraries(uking PRIVATE evfl) diff --git a/lib/aal/.clang-format b/lib/aal/.clang-format new file mode 100644 index 00000000..ef862606 --- /dev/null +++ b/lib/aal/.clang-format @@ -0,0 +1,74 @@ +--- +Language: Cpp +AccessModifierOffset: -4 +AlignAfterOpenBracket: Align +AlignConsecutiveAssignments: false +AlignConsecutiveDeclarations: false +AlignOperands: true +AlignTrailingComments: true +AllowAllParametersOfDeclarationOnNextLine: true +AllowShortBlocksOnASingleLine: Never +AllowShortCaseLabelsOnASingleLine: false +AllowShortFunctionsOnASingleLine: Inline +AllowShortIfStatementsOnASingleLine: Never +AllowShortLoopsOnASingleLine: false +AlwaysBreakAfterDefinitionReturnType: None +AlwaysBreakAfterReturnType: None +AlwaysBreakBeforeMultilineStrings: false +AlwaysBreakTemplateDeclarations: Yes +BinPackArguments: true +BinPackParameters: true +BreakBeforeBinaryOperators: None +BreakBeforeBraces: Attach +BreakBeforeTernaryOperators: false +BreakConstructorInitializersBeforeComma: false +ColumnLimit: 100 +CommentPragmas: '^ (IWYU pragma:|NOLINT)' +ConstructorInitializerAllOnOneLineOrOnePerLine: false +ConstructorInitializerIndentWidth: 4 +ContinuationIndentWidth: 4 +Cpp11BracedListStyle: true +DerivePointerAlignment: false +DisableFormat: false +ForEachMacros: [] +IncludeCategories: + - Regex: '^<[Ww]indows\.h>$' + Priority: 1 + - Regex: '^<' + Priority: 2 + - Regex: '^"' + Priority: 3 +IndentCaseLabels: false +IndentWidth: 4 +IndentWrappedFunctionNames: false +KeepEmptyLinesAtTheStartOfBlocks: false +MacroBlockBegin: '' +MacroBlockEnd: '' +MaxEmptyLinesToKeep: 1 +NamespaceIndentation: None +ObjCBlockIndentWidth: 4 +ObjCSpaceAfterProperty: false +ObjCSpaceBeforeProtocolList: true +PenaltyBreakBeforeFirstCallParameter: 19 +PenaltyBreakComment: 300 +PenaltyBreakFirstLessLess: 120 +PenaltyBreakString: 1000 +PenaltyExcessCharacter: 1000000 +PenaltyReturnTypeOnItsOwnLine: 60 +PointerAlignment: Left +ReflowComments: true +SortIncludes: true +SpaceAfterCStyleCast: false +SpaceBeforeAssignmentOperators: true +SpaceBeforeParens: ControlStatements +SpaceInEmptyParentheses: false +SpacesBeforeTrailingComments: 2 +SpacesInAngles: false +SpacesInContainerLiterals: true +SpacesInCStyleCastParentheses: false +SpacesInParentheses: false +SpacesInSquareBrackets: false +Standard: c++17 +TabWidth: 4 +UseTab: Never +... diff --git a/lib/aal/CMakeLists.txt b/lib/aal/CMakeLists.txt new file mode 100644 index 00000000..bec22b55 --- /dev/null +++ b/lib/aal/CMakeLists.txt @@ -0,0 +1,15 @@ +project(aal CXX ASM) + +add_library(aal OBJECT + src/dummy.cpp +) + +target_compile_options(aal PRIVATE -fno-exceptions) +target_compile_options(aal PRIVATE -fno-strict-aliasing) +target_compile_options(aal PRIVATE -Wno-invalid-offsetof) +target_include_directories(aal PUBLIC include/) + +if(NOT TARGET sead) + add_subdirectory(../sead) +endif() +target_link_libraries(aal PUBLIC sead) diff --git a/lib/aal/src/dummy.cpp b/lib/aal/src/dummy.cpp new file mode 100644 index 00000000..e69de29b