Added relevant files for cross-compilation to windows

master
Aadhavan Srinivasan 10 months ago
parent 69e70eb206
commit b90d37c73f

Binary file not shown.

Binary file not shown.

@ -1,6 +1,16 @@
project('Pong', ['cpp', 'c']) project('Pong', ['cpp', 'c'])
add_global_arguments('-g', '-Wall', '-pedantic', '-Wno-unused-function', '-Werror', language : ['cpp', 'c']) add_global_arguments('-g', '-Wall', '-pedantic', '-Wno-unused-function', '-Werror', language : ['cpp', 'c'])
raylib = dependency('raylib')
raylib = dependency('raylib', native: true)
static_lib_path = ''
if meson.is_cross_build()
add_project_link_arguments('-L /usr/x86_64-w64-mingw32/lib/', '-lws2_32', '-lwinmm', '-I/usr/x86_64-w64-mingw32/include', language: ['c', 'cpp'])
raylib = declare_dependency(
link_args: ['-lraylib'],
include_directories: include_directories('/usr/x86_64-w64-mingw32/include/'))
endif
executable('pong', executable('pong',
'main.cpp', 'easysock.cpp', 'sock.cpp','paddle.cpp', 'ball.cpp', 'numeric_base.cpp', 'connect_code.cpp', 'server.cpp', 'client.cpp', 'main.cpp', 'easysock.cpp', 'sock.cpp','paddle.cpp', 'ball.cpp', 'numeric_base.cpp', 'connect_code.cpp', 'server.cpp', 'client.cpp',
'serialization.c', 'serialization.c',

Binary file not shown.

@ -0,0 +1,12 @@
[binaries]
c = 'x86_64-w64-mingw32-g++'
cpp = 'x86_64-w64-mingw32-g++'
ar = 'x86_64-w64-mingw32-ar'
strip = 'x86_64-w64-mingw32-strip'
exe_wrapper = 'wine64'
[host_machine]
system = 'windows'
cpu_family = 'x86_64'
cpu = 'x86_64'
endian = 'little'
Loading…
Cancel
Save