Added relevant files for cross-compilation to windows
parent
69e70eb206
commit
b90d37c73f
Binary file not shown.
Binary file not shown.
@ -1,8 +1,18 @@
|
||||
project('Pong', ['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',
|
||||
'main.cpp', 'easysock.cpp', 'sock.cpp','paddle.cpp', 'ball.cpp', 'numeric_base.cpp', 'connect_code.cpp', 'server.cpp', 'client.cpp',
|
||||
'serialization.c',
|
||||
dependencies: raylib,
|
||||
dependencies: raylib,
|
||||
)
|
||||
|
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…
Reference in New Issue