Skip to content

Commit 84f6b3c

Browse files
committed
0.6.0
1 parent 5682a22 commit 84f6b3c

File tree

5,240 files changed

+577217
-387087
lines changed

Some content is hidden

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

5,240 files changed

+577217
-387087
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
!buildspec.json
1515
!CMakeLists.txt
1616
!CMakePresets.json
17-
!LICENSE*
1817
!README.md
18+
!LICENSE*
1919

2020
!/lib
2121
!.vscode

CMakeLists.txt

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
cmake_minimum_required(VERSION 3.28...3.30)
22

3+
set(CMAKE_COMPILE_WARNING_AS_ERROR OFF)
4+
35
include("${CMAKE_CURRENT_SOURCE_DIR}/cmake/common/bootstrap.cmake")
46
string(JSON _displayName GET ${buildspec} displayName)
7+
string(JSON _windowsApp GET ${buildspec} uuids windowsApp)
58

69
project(${_name} VERSION ${_version})
710

8-
if(WIN32)
9-
set(CMAKE_INSTALL_PREFIX "$ENV{ProgramData}/obs-studio/plugins/${CMAKE_PROJECT_NAME}" CACHE STRING "Default plugin installation directory" FORCE)
10-
endif()
11-
1211
option(ENABLE_FRONTEND_API "Use obs-frontend-api for UI functionality" OFF)
1312
option(ENABLE_QT "Use Qt functionality" OFF)
1413

1514
include(compilerconfig)
1615
include(defaults)
1716
include(helpers)
1817

18+
1919
add_library(${CMAKE_PROJECT_NAME} MODULE)
2020

2121
find_package(libobs REQUIRED)
@@ -48,4 +48,9 @@ configure_file(src/config.h.in config.h @ONLY)
4848

4949
set_target_properties(${CMAKE_PROJECT_NAME} PROPERTIES CXX_STANDARD 23)
5050

51-
add_subdirectory(lib/atkaudio)
51+
add_subdirectory(lib/atkaudio)
52+
53+
# Sanitize CMAKE_INSTALL_PREFIX path (convert to CMake style and remove trailing slash)
54+
file(TO_CMAKE_PATH "${CMAKE_INSTALL_PREFIX}" _sanitized_prefix)
55+
string(REGEX REPLACE "/$" "" _sanitized_prefix "${_sanitized_prefix}")
56+
set(CMAKE_INSTALL_PREFIX "${_sanitized_prefix}" CACHE PATH "Sanitized install prefix" FORCE)

CMakePresets.json

Lines changed: 24 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"version": 3,
2+
"version": 8,
33
"cmakeMinimumRequired": {
44
"major": 3,
5-
"minor": 22,
5+
"minor": 28,
66
"patch": 0
77
},
88
"configurePresets": [
@@ -34,6 +34,7 @@
3434
},
3535
"cacheVariables": {
3636
"CMAKE_OSX_DEPLOYMENT_TARGET": "11.0",
37+
"CMAKE_OSX_ARCHITECTURES": "arm64;x86_64",
3738
"CODESIGN_IDENTITY": "$penv{CODESIGN_IDENT}",
3839
"CODESIGN_TEAM": "$penv{CODESIGN_TEAM}"
3940
}
@@ -47,7 +48,8 @@
4748
"description": "Build for macOS 11.0+ (Universal binary) for CI",
4849
"generator": "Xcode",
4950
"cacheVariables": {
50-
"CMAKE_COMPILE_WARNING_AS_ERROR": false
51+
"CMAKE_COMPILE_WARNING_AS_ERROR": true,
52+
"ENABLE_CCACHE": true
5153
}
5254
},
5355
{
@@ -64,13 +66,10 @@
6466
"rhs": "Windows"
6567
},
6668
"generator": "Visual Studio 17 2022",
67-
"architecture": "x64",
69+
"architecture": "x64,version=10.0.22621",
6870
"warnings": {
6971
"dev": true,
7072
"deprecated": true
71-
},
72-
"cacheVariables": {
73-
"CMAKE_SYSTEM_VERSION": "10.0.18363.657"
7473
}
7574
},
7675
{
@@ -85,9 +84,9 @@
8584
}
8685
},
8786
{
88-
"name": "linux-x86_64",
89-
"displayName": "Linux x86_64",
90-
"description": "Build for Linux x86_64",
87+
"name": "ubuntu-x86_64",
88+
"displayName": "Ubuntu x86_64",
89+
"description": "Build for Ubuntu x86_64",
9190
"inherits": [
9291
"template"
9392
],
@@ -102,54 +101,22 @@
102101
"dev": true,
103102
"deprecated": true
104103
},
105-
"cacheVariables": {
106-
"CMAKE_BUILD_TYPE": "Debug"
107-
}
108-
},
109-
{
110-
"name": "linux-ci-x86_64",
111-
"inherits": [
112-
"linux-x86_64"
113-
],
114-
"displayName": "Linux x86_64 CI build",
115-
"description": "Build for Linux x86_64 on CI",
116104
"cacheVariables": {
117105
"CMAKE_BUILD_TYPE": "Release",
118-
"CMAKE_COMPILE_WARNING_AS_ERROR": false
106+
"CMAKE_INSTALL_LIBDIR": "lib/CMAKE_SYSTEM_PROCESSOR-linux-gnu"
119107
}
120108
},
121109
{
122-
"name": "linux-aarch64",
123-
"displayName": "Linux aarch64",
124-
"description": "Build for Linux aarch64",
110+
"name": "ubuntu-ci-x86_64",
125111
"inherits": [
126-
"template"
112+
"ubuntu-x86_64"
127113
],
128-
"binaryDir": "${sourceDir}/build_aarch64",
129-
"condition": {
130-
"type": "equals",
131-
"lhs": "${hostSystemName}",
132-
"rhs": "Linux"
133-
},
134-
"generator": "Ninja",
135-
"warnings": {
136-
"dev": true,
137-
"deprecated": true
138-
},
139-
"cacheVariables": {
140-
"CMAKE_BUILD_TYPE": "Debug"
141-
}
142-
},
143-
{
144-
"name": "linux-ci-aarch64",
145-
"inherits": [
146-
"linux-aarch64"
147-
],
148-
"displayName": "Linux aarch64 CI build",
149-
"description": "Build for Linux aarch64 on CI",
114+
"displayName": "Ubuntu x86_64 CI build",
115+
"description": "Build for Ubuntu x86_64 on CI",
150116
"cacheVariables": {
151117
"CMAKE_BUILD_TYPE": "Release",
152-
"CMAKE_COMPILE_WARNING_AS_ERROR": false
118+
"CMAKE_COMPILE_WARNING_AS_ERROR": true,
119+
"ENABLE_CCACHE": true
153120
}
154121
}
155122
],
@@ -183,31 +150,17 @@
183150
"configuration": "Release"
184151
},
185152
{
186-
"name": "linux-x86_64",
187-
"configurePreset": "linux-x86_64",
188-
"displayName": "Linux x86_64",
189-
"description": "Linux build for x86_64",
190-
"configuration": "Debug"
191-
},
192-
{
193-
"name": "linux-ci-x86_64",
194-
"configurePreset": "linux-ci-x86_64",
195-
"displayName": "Linux x86_64 CI",
196-
"description": "Linux CI build for x86_64",
153+
"name": "ubuntu-x86_64",
154+
"configurePreset": "ubuntu-x86_64",
155+
"displayName": "Ubuntu x86_64",
156+
"description": "Ubuntu build for x86_64",
197157
"configuration": "Release"
198158
},
199159
{
200-
"name": "linux-aarch64",
201-
"configurePreset": "linux-aarch64",
202-
"displayName": "Linux aarch64",
203-
"description": "Linux build for aarch64",
204-
"configuration": "Debug"
205-
},
206-
{
207-
"name": "linux-ci-aarch64",
208-
"configurePreset": "linux-ci-aarch64",
209-
"displayName": "Linux aarch64 CI",
210-
"description": "Linux CI build for aarch64",
160+
"name": "ubuntu-ci-x86_64",
161+
"configurePreset": "ubuntu-ci-x86_64",
162+
"displayName": "Ubuntu x86_64 CI",
163+
"description": "Ubuntu CI build for x86_64",
211164
"configuration": "Release"
212165
}
213166
]

0 commit comments

Comments
 (0)