plugins/loader: compile loader only once

There is very little in loader that is different between builds save
for a tiny user/system mode difference in the plugin_info structure.
Create two new files, user and system to hold mode specific helpers
and move loader into common_ss.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20250304222439.2035603-26-alex.bennee@linaro.org>
This commit is contained in:
Alex Bennée 2025-03-04 22:24:32 +00:00
parent 5dd09b8157
commit 8c15f6e435
5 changed files with 57 additions and 12 deletions

View file

@ -57,8 +57,13 @@ if host_os == 'windows'
command: dlltool_cmd
)
endif
user_ss.add(files('user.c'))
system_ss.add(files('system.c'))
common_ss.add(files('loader.c'))
specific_ss.add(files(
'loader.c',
'core.c',
'api.c',
))