Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
VideoLAN
dav1d
Commits
09b05ff2
Commit
09b05ff2
authored
Sep 27, 2018
by
Hugo Beauzée-Luyssen
Browse files
meson: Don't probe for pthread on windows
Always use the compatibility layer. Fix #28
parent
11e93ea5
Pipeline
#443
passed with stage
in 42 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
meson.build
View file @
09b05ff2
...
...
@@ -32,10 +32,11 @@ cdata = configuration_data()
cdata_asm
=
configuration_data
()
cc
=
meson
.
get_compiler
(
'c'
)
if
not
meson
.
is_cross_build
()
# On windows, we use a compatibility layer to emulate pthread
if
host_machine
.
system
()
!=
'windows'
thread_dependency
=
dependency
(
'threads'
)
else
thread_dependency
=
cc
.
find_library
(
'pthread'
,
required
:
false
)
thread_dependency
=
declare_dependency
(
sources
:
[
'src/win32/thread.c'
]
)
endif
dav1d_inc_dirs
=
include_directories
([
'include'
,
'include/dav1d'
])
...
...
@@ -264,10 +265,6 @@ else
nasm_objs
=
[]
endif
if
host_machine
.
system
()
==
'windows'
libdav1d_sources
+=
files
(
'src/win32/thread.c'
)
endif
# Build a helper library for each bitdepth
bitdepth_objs
=
[]
foreach
bitdepth
:
dav1d_bitdepths
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment