43 lines
585 B
Meson
43 lines
585 B
Meson
project('scuffedcraft', 'c')
|
|
|
|
cargs = [
|
|
'-std=c99',
|
|
'-Og',
|
|
'-g',
|
|
]
|
|
|
|
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/log.c',
|
|
c_args: cargs,
|
|
dependencies: dependencies,
|
|
link_args: link_args
|
|
)
|