-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Meson. Starting redesign. Adding tests.
- Loading branch information
1 parent
7fe6aa2
commit efe9122
Showing
31 changed files
with
626 additions
and
335 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,17 @@ | ||
{ | ||
"configurations": [ | ||
{ | ||
"name": "Linux", | ||
"includePath": [ | ||
"${workspaceFolder}/src/**" | ||
], | ||
"defines": [], | ||
"compilerPath": "/usr/bin/gcc", | ||
"cStandard": "c17", | ||
"cppStandard": "c++23", | ||
"intelliSenseMode": "linux-gcc-x64", | ||
"configurationProvider": "mesonbuild.mesonbuild" | ||
} | ||
], | ||
"version": 4 | ||
} |
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,34 @@ | ||
{ | ||
"configurations": [ | ||
{ | ||
"name": "(gdb) Launch", | ||
"type": "cppdbg", | ||
"request": "launch", | ||
"program": "${workspaceFolder}/build/TestByteEngine", | ||
"args": ["--threads 1"], | ||
"stopAtEntry": false, | ||
"cwd": "${fileDirname}", | ||
"environment": [], | ||
"externalConsole": false, | ||
"MIMode": "gdb", | ||
"preLaunchTask": "build", | ||
"setupCommands": [ | ||
{ | ||
"description": "Enable pretty-printing for gdb", | ||
"text": "-enable-pretty-printing", | ||
"ignoreFailures": true | ||
}, | ||
{ | ||
"description": "Set Disassembly Flavor to Intel", | ||
"text": "-gdb-set disassembly-flavor intel", | ||
"ignoreFailures": true | ||
}, | ||
{ | ||
"description": "Enable break on all exceptions", | ||
"text": "catch throw", | ||
"ignoreFailures": true | ||
} | ||
] | ||
} | ||
], | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "build", | ||
"type": "shell", | ||
"problemMatcher": "$gcc", | ||
"group": "build", | ||
"command": "ninja -C 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
This file was deleted.
Oops, something went wrong.
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,9 @@ | ||
{ | ||
"version": 4, | ||
"vendor": { | ||
"conan": {} | ||
}, | ||
"include": [ | ||
"/home/facundovilla/development/Byte-Engine/build/CMakePresets.json" | ||
] | ||
} |
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 @@ | ||
meson compile -C 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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
[requires] | ||
assimp/5.2.2 | ||
stb/cci.20210910 | ||
stb/cci.20220909 | ||
|
||
[generators] | ||
cmake_find_package_multi | ||
cmake_find_package | ||
PkgConfigDeps | ||
MesonToolchain |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
project('ByteEngine', 'cpp') | ||
|
||
src = [ | ||
'src/ByteEngine/Application/EntryPoint.h', | ||
'src/ByteEngine/Physics/PhysicsWorld.cpp', | ||
'src/ByteEngine/Render/RenderOrchestrator.cpp', | ||
'src/ByteEngine/Application/AllocatorReferences.cpp', | ||
'src/ByteEngine/Application/PoolAllocator.cpp', | ||
'src/ByteEngine/Application/StackAllocator.cpp', | ||
'src/ByteEngine/Application/SystemAllocator.cpp', | ||
'src/ByteEngine/Application/Templates/GameApplication.cpp', | ||
'src/ByteEngine/Debug/FunctionTimer.cpp', | ||
'src/ByteEngine/Game/ApplicationManager.cpp', | ||
'src/ByteEngine/Object.cpp', | ||
'src/ByteEngine/Render/RendererAllocator.cpp', | ||
'src/ByteEngine/Render/RenderSystem.cpp', | ||
'src/ByteEngine/Game/World.cpp', | ||
'src/ByteEngine/Light.cpp', | ||
'src/ByteEngine/Render/StaticMeshSystem.cpp', | ||
'src/ByteEngine/Render/UIManager.cpp', | ||
'src/ByteEngine/Resources/AnimationResourceManager.cpp', | ||
'src/ByteEngine/Resources/AudioResourceManager.cpp', | ||
'src/ByteEngine/Resources/FontResourceManager.cpp', | ||
'src/ByteEngine/Resources/PipelineCacheResourceManager.cpp', | ||
'src/ByteEngine/Resources/ResourceManager.cpp', | ||
'src/ByteEngine/Resources/StaticMeshResourceManager.cpp', | ||
'src/ByteEngine/Resources/TextureResourceManager.cpp', | ||
'src/ByteEngine/Sound/AudioSystem.cpp', | ||
'src/ByteEngine/Utility/Shapes/Cone.cpp', | ||
'src/ByteEngine/Utility/Shapes/ConeWithFalloff.cpp', | ||
'src/ByteEngine/Application/InputManager.cpp', | ||
'src/ByteEngine/Debug/Logger.cpp', | ||
'src/ByteEngine/Application/ScriptingSystem.cpp', | ||
'src/ByteEngine/Application/Clock.cpp', | ||
'src/ByteEngine/Application/Application.cpp', | ||
'src/ByteEngine/Resources/BC7.cpp', | ||
'src/ByteEngine/Render/WorldRenderPipeline.cpp', | ||
] | ||
|
||
assimp = dependency('assimp', version: '>=5.0.0') | ||
stb = dependency('stb') | ||
gtsl = dependency('GTSL') | ||
mono = dependency('mono-2') | ||
monosgen = dependency('monosgen-2') | ||
vulkan = dependency('vulkan') | ||
shaderc = dependency('shaderc') | ||
alsa = dependency('alsa') | ||
|
||
args = [ | ||
'-mavx', | ||
'-DBE_DEBUG=1', '-DBE_PLATFORM_WINDOWS=0', '-DBE_PLATFORM_LINUX=1', '-DBE_VULKAN=1', '-DBE_DX12=0', | ||
'-Db_sanitize=address', | ||
] | ||
|
||
ByteEngine = library('ByteEngine', src, dependencies: [assimp, stb, gtsl, mono, monosgen, vulkan, shaderc, alsa], include_directories: include_directories('src'), cpp_args: args) | ||
|
||
test_src = ['tests/TestApplication.cpp'] | ||
|
||
test = executable('TestByteEngine', test_src, link_with: [ByteEngine], include_directories: include_directories('src')) | ||
|
||
test('TestByteEngine', test) |
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
Oops, something went wrong.