summaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorBerke Güzel <wenekar1@gmail.com>2026-10-13 15:05:06 +0300
committerBerke Güzel <wenekar1@gmail.com>2026-10-13 15:05:06 +0300
commit98f0d51157fa2a2b8ccaae54ed4850a88d223d01 (patch)
tree90b03d0930986620d95eb0f45c07b96e1331783c /meson.build
parent339e1ad7adb8340732ee856d0f6f0d2c7f1455d1 (diff)
Simplify surface state, examples, and library installation
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build39
1 files changed, 1 insertions, 38 deletions
diff --git a/meson.build b/meson.build
index b0ea8e8..8e396d8 100644
--- a/meson.build
+++ b/meson.build
@@ -88,35 +88,6 @@ yasl_lib = both_libraries(
install: true,
)
-install_headers(
- 'include/yasl/yasl.h',
- 'include/yasl/app.h',
- 'include/yasl/timing.h',
- 'include/yasl/keycodes.h',
- 'include/yasl/loop.h',
- 'include/yasl/native.h',
- subdir: 'yasl',
-)
-
-if has_wayland
- install_headers('include/yasl/native/wayland.h', subdir: 'yasl/native')
-endif
-if has_x11
- install_headers('include/yasl/native/x11.h', subdir: 'yasl/native')
-endif
-if has_cocoa
- install_headers('include/yasl/native/cocoa.h', subdir: 'yasl/native')
-endif
-
-pkg = import('pkgconfig')
-pkg.generate(
- yasl_lib.get_shared_lib(),
- name: 'yasl',
- description: 'Yet Another Surface Library - minimal, modern desktop window surface abstraction',
- version: meson.project_version(),
- subdirs: '.',
-)
-
yasl_dep = declare_dependency(
link_with: yasl_lib.get_static_lib(),
include_directories: include_directories('include'),
@@ -131,7 +102,7 @@ hello_example = executable(
link_with: yasl_lib.get_shared_lib(),
)
-executable(
+interactive_example = executable(
'yasl-example',
'examples/simple_window.c',
include_directories: inc,
@@ -158,11 +129,3 @@ game_example = executable(
)
subdir('tests')
-
-doc_dir = get_option('datadir') / 'doc' / 'yasl'
-install_data('README.md', 'CONTRIBUTING.md', 'IDE_INTEGRATION.md', 'Doxyfile', 'LICENSE', install_dir: doc_dir)
-# Preserve source-relative links and keep the reference buildable offline.
-install_subdir('docs', install_dir: doc_dir)
-install_subdir('examples', install_dir: doc_dir)
-install_subdir('include', install_dir: doc_dir)
-install_data('LICENSE', install_dir: get_option('datadir') / 'licenses' / 'yasl')