diff options
author | Henrik Gramner <gramner@twoorioles.com> | 2018-09-25 17:36:45 +0300 |
---|---|---|
committer | Henrik Gramner <gramner@twoorioles.com> | 2018-09-27 12:50:34 +0300 |
commit | d88abfec51e91832a64f36f90c7c61ce67a79333 (patch) | |
tree | 95a6159b92b6bef161a279aded6b9ff4b35a53ed /meson.build | |
parent | 14072e733465b034644dd08cfaffb3bf7ac0a310 (diff) |
x86: MC AVX2
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 32 |
1 files changed, 18 insertions, 14 deletions
diff --git a/meson.build b/meson.build index f45fa63..327ce3a 100644 --- a/meson.build +++ b/meson.build @@ -189,20 +189,6 @@ libdav1d_tmpl_sources = files( 'src/recon.c' ) -# Build a helper library for each bitdepth -bitdepth_objs = [] -foreach bitdepth : dav1d_bitdepths - bitdepth_lib = static_library( - 'dav1d_bitdepth_@0@'.format(bitdepth), - libdav1d_tmpl_sources, config_h_target, - include_directories: dav1d_inc_dirs, - c_args: ['-DBITDEPTH=@0@'.format(bitdepth)] + stackalign_flag, - install: false, - build_by_default: false, - ) - bitdepth_objs += bitdepth_lib.extract_all_objects() -endforeach - entrypoints_src = files( 'src/lib.c', 'src/thread_task.c' @@ -241,8 +227,12 @@ if is_asm_enabled libdav1d_sources += files( 'src/x86/cpu.c', ) + libdav1d_tmpl_sources += files( + 'src/x86/mc_init.c', + ) libdav1d_sources_asm = files( 'src/x86/cpuid.asm', + 'src/x86/mc.asm', ) nasm = find_program('nasm') @@ -281,6 +271,20 @@ 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 + bitdepth_lib = static_library( + 'dav1d_bitdepth_@0@'.format(bitdepth), + libdav1d_tmpl_sources, config_h_target, + include_directories: dav1d_inc_dirs, + c_args: ['-DBITDEPTH=@0@'.format(bitdepth)] + stackalign_flag, + install: false, + build_by_default: false, + ) + bitdepth_objs += bitdepth_lib.extract_all_objects() +endforeach + libdav1d = library('dav1d', libdav1d_sources, rev_target, nasm_objs, version: '0.0.1', |