'vc4_uniforms.c',
)
+vc4_c_args = []
+
libvc4_neon = []
-if with_asm_arch == 'arm'
+if host_machine.cpu_family() == 'arm'
libvc4_neon = static_library(
'vc4_neon',
'vc4_tiling_lt_neon.c',
],
c_args : '-mfpu=neon',
)
+ vc4_c_args += '-DUSE_ARM_ASM'
endif
-simpenrose_c_args = []
dep_simpenrose = dependency('simpenrose', required : false)
if dep_simpenrose.found()
- simpenrose_c_args = '-DUSE_VC4_SIMULATOR'
+ vc4_c_args += '-DUSE_VC4_SIMULATOR'
endif
libvc4 = static_library(
inc_gallium_drivers, inc_drm_uapi,
],
link_with: libvc4_neon,
- c_args : [c_vis_args, simpenrose_c_args],
+ c_args : [c_vis_args, vc4_c_args],
cpp_args : [cpp_vis_args],
dependencies : [dep_simpenrose, dep_libdrm, dep_valgrind, idep_nir_headers],
build_by_default : false,