diff --git a/libraylib.a b/libraylib.a new file mode 100644 index 0000000..9c14cfd Binary files /dev/null and b/libraylib.a differ diff --git a/libraylibdll.a b/libraylibdll.a new file mode 100644 index 0000000..3665ba9 Binary files /dev/null and b/libraylibdll.a differ diff --git a/meson.build b/meson.build index 9a410ef..a862537 100644 --- a/meson.build +++ b/meson.build @@ -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, ) diff --git a/raylib.dll b/raylib.dll new file mode 100644 index 0000000..6424378 Binary files /dev/null and b/raylib.dll differ diff --git a/x86_64-w64-mingw32.txt b/x86_64-w64-mingw32.txt new file mode 100644 index 0000000..008ff77 --- /dev/null +++ b/x86_64-w64-mingw32.txt @@ -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'