Initial Commit

Signed-off-by: Robear Selwans <robear.selwans@outlook.com>
This commit is contained in:
2021-01-23 00:00:33 +02:00
commit b95b0d4a6c
4 changed files with 63 additions and 0 deletions

21
.gitignore vendored Normal file
View File

@@ -0,0 +1,21 @@
**/build/**
**/builddir/**
**/out/**
**/.cache/**
**/.ccls-cache/**
**/.vs/**
**/.idea/**
**/.clangd/**
compile_commands.json
subprojects/*
!subprojects/packagefiles
tags
**/.nvimrc
.doxygen

2
config.lua Normal file
View File

@@ -0,0 +1,2 @@
name = "sandbox"
module_directory = "."

21
meson.build Normal file
View File

@@ -0,0 +1,21 @@
project('evol-sandbox', 'c',
version : '0.1',
default_options : ['warning_level=3'])
evol_dep = dependency('evol')
subproject('evmod_glfw')
configure_file(input: 'config.lua', output: 'config.lua', copy: true)
exe = executable(
'sandbox',
'src/main.c',
dependencies: [
evol_dep,
],
install : true,
export_dynamic: true,
)
test('basic', exe)

19
src/main.c Normal file
View File

@@ -0,0 +1,19 @@
#include <evol/evol.h>
#include <evol/evolmod.h>
int main(int argc, char **argv) {
evolengine_t *engine = evol_create();
evol_parse_args(engine, argc, argv);
evol_init(engine);
evolmodule_t window_module = evol_loadmodule("window");
FN_PTR window_start_fn = evol_getmodfunc(window_module, EV_STRINGIZE(EV_START_FN_NAME));
if(window_start_fn) {
window_start_fn();
}
evol_unloadmodule(window_module);
evol_deinit(engine);
evol_destroy(engine);
return 0;
}