Skip to content

Commit 49c837d

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

1 file changed

Lines changed: 39 additions & 37 deletions

File tree

src/meson.build

Lines changed: 39 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -239,44 +239,46 @@ mangohud_shared_lib = shared_library(
239239
install: true
240240
)
241241

242-
mangohud_opengl_versionscript = cpp.preprocess(
243-
'mangohud_opengl.version',
244-
compile_args: pre_args,
245-
)
242+
if is_unixy
243+
mangohud_opengl_versionscript = cpp.preprocess(
244+
'mangohud_opengl.version',
245+
compile_args: pre_args,
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-
implot_dep],
273-
include_directories : [inc_common],
274-
link_args : [link_args, '-Wl,--version-script,@0@'.format(mangohud_opengl_versionscript[0].full_path())],
275-
link_with: mangohud_static_lib,
276-
link_depends: mangohud_opengl_versionscript,
277-
install_dir : libdir_mangohud,
278-
install: true
279-
)
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+
windows_deps,
273+
implot_dep],
274+
include_directories : [inc_common],
275+
link_args : [link_args, '-Wl,--version-script,@0@'.format(mangohud_opengl_versionscript[0].full_path())],
276+
link_with: mangohud_static_lib,
277+
link_depends: mangohud_opengl_versionscript,
278+
install_dir : libdir_mangohud,
279+
install: true
280+
)
281+
endif
280282

281283
if get_option('mangoapp')
282284
if not get_option('with_x11').enabled()

0 commit comments

Comments
 (0)