diff --git a/src/imagination/meson.build b/src/imagination/meson.build index a4fa8ae933d..5e7dcd95895 100644 --- a/src/imagination/meson.build +++ b/src/imagination/meson.build @@ -14,6 +14,7 @@ inc_imagination = include_directories([ if with_imagination_vk subdir('common') subdir('csbgen') + subdir('pco') subdir('rogue') subdir('vulkan') endif diff --git a/src/imagination/pco/meson.build b/src/imagination/pco/meson.build new file mode 100644 index 00000000000..6ca4f1a5e8f --- /dev/null +++ b/src/imagination/pco/meson.build @@ -0,0 +1,26 @@ +# Copyright © 2024 Imagination Technologies Ltd. +# SPDX-License-Identifier: MIT + +inc_powervr_compiler = include_directories([ + '.', +]) + +libpowervr_compiler_files = files( + 'pco.c', +) + +libpowervr_compiler = static_library( + 'powervr_compiler', + [libpowervr_compiler_files], + include_directories : [ + inc_imagination, + inc_powervr_compiler, + inc_include, + inc_compiler, + inc_src, + ], + c_args : [imagination_c_args, no_override_init_args], + dependencies : [idep_mesautil, idep_nir], + gnu_symbol_visibility : 'hidden', + install : false, +) diff --git a/src/imagination/pco/pco.c b/src/imagination/pco/pco.c new file mode 100644 index 00000000000..b420b228d4b --- /dev/null +++ b/src/imagination/pco/pco.c @@ -0,0 +1,11 @@ +/* + * Copyright © 2024 Imagination Technologies Ltd. + * + * SPDX-License-Identifier: MIT + */ + +/** + * \file pco.c + * + * \brief Main compiler interface. + */ diff --git a/src/imagination/vulkan/meson.build b/src/imagination/vulkan/meson.build index 63f23055781..6725b7eb5ca 100644 --- a/src/imagination/vulkan/meson.build +++ b/src/imagination/vulkan/meson.build @@ -108,6 +108,7 @@ libvulkan_powervr_mesa = shared_library( ], link_with : [ libpowervr_common, + libpowervr_compiler, libpowervr_pds, libpowervr_rogue, libvulkan_wsi,