Changes from the MSVC compatibility struggle
Signed-off-by: mo7sener <robear.selwans@outlook.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
project('evol-sandbox', 'c',
|
||||
version : '0.1',
|
||||
default_options : ['warning_level=3'])
|
||||
default_options : ['warning_level=3', 'c_std=c11'])
|
||||
|
||||
evol_dep = dependency('evol')
|
||||
|
||||
@@ -9,13 +9,12 @@ subproject('evmod_glfw')
|
||||
configure_file(input: 'config.lua', output: 'config.lua', copy: true)
|
||||
|
||||
exe = executable(
|
||||
'sandbox',
|
||||
'sandbox',
|
||||
'src/main.c',
|
||||
dependencies: [
|
||||
evol_dep,
|
||||
],
|
||||
install : true,
|
||||
export_dynamic: true,
|
||||
)
|
||||
|
||||
test('basic', exe)
|
||||
|
||||
@@ -1,11 +1,15 @@
|
||||
#include <evol/evol.h>
|
||||
#include <evol/evolmod.h>
|
||||
#include <evol/common/ev_log.h>
|
||||
#include <assert.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");
|
||||
assert(window_module);
|
||||
|
||||
FN_PTR window_start_fn = evol_getmodfunc(window_module, EV_STRINGIZE(EV_START_FN_NAME));
|
||||
if(window_start_fn) {
|
||||
|
||||
@@ -5,4 +5,4 @@ revision = v0.2
|
||||
depth = 1
|
||||
|
||||
[provide]
|
||||
dependency_names = evol, evolmod
|
||||
dependency_names = evol
|
||||
|
||||
Reference in New Issue
Block a user