-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from Sploder12/v2
V2
- Loading branch information
Showing
132 changed files
with
8,967 additions
and
24,105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: Run gtest | ||
run-name: Run tests by ${{ github.actor }} | ||
on: [push] | ||
jobs: | ||
job: | ||
name: ${{ matrix.os }}-${{ github.workflow }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [windows-latest, ubuntu-latest] | ||
include: | ||
- os: windows-latest | ||
preset: 'x64-release' | ||
binary: '.\out\build\x64-release\src\tests\tests.exe' | ||
- os: ubuntu-latest | ||
preset: 'linux-debug' | ||
binary: './out/build/linux-debug/src/tests/tests' | ||
install_opengl: true | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4.2.0 | ||
|
||
- name: Install openGL | ||
if: ${{ matrix.install_opengl }} | ||
run: | | ||
sudo apt-get install libxmu-dev libxi-dev libgl-dev | ||
sudo apt install libxinerama-dev libxcursor-dev xorg-dev libglu1-mesa-dev pkg-config | ||
sudo apt install libxrandr-dev | ||
- uses: ilammy/msvc-dev-cmd@v1.13.0 | ||
|
||
- uses: lukka/get-cmake@latest | ||
- name: Run vcpkg | ||
uses: lukka/run-vcpkg@v11.5 | ||
with: | ||
runVcpkgInstall: true | ||
|
||
- name: Run CMake | ||
uses: lukka/run-cmake@v10 | ||
with: | ||
configurePreset: ${{ matrix.preset }} | ||
|
||
- name: Compile | ||
run: | | ||
cd './out/build/${{ matrix.preset }}' | ||
ninja | ||
- name: Run Tests | ||
timeout-minutes: 5 | ||
run: ${{ matrix.binary }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -367,4 +367,8 @@ lib/ | |
|
||
GPUCache/ | ||
|
||
Intel* | ||
Intel* | ||
|
||
# Jetbrains IDEs | ||
.idea/ | ||
cmake-build-*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# CMakeList.txt : CMake project for SNDXlib, include source and define | ||
# project specific logic here. | ||
# | ||
cmake_minimum_required (VERSION 3.14) | ||
|
||
# Enable Hot Reload for MSVC compilers if supported. | ||
if (POLICY CMP0141) | ||
cmake_policy(SET CMP0141 NEW) | ||
set(CMAKE_MSVC_DEBUG_INFORMATION_FORMAT "$<IF:$<AND:$<C_COMPILER_ID:MSVC>,$<CXX_COMPILER_ID:MSVC>>,$<$<CONFIG:Debug,RelWithDebInfo>:EditAndContinue>,$<$<CONFIG:Debug,RelWithDebInfo>:ProgramDatabase>>") | ||
endif() | ||
|
||
set(CMAKE_TOOLCHAIN_FILE "$ENV{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake") | ||
|
||
project ("SNDXlib") | ||
|
||
find_package(OpenAL CONFIG REQUIRED) | ||
find_package(Stb REQUIRED) | ||
find_path(MINIMP3_INCLUDE_DIRS "minimp3/minimp3.h") | ||
find_package(glm CONFIG REQUIRED) | ||
find_package(glfw3 CONFIG REQUIRED) | ||
find_package(GLEW REQUIRED) | ||
find_package(Freetype REQUIRED) | ||
find_package(Vorbis CONFIG REQUIRED) | ||
|
||
include_directories(lib/include src/include/sndx) | ||
|
||
include_directories(${Stb_INCLUDE_DIR} ${MINIMP3_INCLUDE_DIRS}) | ||
link_libraries(OpenAL::OpenAL glm::glm glfw GLEW::GLEW Freetype::Freetype Vorbis::vorbis) | ||
|
||
add_subdirectory(src/tests) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
{ | ||
"version": 3, | ||
"configurePresets": [ | ||
{ | ||
"name": "windows-base", | ||
"hidden": true, | ||
"generator": "Ninja", | ||
"binaryDir": "${sourceDir}/out/build/${presetName}", | ||
"installDir": "${sourceDir}/out/install/${presetName}", | ||
"cacheVariables": { | ||
"CMAKE_C_COMPILER": "cl.exe", | ||
"CMAKE_CXX_COMPILER": "cl.exe", | ||
"CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake" | ||
}, | ||
"condition": { | ||
"type": "equals", | ||
"lhs": "${hostSystemName}", | ||
"rhs": "Windows" | ||
} | ||
}, | ||
{ | ||
"name": "x64-debug", | ||
"displayName": "x64 Debug", | ||
"inherits": "windows-base", | ||
"architecture": { | ||
"value": "x64", | ||
"strategy": "external" | ||
}, | ||
"cacheVariables": { | ||
"CMAKE_BUILD_TYPE": "Debug" | ||
} | ||
}, | ||
{ | ||
"name": "x64-release", | ||
"displayName": "x64 Release", | ||
"inherits": "x64-debug", | ||
"cacheVariables": { | ||
"CMAKE_BUILD_TYPE": "Release" | ||
} | ||
}, | ||
{ | ||
"name": "x86-debug", | ||
"displayName": "x86 Debug", | ||
"inherits": "windows-base", | ||
"architecture": { | ||
"value": "x86", | ||
"strategy": "external" | ||
}, | ||
"cacheVariables": { | ||
"CMAKE_BUILD_TYPE": "Debug" | ||
} | ||
}, | ||
{ | ||
"name": "x86-release", | ||
"displayName": "x86 Release", | ||
"inherits": "x86-debug", | ||
"cacheVariables": { | ||
"CMAKE_BUILD_TYPE": "Release" | ||
} | ||
}, | ||
{ | ||
"name": "linux-debug", | ||
"displayName": "Linux Debug", | ||
"generator": "Ninja", | ||
"binaryDir": "${sourceDir}/out/build/${presetName}", | ||
"installDir": "${sourceDir}/out/install/${presetName}", | ||
"cacheVariables": { | ||
"CMAKE_BUILD_TYPE": "Debug" | ||
}, | ||
"condition": { | ||
"type": "equals", | ||
"lhs": "${hostSystemName}", | ||
"rhs": "Linux" | ||
}, | ||
"vendor": { | ||
"microsoft.com/VisualStudioRemoteSettings/CMake/1.0": { | ||
"sourceDir": "$env{HOME}/.vs/$ms{projectDirName}" | ||
} | ||
} | ||
}, | ||
{ | ||
"name": "macos-debug", | ||
"displayName": "macOS Debug", | ||
"generator": "Ninja", | ||
"binaryDir": "${sourceDir}/out/build/${presetName}", | ||
"installDir": "${sourceDir}/out/install/${presetName}", | ||
"cacheVariables": { | ||
"CMAKE_BUILD_TYPE": "Debug" | ||
}, | ||
"condition": { | ||
"type": "equals", | ||
"lhs": "${hostSystemName}", | ||
"rhs": "Darwin" | ||
}, | ||
"vendor": { | ||
"microsoft.com/VisualStudioRemoteSettings/CMake/1.0": { | ||
"sourceDir": "$env{HOME}/.vs/$ms{projectDirName}" | ||
} | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.