From 750740533daf6a878a234a40d55fc182557cdc8a Mon Sep 17 00:00:00 2001 From: haruki7049 Date: Fri, 10 Jan 2025 19:48:39 +0900 Subject: [PATCH 1/3] Init meson.build --- meson.build | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 meson.build diff --git a/meson.build b/meson.build new file mode 100644 index 0000000..004527f --- /dev/null +++ b/meson.build @@ -0,0 +1,44 @@ +project('godot-headers', + 'c', + license : 'MIT') + +install_headers( + 'android/godot_android.h', + 'arvr/godot_arvr.h', + 'gdnative/aabb.h', + 'gdnative/array.h', + 'gdnative/basis.h', + 'gdnative/color.h', + 'gdnative/dictionary.h', + 'gdnative/gdnative.h', + 'gdnative/node_path.h', + 'gdnative/plane.h', + 'gdnative/pool_arrays.h', + 'gdnative/quat.h', + 'gdnative/rect2.h', + 'gdnative/rid.h', + 'gdnative/string.h', + 'gdnative/string_name.h', + 'gdnative/transform.h', + 'gdnative/transform2d.h', + 'gdnative/variant.h', + 'gdnative/vector2.h', + 'gdnative/vector3.h', + 'nativescript/godot_nativescript.h', + 'net/godot_net.h', + 'net/godot_webrtc.h', + 'pluginscript/godot_pluginscript.h', + 'videodecoder/godot_videodecoder.h', + 'gdnative_api_struct.gen.h', + preserve_path: true) + +install_data( + 'api.json', + 'gdnative_api.json', + 'images/faq/create_dlscript.png', + 'images/faq/dllibrary_create_new_dllibrary.png', + 'images/faq/dllibrary_create_new_resource.png', + 'images/faq/dllibrary_save_as_resource.png', + 'images/faq/set_script_dllibrary.png', + preserve_path: true) + From a9101c91f558cb79b9d1464e7c3cb80c2d83054c Mon Sep 17 00:00:00 2001 From: haruki7049 Date: Fri, 10 Jan 2025 19:56:34 +0900 Subject: [PATCH 2/3] Add pkgconfig setup script --- meson.build | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/meson.build b/meson.build index 004527f..8d47528 100644 --- a/meson.build +++ b/meson.build @@ -2,6 +2,18 @@ project('godot-headers', 'c', license : 'MIT') +pkgconfig = import('pkgconfig') + +h = [ + 'android', + 'arvr', + 'gdnative', + 'nativescript', + 'net', + 'pluginscript', + 'videodecoder', +] + install_headers( 'android/godot_android.h', 'arvr/godot_arvr.h', @@ -42,3 +54,4 @@ install_data( 'images/faq/set_script_dllibrary.png', preserve_path: true) +pkgconfig.generate(subdirs: h, name: 'godot-headers', description: 'Headers for the Godot API supplied by the GDNative module') From d0b51a65412a02a8d0316cc6092a3e1b2811c085 Mon Sep 17 00:00:00 2001 From: haruki7049 Date: Fri, 10 Jan 2025 20:20:34 +0900 Subject: [PATCH 3/3] Add meson version decralation --- meson.build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 8d47528..9d2654f 100644 --- a/meson.build +++ b/meson.build @@ -1,6 +1,7 @@ project('godot-headers', 'c', - license : 'MIT') + license : 'MIT', + meson_version: '>= 1.3.0') pkgconfig = import('pkgconfig')