log functions and working opengl context on windows
This commit is contained in:
26
meson.build
26
meson.build
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user