meson.build 585 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. project('scuffedcraft', 'c')
  2. cargs = [
  3. '-std=c99',
  4. '-Og',
  5. '-g',
  6. ]
  7. dependencies = []
  8. link_args = []
  9. if host_machine.system() == 'linux'
  10. dependencies += [
  11. dependency('libglvnd')
  12. ]
  13. elif host_machine.system() == 'windows'
  14. link_args += [
  15. '-lopengl32'
  16. ]
  17. cargs += [
  18. '-DUNICODE',
  19. '-D__UNICODE',
  20. '-municode'
  21. ]
  22. if build_machine.system() == 'linux'
  23. link_args += [
  24. '-Lvendor/wine/',
  25. ]
  26. endif
  27. endif
  28. executable(
  29. 'scuffedcraft',
  30. 'src/main.c',
  31. 'src/log.c',
  32. c_args: cargs,
  33. dependencies: dependencies,
  34. link_args: link_args
  35. )