Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dav1d
Manage
Activity
Members
Labels
Plan
Issues
25
Issue boards
Milestones
Wiki
Code
Merge requests
13
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
dav1d
Commits
afa5479f
Commit
afa5479f
authored
6 years ago
by
Marvin Scholz
Browse files
Options
Downloads
Patches
Plain Diff
Build: Add checkasm test
parent
190da6ae
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!81
Add 'checkasm' asm testing/benchmarking framework
Pipeline
#617
passed with stage
Stage:
in 1 minute and 19 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
meson.build
+14
-5
14 additions, 5 deletions
meson.build
tests/meson.build
+30
-0
30 additions, 0 deletions
tests/meson.build
with
44 additions
and
5 deletions
meson.build
+
14
−
5
View file @
afa5479f
...
...
@@ -173,9 +173,9 @@ cdata.set10('HAVE_ASM', is_asm_enabled)
# Generate config headers
#
if
cdata
.
has
(
'HAVE_GETOPT_H'
)
dav1d_inc_dirs
=
include_directories
([
'include'
,
'include/dav1d'
])
dav1d_inc_dirs
=
include_directories
([
'.'
,
'include'
,
'include/dav1d'
])
else
dav1d_inc_dirs
=
include_directories
([
'include'
,
'include/dav1d'
,
'include/compat'
])
dav1d_inc_dirs
=
include_directories
([
'.'
,
'include'
,
'include/dav1d'
,
'include/compat'
])
endif
config_h_target
=
configure_file
(
output
:
'config.h'
,
configuration
:
cdata
)
...
...
@@ -269,7 +269,7 @@ if is_asm_enabled
depfile
:
'@BASENAME@.obj.ndep'
,
arguments
:
[
'-f'
,
nasm_format
,
'-I'
,
'@
CURRENT_
SOURCE_DIR@/'
,
'-I'
,
'@SOURCE_DIR@/'
,
'-MQ'
,
'@OUTPUT@'
,
'-MF'
,
'@DEPFILE@'
,
'@EXTRA_ARGS@'
,
'@INPUT@'
,
...
...
@@ -312,14 +312,21 @@ if host_machine.system() == 'windows'
#entrypoints_objs += rc_source
endif
libdav1d
=
library
(
'dav1d'
,
libdav1d
_private
=
static_
library
(
'dav1d
_private
'
,
libdav1d_sources
,
nasm_objs
,
version
:
meson
.
project_version
(),
objects
:
[
bitdepth_objs
,
entrypoints_objs
],
include_directories
:
dav1d_inc_dirs
,
c_args
:
[
stackalign_flag
],
dependencies
:
thread_dependency
,
install
:
true
install
:
false
,
build_by_default
:
false
,
)
libdav1d
=
library
(
'dav1d'
,
version
:
'0.0.1'
,
link_whole
:
libdav1d_private
,
install
:
true
,
)
install_subdir
(
'include/dav1d/'
,
install_dir
:
'include'
)
...
...
@@ -349,6 +356,8 @@ dav1d = executable('dav1d',
install
:
true
,
)
subdir
(
'tests'
)
#
# pkg-config boilerplate
#
...
...
This diff is collapsed.
Click to expand it.
tests/meson.build
0 → 100644
+
30
−
0
View file @
afa5479f
if
is_asm_enabled
checkasm_sources
=
files
(
'checkasm/checkasm.c'
)
checkasm_tmpl_sources
=
files
(
'checkasm/mc.c'
)
checkasm_bitdepth_objs
=
[]
foreach
bitdepth
:
dav1d_bitdepths
checkasm_bitdepth_lib
=
static_library
(
'checkasm_bitdepth_@0@'
.
format
(
bitdepth
),
checkasm_tmpl_sources
,
include_directories
:
dav1d_inc_dirs
,
c_args
:
[
'-DBITDEPTH=@0@'
.
format
(
bitdepth
),
stackalign_flag
],
install
:
false
,
build_by_default
:
false
,
)
checkasm_bitdepth_objs
+=
checkasm_bitdepth_lib
.
extract_all_objects
()
endforeach
checkasm_nasm_objs
=
nasm_gen
.
process
(
files
(
'checkasm/x86/checkasm.asm'
))
checkasm
=
executable
(
'checkasm'
,
checkasm_sources
,
checkasm_nasm_objs
,
objects
:
[
checkasm_bitdepth_objs
],
include_directories
:
dav1d_inc_dirs
,
link_with
:
libdav1d_private
,
c_args
:
[
stackalign_flag
,
stackrealign_flag
],
build_by_default
:
false
,
)
test
(
'checkasm test'
,
checkasm
)
endif
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment