| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- project(
- 'scufpong',
- 'c',
- default_options: [
- 'force_fallback_for=scufeng'
- ]
- )
- c_args = [
- '-std=c23',
- '-Wall',
- '-Wextra',
- '-pedantic'
- ]
- common_src = [
- 'src/common/GameState_net.c',
- 'src/common/game.c',
- 'src/common/networking.c'
- ]
- common_include = include_directories(
- 'src/common/'
- )
- scufeng_dep = dependency(
- 'scufeng',
- allow_fallback: true
- )
- game = executable(
- 'game',
- 'src/game/MainMenu.c',
- 'src/game/MultiPlayer.c',
- 'src/game/SinglePlayer.c',
- 'src/game/game_common.c',
- 'src/game/pong.c',
- common_src,
- include_directories: [
- common_include
- ],
- c_args: [
- c_args,
- '-DFONT_PATH="../assets/LiberationSans-Regular.ttf"',
- '-D_DEFAULT_SOURCE' # for inet_aton
- ],
- link_args: [
- '-lm'
- ],
- dependencies: [
- scufeng_dep
- ]
- )
- server = executable(
- 'server',
- 'src/server/server.c',
- common_src,
- include_directories: [
- common_include
- ],
- c_args: [
- c_args,
- '-D_DEFAULT_SOURCE' # for inet_aton
- ],
- link_args: [
- '-lm'
- ],
- dependencies: [
- scufeng_dep
- ]
- )
|