1
0

meson.build 833 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. project(
  2. 'scufpong',
  3. 'c',
  4. default_options: [
  5. 'force_fallback_for=scufeng'
  6. ]
  7. )
  8. c_args = [
  9. '-std=c23',
  10. '-Wall',
  11. '-Wextra',
  12. '-pedantic'
  13. ]
  14. scufeng_dep = dependency(
  15. 'scufeng',
  16. allow_fallback: true
  17. )
  18. game = executable(
  19. 'game',
  20. 'src/common/game.c',
  21. 'src/game/MainMenu.c',
  22. 'src/game/MultiPlayer.c',
  23. 'src/game/SinglePlayer.c',
  24. 'src/game/pong.c',
  25. 'src/game/screen.c',
  26. include_directories: include_directories(
  27. 'src/common/'
  28. ),
  29. c_args: [
  30. c_args,
  31. '-DFONT_PATH="../assets/LiberationSans-Regular.ttf"',
  32. '-D_DEFAULT_SOURCE' # for inet_aton
  33. ],
  34. link_args: [
  35. '-lm'
  36. ],
  37. dependencies: [
  38. scufeng_dep
  39. ]
  40. )
  41. server = executable(
  42. 'server',
  43. 'src/server/server.c',
  44. c_args: [
  45. c_args,
  46. '-D_DEFAULT_SOURCE' # for inet_aton
  47. ],
  48. dependencies: [
  49. scufeng_dep
  50. ]
  51. )