This commit is contained in:
Jordon Brooks 2025-05-06 16:59:40 +01:00
parent 0460ae1a50
commit 1dca4a91d9
Signed by: jordon
GPG key ID: DBD9758CD53E786A
19 changed files with 333 additions and 156 deletions

View file

@ -1,12 +1,32 @@
# 1) Grab the active C++ compiler
cpp = meson.get_compiler('cpp')
ccid = cpp.get_id() # e.g. 'msvc', 'gcc', 'clang', 'intel', ...
# 2) Decide your D-flag prefix
if ccid == 'msvc'
dflag = '/D'
else
dflag = '-D'
endif
# Point to the public headers of FluxEngine
sandbox_inc = include_directories(
'../FluxEngine/src/public'
)
executable(
'sandbox',
'sandbox_Shared',
'src/private/SandboxApp.cpp',
include_directories: sandbox_inc,
dependencies : flux_dep,
install : true,
include_directories: [sandbox_inc, flux_inc],
link_with: [ flux_shared ],
)
executable(
'sandbox_Static',
'src/private/SandboxApp.cpp',
include_directories: [sandbox_inc, flux_inc],
link_with: [ flux_static ],
cpp_args: [
dflag + 'FLUX_STATIC'
],
)

View file

@ -1,19 +1,9 @@
#include <Flux.h>
#include "Flux.h"
class Sandbox : public Flux::Application
int main (int argc, char** argv)
{
public:
Sandbox()
{
}
~Sandbox()
{
}
};
Flux::Application* Flux::CreateApplication()
{
return new Sandbox();
Flux::FluxEngine engine;
engine.Start();
return 0;
}