First commit
This commit is contained in:
+55
@@ -0,0 +1,55 @@
|
||||
project(
|
||||
'scufpong',
|
||||
'c',
|
||||
default_options: [
|
||||
'force_fallback_for=scufeng'
|
||||
]
|
||||
)
|
||||
|
||||
c_args = [
|
||||
'-std=c23',
|
||||
'-Wall',
|
||||
'-Wextra',
|
||||
'-pedantic'
|
||||
]
|
||||
|
||||
scufeng_dep = dependency(
|
||||
'scufeng',
|
||||
allow_fallback: true
|
||||
)
|
||||
|
||||
game = executable(
|
||||
'game',
|
||||
'src/common/game.c',
|
||||
'src/game/MainMenu.c',
|
||||
'src/game/MultiPlayer.c',
|
||||
'src/game/SinglePlayer.c',
|
||||
'src/game/pong.c',
|
||||
'src/game/screen.c',
|
||||
include_directories: include_directories(
|
||||
'src/common/'
|
||||
),
|
||||
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',
|
||||
c_args: [
|
||||
c_args,
|
||||
'-D_DEFAULT_SOURCE' # for inet_aton
|
||||
],
|
||||
dependencies: [
|
||||
scufeng_dep
|
||||
]
|
||||
)
|
||||
Reference in New Issue
Block a user