Skip to content

Commit 6b427c0

Browse files
committed
Release 1.0.0
0 parents  commit 6b427c0

File tree

11,627 files changed

+2484883
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

11,627 files changed

+2484883
-0
lines changed

.clang-format

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# Generated from CLion C/C++ Code Style settings
2+
BasedOnStyle: LLVM
3+
AccessModifierOffset: 0
4+
AlignAfterOpenBracket: Align
5+
AlignConsecutiveAssignments: None
6+
AlignOperands: DontAlign
7+
AllowAllArgumentsOnNextLine: false
8+
AllowAllConstructorInitializersOnNextLine: false
9+
AllowAllParametersOfDeclarationOnNextLine: false
10+
AllowShortBlocksOnASingleLine: Empty
11+
AllowShortCaseLabelsOnASingleLine: true
12+
AllowShortFunctionsOnASingleLine: All
13+
AllowShortIfStatementsOnASingleLine: Always
14+
AllowShortLambdasOnASingleLine: Empty
15+
AllowShortLoopsOnASingleLine: true
16+
AlwaysBreakAfterReturnType: None
17+
AlwaysBreakTemplateDeclarations: Yes
18+
BreakBeforeBraces: Custom
19+
BraceWrapping:
20+
AfterCaseLabel: false
21+
AfterClass: false
22+
AfterControlStatement: Never
23+
AfterEnum: false
24+
AfterFunction: false
25+
AfterNamespace: false
26+
AfterUnion: false
27+
BeforeCatch: false
28+
BeforeElse: false
29+
IndentBraces: false
30+
SplitEmptyFunction: false
31+
SplitEmptyRecord: true
32+
BreakBeforeBinaryOperators: NonAssignment
33+
BreakBeforeTernaryOperators: true
34+
BreakConstructorInitializers: BeforeColon
35+
BreakInheritanceList: BeforeColon
36+
ColumnLimit: 0
37+
CompactNamespaces: false
38+
ContinuationIndentWidth: 4
39+
IndentCaseLabels: true
40+
IndentPPDirectives: None
41+
IndentWidth: 4
42+
KeepEmptyLinesAtTheStartOfBlocks: true
43+
MaxEmptyLinesToKeep: 1
44+
NamespaceIndentation: None
45+
ObjCSpaceAfterProperty: false
46+
ObjCSpaceBeforeProtocolList: false
47+
PointerAlignment: Left
48+
ReflowComments: false
49+
SpaceAfterCStyleCast: true
50+
SpaceAfterLogicalNot: false
51+
SpaceAfterTemplateKeyword: false
52+
SpaceBeforeAssignmentOperators: true
53+
SpaceBeforeCpp11BracedList: false
54+
SpaceBeforeCtorInitializerColon: true
55+
SpaceBeforeInheritanceColon: true
56+
SpaceBeforeParens: ControlStatements
57+
SpaceBeforeRangeBasedForLoopColon: true
58+
SpaceInEmptyParentheses: false
59+
SpacesBeforeTrailingComments: 0
60+
SpacesInAngles: false
61+
SpacesInCStyleCastParentheses: false
62+
SpacesInContainerLiterals: false
63+
SpacesInParentheses: false
64+
SpacesInSquareBrackets: false
65+
TabWidth: 4
66+
UseTab: Never

.gitignore

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Build output
2+
build/
3+
*.qmod
4+
5+
# Python virtual environment
6+
venv/
7+
8+
# External dependencies
9+
extern/
10+
11+
# Auto-generated files
12+
include/Assets.hpp
13+
14+
# Crash dump
15+
crash.txt
16+
17+
# Log files
18+
*.log
19+
logcat.txt

.idea/.gitignore

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/.name

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/BeatSaberSpotifySearch.iml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/editor.xml

Lines changed: 344 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CMakeLists.txt

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
cmake_minimum_required(VERSION 3.22)
2+
3+
option(QUEST "Build for quest" ON)
4+
5+
# Globals
6+
set(CMAKE_CXX_STANDARD 23)
7+
set(CMAKE_CXX_STANDARD_REQUIRED 23)
8+
set(CMAKE_EXPORT_COMPILE_COMMANDS TRUE)
9+
10+
set(SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/src)
11+
set(INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/include)
12+
13+
add_compile_definitions(HOT_RELOAD=1)
14+
15+
add_compile_options(-frtti -fexceptions -fvisibility=hidden -fPIE -fPIC)
16+
17+
# Include. Include order matters!
18+
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/utils.cmake)
19+
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/qpm.cmake)
20+
21+
include(${EXTERN_DIR}/includes/kaleb/shared/cmake/assets.cmake)
22+
23+
if(${CMAKE_BUILD_TYPE} STREQUAL "RELEASE" OR ${CMAKE_BUILD_TYPE} STREQUAL "RelWithDebInfo" OR ${CMAKE_BUILD_TYPE} STREQUAL "MinSizeRel")
24+
# Better optimizations
25+
add_compile_options(-O3)
26+
27+
# LTO
28+
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE)
29+
add_compile_options(-flto)
30+
endif()
31+
32+
if(${CMAKE_BUILD_TYPE} STREQUAL "DEBUG" OR ${CMAKE_BUILD_TYPE} STREQUAL "RelWithDebInfo")
33+
add_compile_options(-g)
34+
endif()
35+
36+
# Targets
37+
if(QUEST)
38+
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/targets/quest.cmake)
39+
endif()
40+
41+
# Post build
42+
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/strip.cmake)
43+
44+
# stop symbols leaking
45+
# TODO: Fix
46+
# add_link_options(-Wl, --exclude-libs, ALL)
47+
project( spotify-search
48+
VERSION ${PACKAGE_VERSION})
49+
50+
add_compile_definitions(MOD_ID="${CMAKE_PROJECT_NAME}")
51+
add_compile_definitions(VERSION="${CMAKE_PROJECT_VERSION}")
52+
53+
# Set COMPILE_ID for qpm purposes
54+
set(COMPILE_ID ${CMAKE_PROJECT_NAME})
55+
56+
# recursively get all src files
57+
RECURSE_FILES(cpp_file_list ${SOURCE_DIR}/*.cpp)
58+
RECURSE_FILES(c_file_list ${SOURCE_DIR}/*.c)
59+
60+
add_library(
61+
${CMAKE_PROJECT_NAME}
62+
SHARED
63+
${cpp_file_list}
64+
${c_file_list}
65+
)
66+
67+
add_subdirectory(third-party)
68+
69+
# for inline hook
70+
target_link_libraries(${CMAKE_PROJECT_NAME} PRIVATE log crypto ssl httplib)
71+
72+
target_include_directories(${CMAKE_PROJECT_NAME} PRIVATE ${INCLUDE_DIR})
73+
target_include_directories(${CMAKE_PROJECT_NAME} PRIVATE ${SHARED_DIR})
74+
75+
# beatsaber hook inline hook
76+
77+
RECURSE_FILES(src_inline_hook_beatsaber_hook_local_extra_c ${EXTERN_DIR}/includes/beatsaber-hook/shared/inline-hook/*.c)
78+
RECURSE_FILES(src_inline_hook_beatsaber_hook_local_extra_cpp ${EXTERN_DIR}/includes/beatsaber-hook/shared/inline-hook/*.cpp)
79+
80+
target_sources(${COMPILE_ID} PRIVATE ${src_inline_hook_beatsaber_hook_local_extra_c})
81+
target_sources(${COMPILE_ID} PRIVATE ${src_inline_hook_beatsaber_hook_local_extra_cpp})
82+
83+
# Add assets
84+
add_assets(${COMPILE_ID}-assets STATIC ${CMAKE_CURRENT_LIST_DIR}/assets ${INCLUDE_DIR}/Assets.hpp)
85+
target_link_libraries(${COMPILE_ID} PRIVATE ${COMPILE_ID}-assets)

0 commit comments

Comments
 (0)