]> jturnerusa.dev Git - wayland-sandbox/commitdiff
init
authorJohn Turner <jturner.usa@gmail.com>
Thu, 27 Feb 2025 13:04:11 +0000 (08:04 -0500)
committerJohn Turner <jturner.usa@gmail.com>
Thu, 27 Feb 2025 13:04:11 +0000 (08:04 -0500)
meson.build [new file with mode: 0644]
src/main.cpp [new file with mode: 0644]

diff --git a/meson.build b/meson.build
new file mode 100644 (file)
index 0000000..3dd9fb5
--- /dev/null
@@ -0,0 +1,27 @@
+project(
+  'wayland-sandbox',
+  ['cpp', 'c'],
+  version: '0.1.0',
+  default_options: ['warning_level=3', 'cpp_std=c++23']
+)
+
+wayland = import('unstable-wayland')
+
+wayland_security_context = wayland.scan_xml(
+  wayland.find_protocol('security-context', state: 'staging', version: 1)
+)
+
+wayland_client = dependency('wayland-client')
+
+sources = files(
+  'src/main.cpp'
+)
+
+sources += wayland_security_context
+
+executable(
+  'wayland-sandbox',
+  sources,
+  dependencies: wayland_client,
+  install: true
+)
diff --git a/src/main.cpp b/src/main.cpp
new file mode 100644 (file)
index 0000000..e69de29