build: adopt meson build for v3 branch
parent
f86829dc92
commit
e9caeff22b
|
@ -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')
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue