Skip to content

Commit

Permalink
update for 1.10.980
Browse files Browse the repository at this point in the history
  • Loading branch information
shad0wshayd3 committed May 9, 2024
1 parent f9f1f80 commit a3415ff
Show file tree
Hide file tree
Showing 34 changed files with 497 additions and 532 deletions.
1 change: 0 additions & 1 deletion .github/TEMPLATE

This file was deleted.

76 changes: 0 additions & 76 deletions .github/bootstrap.ps1

This file was deleted.

35 changes: 0 additions & 35 deletions .github/workflows/bootstrap.yml

This file was deleted.

94 changes: 62 additions & 32 deletions Plugin/.clang-format
Original file line number Diff line number Diff line change
@@ -1,97 +1,127 @@
---
AccessModifierOffset: -4
AlignAfterOpenBracket: DontAlign
AlignConsecutiveAssignments: false
AlignConsecutiveBitFields: false
AlignConsecutiveDeclarations: true
AlignConsecutiveMacros: false
AlignArrayOfStructures: Right
AlignConsecutiveAssignments:
Enabled: false
AlignConsecutiveBitFields:
Enabled: false
AlignConsecutiveDeclarations:
Enabled: false
AlignConsecutiveMacros:
Enabled: true
AlignConsecutiveShortCaseStatements:
Enabled: false
AlignEscapedNewlines: Left
AlignOperands: Align
AlignTrailingComments: true
AlignOperands: AlignAfterOperator
AlignTrailingComments:
Kind: Always
AllowAllArgumentsOnNextLine: false
AllowAllParametersOfDeclarationOnNextLine: false
AllowShortBlocksOnASingleLine: Empty
AllowShortCaseLabelsOnASingleLine: false
AllowShortEnumsOnASingleLine: true
AllowShortFunctionsOnASingleLine: All
AllowShortEnumsOnASingleLine: false
AllowShortFunctionsOnASingleLine: Inline
AllowShortIfStatementsOnASingleLine: Never
AllowShortLambdasOnASingleLine: All
AllowShortLoopsOnASingleLine: true
AllowShortLambdasOnASingleLine: Inline
AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: true
AlwaysBreakTemplateDeclarations: Yes
BinPackArguments: true
BinPackParameters: true
BitFieldColonSpacing: After
BinPackArguments: false
BinPackParameters: false
BitFieldColonSpacing: Both
BraceWrapping:
AfterCaseLabel: true
AfterClass: true
AfterControlStatement: false
AfterControlStatement: Always
AfterEnum: true
AfterFunction: true
AfterNamespace: true
AfterStruct: true
AfterUnion: true
AfterExternBlock: true
BeforeCatch: false
BeforeElse: false
BeforeLambdaBody: false
BeforeWhile: false
BeforeCatch: true
BeforeElse: true
BeforeLambdaBody: true
BeforeWhile: true
IndentBraces: false
SplitEmptyFunction: false
SplitEmptyRecord: false
SplitEmptyNamespace: false
BreakAfterAttributes: Never
BreakBeforeBinaryOperators: None
BreakBeforeBraces: Custom
BreakBeforeTernaryOperators: false
BreakBeforeConceptDeclarations: Never
BreakBeforeInlineASMColon: Never
BreakBeforeTernaryOperators: true
BreakConstructorInitializers: AfterColon
BreakInheritanceList: AfterColon
BreakStringLiterals: true
BreakStringLiterals: false
ColumnLimit: 0
CompactNamespaces: false
ConstructorInitializerIndentWidth: 4
ContinuationIndentWidth: 4
Cpp11BracedListStyle: false
DerivePointerAlignment: false
DisableFormat: false
EmptyLineAfterAccessModifier: Never
EmptyLineBeforeAccessModifier: Always
FixNamespaceComments: false
IncludeBlocks: Preserve
IndentCaseBlocks: true
IndentAccessModifiers: true
IndentCaseBlocks: false
IndentCaseLabels: false
IndentExternBlock: Indent
IndentGotoLabels: false
IndentPPDirectives: AfterHash
IndentRequiresClause: true
IndentWidth: 4
IndentWrappedFunctionNames: true
InsertBraces: false
InsertNewlineAtEOF: true
KeepEmptyLinesAtEOF: true
KeepEmptyLinesAtTheStartOfBlocks: false
LambdaBodyIndentation: Signature
Language: Cpp
LineEnding: CRLF
MaxEmptyLinesToKeep: 1
NamespaceIndentation: All
PackConstructorInitializers: Never
PointerAlignment: Left
PPIndentWidth: -1
ReferenceAlignment: Left
ReflowComments: false
SortIncludes: true
SortUsingDeclarations: true
RemoveBracesLLVM: false
RemoveParentheses: Leave
RemoveSemicolon: false
RequiresClausePosition: SingleLine
RequiresExpressionIndentation: OuterScope
SeparateDefinitionBlocks: Always
SortIncludes: CaseSensitive
SortUsingDeclarations: Lexicographic
SpaceAfterCStyleCast: false
SpaceAfterLogicalNot: false
SpaceAfterTemplateKeyword: true
SpaceAroundPointerQualifiers: Default
SpaceBeforeAssignmentOperators: true
SpaceBeforeCaseColon: false
SpaceBeforeCpp11BracedList: false
SpaceBeforeCtorInitializerColon: true
SpaceBeforeInheritanceColon: true
SpaceBeforeJsonColon: false
SpaceBeforeParens: ControlStatements
SpaceBeforeRangeBasedForLoopColon: true
SpaceBeforeSquareBrackets: false
SpaceInEmptyBlock: false
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 2
SpacesInAngles: false
SpacesInCStyleCastParentheses: false
SpacesInConditionalStatement: false
SpacesInContainerLiterals: true
SpacesInParentheses: false
SpacesInAngles: Never
SpacesInContainerLiterals: false
SpacesInLineCommentPrefix:
Minimum: 1
Maximum: -1
SpacesInParens: Never
SpacesInSquareBrackets: false
Standard: Latest
TabWidth: 4
UseTab: AlignWithSpaces
LineEnding: CRLF
PackConstructorInitializers: BinPack
UseTab: Never
2 changes: 1 addition & 1 deletion Plugin/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 3.21)
# info
project(
BakaFramework
VERSION 1.0.0
VERSION 2.0.0
LANGUAGES CXX
)

Expand Down
4 changes: 3 additions & 1 deletion Plugin/CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@
"type": "STRING",
"value": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake"
},
"VCPKG_TARGET_TRIPLET": "x64-windows-static-md"
"VCPKG_OVERLAY_PORTS": "./Plugin/cmake/ports/",
"VCPKG_OVERLAY_TRIPLETS": "./Plugin/cmake/triplets/",
"VCPKG_TARGET_TRIPLET": "x64-windows-baka-steam"
}
},
{
Expand Down
95 changes: 95 additions & 0 deletions Plugin/cmake/ports/steamworks-sdk/cmake/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
cmake_minimum_required(VERSION 3.20)

include (version.cmake)
project(
SteamworksSDK
VERSION ${MAJOR}.${MINOR}
LANGUAGES CXX
)

include(CMakePackageConfigHelpers)
include(GNUInstallDirs)

file(GLOB HEADERS public/steam/*.h)

add_library(${PROJECT_NAME} INTERFACE ${HEADERS})
add_library(${PROJECT_NAME}::${PROJECT_NAME} ALIAS ${PROJECT_NAME})

target_include_directories(
${PROJECT_NAME}
INTERFACE
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/public>"
"$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>"
)

if(CMAKE_SYSTEM_NAME STREQUAL Windows)
if(CMAKE_SIZEOF_VOID_P EQUAL 4)
set(LINK_LIB_FILE "sdkencryptedappticket.lib")
set(LINK_LIB_FOLDER "win32")
elseif(CMAKE_SIZEOF_VOID_P EQUAL 8)
set(LINK_LIB_FILE "sdkencryptedappticket64.lib")
set(LINK_LIB_FOLDER "win64")
endif()
elseif(CMAKE_SYSTEM_NAME STREQUAL Darwin)
set(LINK_LIB_FILE "libsdkencryptedappticket.dylib")
set(LINK_LIB_FOLDER "osx")
elseif(CMAKE_SYSTEM_NAME STREQUAL Linux)
if(CMAKE_SIZEOF_VOID_P EQUAL 4)
set(LINK_LIB_FILE "libsdkencryptedappticket.so")
set(LINK_LIB_FOLDER "linux32")
elseif(CMAKE_SIZEOF_VOID_P EQUAL 8)
set(LINK_LIB_FILE "libsdkencryptedappticket.so")
set(LINK_LIB_FOLDER "linux64")
endif()
else()
message(FATAL_ERROR "unsupported platform")
endif()
set(LINK_LIB_FULL "public/steam/lib/${LINK_LIB_FOLDER}/${LINK_LIB_FILE}")

target_link_libraries(
${PROJECT_NAME}
INTERFACE
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/${LINK_LIB_FULL}>"
"$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/${CMAKE_INSTALL_LIBDIR}/${LINK_LIB_FILE}>"
)

install(
TARGETS ${PROJECT_NAME}
EXPORT ${PROJECT_NAME}-targets
)

configure_file(
config.cmake.in
${PROJECT_NAME}Config.cmake
@ONLY
)

write_basic_package_version_file(
"${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}ConfigVersion.cmake"
VERSION ${MAJOR}.${MINOR}
COMPATIBILITY ExactVersion
)

install(
FILES
"${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}Config.cmake"
"${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}ConfigVersion.cmake"
DESTINATION
"${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}"
)

install(
EXPORT ${PROJECT_NAME}-targets
NAMESPACE ${PROJECT_NAME}::
DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}"
)

install(
FILES ${HEADERS}
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/steam"
)

install(
FILES "${LINK_LIB_FULL}"
DESTINATION "${CMAKE_INSTALL_LIBDIR}"
)
1 change: 1 addition & 0 deletions Plugin/cmake/ports/steamworks-sdk/cmake/config.cmake.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include("${CMAKE_CURRENT_LIST_DIR}/@[email protected]")
2 changes: 2 additions & 0 deletions Plugin/cmake/ports/steamworks-sdk/cmake/version.cmake.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
set(MAJOR @MAJOR@)
set(MINOR @MINOR@)
Loading

0 comments on commit a3415ff

Please sign in to comment.