Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Commit

Permalink
build: fix missing opengl dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
rr- committed Sep 17, 2024
1 parent 62783f5 commit 8ad35cc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,16 @@ dep_swscale = dependency('libswscale', static: staticdeps)
dep_swresample = dependency('libswresample', static: staticdeps)

dep_zlib = null_dep

if not staticdeps
dep_zlib = dependency('zlib', static: staticdeps)
endif

if host_machine.system() == 'windows'
dep_opengl = c_compiler.find_library('opengl32')
else
dep_opengl = dependency('GL')
endif

sources = [
'src/benchmark.c',
'src/config/config_file.c',
Expand Down Expand Up @@ -96,6 +101,7 @@ dependencies = [
dep_swresample,
dep_swscale,
dep_zlib,
dep_opengl,
]

if dep_backtrace.found() and host_machine.system() == 'linux'
Expand Down

0 comments on commit 8ad35cc

Please sign in to comment.