Skip to content

Commit

Permalink
Add v2.3 build definitions.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpakkane committed May 27, 2021
1 parent 69ca584 commit ace10b7
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
23 changes: 23 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
project('imgui-sfml', 'cpp',
version: '2.1',
meson_version: '>=0.55.0',
license: 'MIT')

imgui_dep = dependency('imgui')
sfml_dep = dependency('sfml')

# We do not look up sfml here because there are many different
# names for the .pc files and others and it is unclear which
# ones we should use. Thus users of this wrap must look up sfml
# by themselves and add it to their targets.
#
# This is suboptimal, hopefully this can be fixed once we have
# more usage experience.

is_lib = library('imgui-sfml', 'imgui-SFML.cpp',
dependencies: [sfml_dep, imgui_dep])

imgui_sfml_dep = declare_dependency(include_directories: '.',
dependencies: imgui_dep,
link_with: is_lib)
meson.override_dependency('imgui-sfml', imgui_sfml_dep)
10 changes: 10 additions & 0 deletions upstream.wrap
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[wrap-file]
directory = imgui-sfml-2.3

source_url = https://github.com/eliasdaler/imgui-sfml/archive/refs/tags/v2.3.tar.gz
source_filename = v2.3.tar.gz
source_hash = 4e2f520916d1d676a4553f5c266ed869e32808b0f4681b9b603280257323a45b

[provide]
imgui-sfml = imgui_sfml_dep

0 comments on commit ace10b7

Please sign in to comment.