Skip to content

Commit ae83e08

Browse files
committed
Build mangohud_opengl only in unixy environments
Signed-off-by: Alfred Wingate <parona@protonmail.com>
1 parent 49a6501 commit ae83e08

1 file changed

Lines changed: 46 additions & 47 deletions

File tree

src/meson.build

Lines changed: 46 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -230,56 +230,55 @@ mangohud_shared_lib = shared_library(
230230
install: true
231231
)
232232

233-
mangohud_opengl_syms = configuration_data()
234-
if get_option('with_x11').enabled()
235-
mangohud_opengl_syms.set('x11_symbols', 'glX*; mangohud_find_glx_ptr;')
236-
endif
237-
if get_option('with_wayland').enabled()
238-
mangohud_opengl_syms.set('wayland_symbols', 'egl*; mangohud_find_egl_ptr;')
239-
endif
233+
if is_unixy
234+
mangohud_opengl_syms = configuration_data()
235+
if get_option('with_x11').enabled()
236+
mangohud_opengl_syms.set('x11_symbols', 'glX*; mangohud_find_glx_ptr;')
237+
endif
238+
if get_option('with_wayland').enabled()
239+
mangohud_opengl_syms.set('wayland_symbols', 'egl*; mangohud_find_egl_ptr;')
240+
endif
240241

241-
mangohud_opengl_version_file = configure_file(
242-
input: 'mangohud_opengl.version.in',
243-
output: 'mangohud_opengl.version',
244-
configuration: mangohud_opengl_syms,
245-
)
242+
mangohud_opengl_version_file = configure_file(
243+
input: 'mangohud_opengl.version.in',
244+
output: 'mangohud_opengl.version',
245+
configuration: mangohud_opengl_syms,
246+
)
246247

247-
mangohud_opengl_shared_lib = shared_library(
248-
'MangoHud_opengl',
249-
mangohud_version,
250-
opengl_files,
251-
vklayer_files,
252-
util_files,
253-
c_args : [
254-
pre_args,
255-
vulkan_wsi_args
256-
],
257-
cpp_args : [
258-
pre_args,
259-
vulkan_wsi_args
260-
],
261-
dependencies : [
262-
mangohud_version_dep,
263-
vulkan_wsi_deps,
264-
dearimgui_dep,
265-
spdlog_dep,
266-
dbus_dep,
267-
dep_dl,
268-
dep_rt,
269-
dep_pthread,
270-
dep_vulkan,
271-
windows_deps,
272-
json_dep,
273-
implot_dep],
274-
include_directories : [inc_common],
275-
link_args : [link_args, '-Wl,--version-script,@0@'.format(join_paths(meson.current_build_dir(), 'mangohud_opengl.version'))],
276-
link_with: mangohud_static_lib,
277-
link_depends: mangohud_opengl_version_file,
278-
install_dir : libdir_mangohud,
279-
install: true
280-
)
248+
mangohud_opengl_shared_lib = shared_library(
249+
'MangoHud_opengl',
250+
mangohud_version,
251+
opengl_files,
252+
vklayer_files,
253+
util_files,
254+
c_args : [
255+
pre_args,
256+
vulkan_wsi_args
257+
],
258+
cpp_args : [
259+
pre_args,
260+
vulkan_wsi_args
261+
],
262+
dependencies : [
263+
mangohud_version_dep,
264+
vulkan_wsi_deps,
265+
dearimgui_dep,
266+
spdlog_dep,
267+
dbus_dep,
268+
dep_dl,
269+
dep_rt,
270+
dep_pthread,
271+
dep_vulkan,
272+
json_dep,
273+
implot_dep],
274+
include_directories : [inc_common],
275+
link_args : [link_args, '-Wl,--version-script,@0@'.format(join_paths(meson.current_build_dir(), 'mangohud_opengl.version'))],
276+
link_with: mangohud_static_lib,
277+
link_depends: mangohud_opengl_version_file,
278+
install_dir : libdir_mangohud,
279+
install: true
280+
)
281281

282-
if is_unixy
283282
mangohud_dlsym = shared_library(
284283
'MangoHud_dlsym',
285284
files(

0 commit comments

Comments
 (0)