log functions and working opengl context on windows

This commit is contained in:
2026-06-26 23:38:56 +03:00
parent 4b1ade6464
commit cf4a087dc3
5 changed files with 145 additions and 41 deletions

View File

@@ -5,16 +5,38 @@ cargs = [
'-Og',
'-g',
]
if host_machine.system() == 'windows'
dependencies = []
link_args = []
if host_machine.system() == 'linux'
dependencies += [
dependency('libglvnd')
]
elif host_machine.system() == 'windows'
link_args += [
'-lopengl32'
]
cargs += [
'-DUNICODE',
'-D__UNICODE',
'-municode'
]
if build_machine.system() == 'linux'
link_args += [
'-Lvendor/wine/',
]
endif
endif
executable(
'scuffedcraft',
'./src/main.c',
'src/main.c',
'src/log.c',
c_args: cargs,
dependencies: dependencies,
link_args: link_args
)