| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- 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
- )
|