Skip to content

Commit

Permalink
Added common C args to all targets
Browse files Browse the repository at this point in the history
  • Loading branch information
TexZK committed Apr 5, 2024
1 parent 3b7314f commit de33bf3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions apps/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down
1 change: 1 addition & 0 deletions contrib/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
5 changes: 4 additions & 1 deletion tests/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit de33bf3

Please sign in to comment.