Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion releases.json
Original file line number Diff line number Diff line change
Expand Up @@ -1594,7 +1594,7 @@
},
"imgui-docking": {
"dependency_names": [
"imgui_docking"
"imgui-docking"
],
"versions": [
"1.91.6-1",
Expand Down
2 changes: 1 addition & 1 deletion subprojects/imgui-docking.wrap
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ source_hash = C78A11730F6E3F4911E151F96F2AA43E96ED77119599D8E7302F8294DFDB40D1
patch_directory = imgui-docking

[provide]
imgui_docking = imgui_dep
imgui-docking = imgui_dep
34 changes: 24 additions & 10 deletions subprojects/packagefiles/imgui-docking/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -61,17 +61,9 @@ if dx12_dep.found() and cpp.get_argument_syntax() == 'msvc'
sources += 'backends/imgui_impl_dx12.cpp'
dependencies += dx12_dep
endif
dxgi_dep = cpp.find_library(
'dxgi',
required: get_option('dx12'),
)
if dxgi_dep.found() and cpp.get_argument_syntax() == 'msvc'
dependencies += dxgi_dep
endif

metal_dep = dependency(
'appleframeworks',
modules: ['Foundation', 'AppKit', 'GameController', 'Metal', 'QuartzCore'],
modules: ['Foundation', 'AppKit', 'GameController', 'Metal'],
required: get_option('metal'),
)
if metal_dep.found()
Expand All @@ -93,12 +85,21 @@ endif
sdl2_renderer_dep = dependency(
'sdl2',
version: '>=2.0.17',
required: get_option('sdl_renderer'),
required: get_option('sdl2_renderer'),
)
if sdl2_renderer_dep.found()
sources += 'backends/imgui_impl_sdlrenderer2.cpp'
dependencies += sdl2_renderer_dep
endif
sdl3_renderer_dep = dependency(
'sdl3',
version: '>=3.1.3',
required: get_option('sdl3_renderer'),
)
if sdl3_renderer_dep.found()
sources += 'backends/imgui_impl_sdlrenderer3.cpp'
dependencies += sdl3_renderer_dep
endif
vulkan_dep = dependency(
'vulkan',
required: get_option('vulkan'),
Expand Down Expand Up @@ -131,6 +132,14 @@ if sdl2_dep.found()
sources += 'backends/imgui_impl_sdl2.cpp'
dependencies += sdl2_dep
endif
sdl3_dep = dependency(
'sdl3',
required: get_option('sdl3'),
)
if sdl3_dep.found()
sources += 'backends/imgui_impl_sdl3.cpp'
dependencies += sdl3_dep
endif
osx_dep = dependency(
'appleframeworks',
modules: ['Carbon', 'Cocoa', 'GameController'],
Expand Down Expand Up @@ -169,6 +178,10 @@ if host_machine.system() == 'windows'
)
endif

# workaround issue (#14939) in Meson 1.8.4 - 1.9.0, where
# default_options:['cpp_std=c++17'] doesn't work under certain circumstances
override_opts = ['cpp_std=c++17']

imgui = library(
'imgui',
sources,
Expand All @@ -177,6 +190,7 @@ imgui = library(
dependencies: dependencies,
include_directories: include_dirs,
install: true,
override_options: override_opts,
)

if host_machine.system() == 'windows'
Expand Down
12 changes: 11 additions & 1 deletion subprojects/packagefiles/imgui-docking/meson_options.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,12 @@ option(
value: 'auto',
)
option(
'sdl_renderer',
'sdl2_renderer',
type: 'feature',
value: 'auto',
)
option(
'sdl3_renderer',
type: 'feature',
value: 'auto',
)
Expand All @@ -56,6 +61,11 @@ option(
type: 'feature',
value: 'auto',
)
option(
'sdl3',
type: 'feature',
value: 'auto',
)
option(
'osx',
type: 'feature',
Expand Down
Loading