build: adopt meson build for v3 branch

cute-signatures
Timo Teräs 2020-10-02 12:16:30 +03:00
parent f86829dc92
commit e9caeff22b
3 changed files with 13 additions and 4 deletions

View File

@ -2,7 +2,7 @@ project(
'apk-tools',
['c'],
default_options : ['c_std=gnu99'],
version: '2.10.5',
version: '3.0.0_pre0',
meson_version: '>=0.51'
)
pkgc = import('pkgconfig')

View File

@ -2,4 +2,4 @@ option('docs', description: 'Build manpages with scdoc', type: 'feature', value:
option('help', description: 'Build help into apk binaries, needs lua and lua-zlib', type: 'feature', value: 'auto')
option('lua', description: 'Build luaapk (lua bindings)', type: 'feature', value: 'auto')
option('lua_version', description: 'Lua version to build against', type: 'string', value: '5.3')
option('static_apk', description: 'Also build apk.static', type: 'boolean', value: true)
option('static_apk', description: 'Also build apk.static', type: 'boolean', value: false)

View File

@ -1,4 +1,8 @@
libapk_so_version = '2.99.0'
libapk_src = [
'adb.c',
'adb_trust.c',
'apk_adb.c',
'atom.c',
'blob.c',
'commit.c',
@ -35,9 +39,13 @@ libapk_headers = [
apk_src = [
'apk.c',
'app_adbdump.c',
'app_adbsign.c',
'app_add.c',
'app_audit.c',
'app_cache.c',
'app_convdb.c',
'app_convndx.c',
'app_del.c',
'app_dot.c',
'app_fetch.c',
@ -46,6 +54,7 @@ apk_src = [
'app_info.c',
'app_list.c',
'app_manifest.c',
'app_mkndx.c',
'app_policy.c',
'app_update.c',
'app_upgrade.c',
@ -85,7 +94,7 @@ apk_cargs = [
libapk_shared = shared_library(
'apk',
libapk_src,
version: meson.project_version(),
version: libapk_so_version,
install: not subproject,
dependencies: [
libfetch_dep,
@ -113,7 +122,7 @@ if not subproject
pkgc.generate(
libapk_shared,
name: 'apk',
version: meson.project_version(),
version: libapk_so_version,
)
install_headers(