summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@opera.com>2026-01-12 23:14:58 +0100
committerJoel Klinghed <the_jk@opera.com>2026-01-12 23:14:58 +0100
commit1abd3903f4a1c3709c04f30c3e1b93bbbecf45c0 (patch)
tree829e82c8866d5cf7d29d644a63c22bdc12bf4fe8
parentdfeb19b0a83b8ce57d28bf94a4f8d129993d1064 (diff)
Add subprojects for those that I found
-rw-r--r--meson.build4
-rw-r--r--subprojects/.gitignore3
-rw-r--r--subprojects/.wraplock0
-rw-r--r--subprojects/libxkbcommon.wrap10
-rw-r--r--subprojects/rapidjson.wrap13
5 files changed, 28 insertions, 2 deletions
diff --git a/meson.build b/meson.build
index 0146e90..b8ba596 100644
--- a/meson.build
+++ b/meson.build
@@ -38,13 +38,13 @@ xcb_dep = [dependency('xcb', version: '>= 1.14'),
dependency('xcb-event', version: '>= 0.4.0'),
dependency('xcb-icccm', version: '>= 0.4.1'),
dependency('xcb-keysyms', version: '>= 0.4.0'),
- dependency('xkbcommon-x11', version: '>= 1.0.3')]
+ dependency('xkbcommon-x11', version: '>= 1.0.3', fallback: ['libxkbcommon', 'xkbcommon-x11'])]
xcb_xrm_dep = dependency('xcb-xrm', version: '>= 1.0', required: false)
dbus_dep = dependency('sdbus-c++', version: '>= 2.0.0')
-json_dep = dependency('RapidJSON', version: '>= 1.1.0')
+json_dep = dependency('RapidJSON', version: '>= 1.1.0', fallback: ['rapidjson', 'rapidjson_dep'])
dependencies = [
dbus_dep,
diff --git a/subprojects/.gitignore b/subprojects/.gitignore
new file mode 100644
index 0000000..0c0c5ad
--- /dev/null
+++ b/subprojects/.gitignore
@@ -0,0 +1,3 @@
+libxkbcommon-xkbcommon-1.11.0/
+packagecache/
+rapidjson-1.1.0/
diff --git a/subprojects/.wraplock b/subprojects/.wraplock
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/subprojects/.wraplock
diff --git a/subprojects/libxkbcommon.wrap b/subprojects/libxkbcommon.wrap
new file mode 100644
index 0000000..7d5a12e
--- /dev/null
+++ b/subprojects/libxkbcommon.wrap
@@ -0,0 +1,10 @@
+[wrap-file]
+directory = libxkbcommon-xkbcommon-1.11.0
+source_url = https://github.com/xkbcommon/libxkbcommon/archive/refs/tags/xkbcommon-1.11.0.tar.gz
+source_filename = libxkbcommon-1.11.0.tar.xz
+source_hash = 78a6b14f16e9a55025978c252e53ce9e16a02bfdb929550b9a0db5af87db7e02
+source_fallback_url = https://github.com/mesonbuild/wrapdb/releases/download/libxkbcommon_1.11.0-2/libxkbcommon-1.11.0.tar.xz
+wrapdb_version = 1.11.0-2
+
+[provide]
+dependency_names = xkbcommon, xkbcommon-x11, xkbregistry
diff --git a/subprojects/rapidjson.wrap b/subprojects/rapidjson.wrap
new file mode 100644
index 0000000..50b8346
--- /dev/null
+++ b/subprojects/rapidjson.wrap
@@ -0,0 +1,13 @@
+[wrap-file]
+directory = rapidjson-1.1.0
+source_url = https://github.com/Tencent/rapidjson/archive/v1.1.0.tar.gz
+source_filename = rapidjson-1.1.0.tar.gz
+source_hash = bf7ced29704a1e696fbccf2a2b4ea068e7774fa37f6d7dd4039d0787f8bed98e
+patch_filename = rapidjson_1.1.0-2_patch.zip
+patch_url = https://wrapdb.mesonbuild.com/v2/rapidjson_1.1.0-2/get_patch
+patch_hash = c1480d0ecef09dbaa4b4d85d86090205386fb2c7e87f4f158b20dbbda14c9afc
+source_fallback_url = https://github.com/mesonbuild/wrapdb/releases/download/rapidjson_1.1.0-2/rapidjson-1.1.0.tar.gz
+wrapdb_version = 1.1.0-2
+
+[provide]
+rapidjson = rapidjson_dep