From de33bf3064e08a6d12f878f7571678bcd0a76b28 Mon Sep 17 00:00:00 2001 From: Andrea Zoppi Date: Fri, 5 Apr 2024 18:51:20 +0200 Subject: [PATCH] Added common C args to all targets --- apps/meson.build | 2 ++ contrib/meson.build | 1 + tests/meson.build | 5 ++++- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/apps/meson.build b/apps/meson.build index 1ebe1f3..e73590c 100644 --- a/apps/meson.build +++ b/apps/meson.build @@ -10,6 +10,7 @@ if not opt_apps.disabled() aymo_tda8425_process_exe = executable( app_name, apps_sources + files('@0@.c'.format(app_name)), + c_args: aymo_c_args, include_directories: [apps_includes, aymo_includes], link_with: [aymo_static_lib, aymo_libc_lib], install: false, @@ -19,6 +20,7 @@ if not opt_apps.disabled() aymo_ymf262_play_exe = executable( app_name, apps_sources + files('@0@.c'.format(app_name)), + c_args: aymo_c_args, include_directories: [apps_includes, aymo_includes], link_with: [aymo_static_lib, aymo_libc_lib], install: false, diff --git a/contrib/meson.build b/contrib/meson.build index c11bdaa..f5b53bf 100644 --- a/contrib/meson.build +++ b/contrib/meson.build @@ -15,6 +15,7 @@ aymo_contrib_sources = files( aymo_contrib_lib = static_library( 'aymo-contrib', aymo_contrib_sources, + c_args: aymo_c_args, include_directories: aymo_contrib_includes, dependencies: libm, install: false, diff --git a/tests/meson.build b/tests/meson.build index 895b007..bc1604e 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -63,6 +63,7 @@ foreach test_name : test_names test_name, test_c, test_common_sources, + c_args: aymo_c_args, include_directories: test_includes, dependencies: [aymo_static_dep, aymo_libc_dep], install: false, @@ -81,6 +82,7 @@ if host_cpu_family in ['x86', 'x86_64'] test_name, test_c, test_common_sources, + c_args: aymo_c_args, include_directories: test_includes, dependencies: [aymo_static_dep, aymo_libc_dep], install: false, @@ -100,6 +102,7 @@ if host_cpu_family in ['arm', 'aarch64'] test_name, test_c, test_common_sources, + c_args: aymo_c_args, include_directories: test_includes, dependencies: [aymo_static_dep, aymo_libc_dep], install: false, @@ -123,7 +126,7 @@ foreach intr_name : ['none', 'x86_sse41', 'x86_avx', 'x86_avx2', 'arm_neon'] test_name, test_c, test_common_sources, - c_args: intr_args, + c_args: aymo_c_args + intr_args, include_directories: test_includes, dependencies: [aymo_static_dep, aymo_libc_dep], install: false,