build: follow naming conventing about binary postfix used by Xash3D (#671)

ci: add builds for apple silicon
This commit is contained in:
jeefo 2025-02-15 15:55:16 +03:00 committed by GitHub
commit abbc5bfc5a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 57 additions and 8 deletions

View file

@ -303,9 +303,18 @@ if os == 'windows' and git.found()
)
endif
target_name = meson.project_name()
# xash specific postfix for binaries
if cpu == 'aarch64'
target_name += '_arm64'
elif opt_64bit
target_name += '_amd64'
endif
# instruct meson we're want our little shared lib bot
shared_library(
meson.project_name(),
target_name,
sources,
include_directories: includes,
gnu_symbol_visibility: 'hidden',