I had a ton of issues related to cross-compilation (libraries not found, clashing function names with raylib, improper linking), and I realized that it's too much work to cross-compile, _and_ I'm using a build system. Instead, I'm probably just going to use my Windows VM to compile for Windows. I still haven't decided what to do for Mac, though.
12 lines
405 B
Meson
12 lines
405 B
Meson
project('Pong', ['cpp', 'c'])
|
|
add_global_arguments('-g', '-Wall', '-pedantic', '-Wno-unused-function', '-Werror', language : ['cpp', 'c'])
|
|
|
|
raylib = dependency('raylib', native: true)
|
|
static_lib_path = ''
|
|
|
|
executable('pong',
|
|
'main.cpp', 'easysock.cpp', 'sock.cpp','paddle.cpp', 'ball.cpp', 'numeric_base.cpp', 'connect_code.cpp', 'server.cpp', 'client.cpp',
|
|
'serialization.c',
|
|
dependencies: raylib,
|
|
)
|