Skip to content
This repository was archived by the owner on Mar 10, 2025. It is now read-only.

Commit c4eea02

Browse files
jpakkanelegeana
authored andcommitted
Add Meson build definitions.
1 parent 69ca584 commit c4eea02

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

meson.build

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
project('imgui-sfml', 'cpp',
2+
version: '2.1',
3+
meson_version: '>=0.55.0',
4+
license: 'MIT')
5+
6+
imgui_dep = dependency('imgui', fallback: ['imgui', 'imgui_dep'])
7+
8+
# We do not look up sfml here because there are many different
9+
# names for the .pc files and others and it is unclear which
10+
# ones we should use. Thus users of this wrap must look up sfml
11+
# by themselves and add it to their targets.
12+
#
13+
# This is suboptimal, hopefully this can be fixed once we have
14+
# more usage experience.
15+
16+
imgui_sfml_dep = declare_dependency(include_directories: '.',
17+
dependencies: imgui_dep)
18+
meson.override_dependency('imgui-sfml', imgui_sfml_dep)

upstream.wrap

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[wrap-file]
2+
directory = imgui-sfml-2.1
3+
4+
source_url = https://github.com/eliasdaler/imgui-sfml/archive/v2.1.tar.gz
5+
source_filename = v2.1.tar.gz
6+
source_hash = 16a589cb7219ebe3147b13cfe44e50de315deedf6ca8bd67d4ef91de3a09478e

0 commit comments

Comments
 (0)