summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRasmus Thomsen <oss@cogitri.dev>2020-10-01 17:56:12 +0200
committerTimo Teräs <timo.teras@iki.fi>2020-10-09 16:09:19 +0300
commit1b168696aab7362b45f81892dd596219d9b86fc1 (patch)
tree4b843c59b8141b2eab9ff2852b368184bd88323e /src
parent1bbdc8eb3740ab2125ec4eeca0d1c0b090e4939c (diff)
downloadapk-tools-1b168696aab7362b45f81892dd596219d9b86fc1.tar.gz
apk-tools-1b168696aab7362b45f81892dd596219d9b86fc1.tar.bz2
apk-tools-1b168696aab7362b45f81892dd596219d9b86fc1.tar.xz
apk-tools-1b168696aab7362b45f81892dd596219d9b86fc1.zip
build: use tabs for meson files
Diffstat (limited to 'src')
-rw-r--r--src/meson.build248
1 files changed, 124 insertions, 124 deletions
diff --git a/src/meson.build b/src/meson.build
index e104a05..a5a0f73 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -1,165 +1,165 @@
libapk_src = [
- 'atom.c',
- 'blob.c',
- 'commit.c',
- 'common.c',
- 'database.c',
- 'hash.c',
- 'io.c',
- 'io_archive.c',
- 'io_url.c',
- 'io_gunzip.c',
- 'package.c',
- 'print.c',
- 'solver.c',
- 'version.c',
+ 'atom.c',
+ 'blob.c',
+ 'commit.c',
+ 'common.c',
+ 'database.c',
+ 'hash.c',
+ 'io.c',
+ 'io_archive.c',
+ 'io_url.c',
+ 'io_gunzip.c',
+ 'package.c',
+ 'print.c',
+ 'solver.c',
+ 'version.c',
]
libapk_headers = [
- 'apk_applet.h',
- 'apk_atom.h',
- 'apk_archive.h',
- 'apk_blob.h',
- 'apk_database.h',
- 'apk_defines.h',
- 'apk_hash.h',
- 'apk_io.h',
- 'apk_openssl.h',
- 'apk_package.h',
- 'apk_print.h',
- 'apk_provider_data.h',
- 'apk_solver_data.h',
- 'apk_solver.h',
- 'apk_version.h',
+ 'apk_applet.h',
+ 'apk_atom.h',
+ 'apk_archive.h',
+ 'apk_blob.h',
+ 'apk_database.h',
+ 'apk_defines.h',
+ 'apk_hash.h',
+ 'apk_io.h',
+ 'apk_openssl.h',
+ 'apk_package.h',
+ 'apk_print.h',
+ 'apk_provider_data.h',
+ 'apk_solver_data.h',
+ 'apk_solver.h',
+ 'apk_version.h',
]
apk_src = [
- 'apk.c',
- 'app_add.c',
- 'app_audit.c',
- 'app_cache.c',
- 'app_del.c',
- 'app_dot.c',
- 'app_fetch.c',
- 'app_fix.c',
- 'app_index.c',
- 'app_info.c',
- 'app_list.c',
- 'app_manifest.c',
- 'app_policy.c',
- 'app_update.c',
- 'app_upgrade.c',
- 'app_search.c',
- 'app_stats.c',
- 'app_verify.c',
- 'app_version.c',
- 'help.c',
+ 'apk.c',
+ 'app_add.c',
+ 'app_audit.c',
+ 'app_cache.c',
+ 'app_del.c',
+ 'app_dot.c',
+ 'app_fetch.c',
+ 'app_fix.c',
+ 'app_index.c',
+ 'app_info.c',
+ 'app_list.c',
+ 'app_manifest.c',
+ 'app_policy.c',
+ 'app_update.c',
+ 'app_upgrade.c',
+ 'app_search.c',
+ 'app_stats.c',
+ 'app_verify.c',
+ 'app_version.c',
+ 'help.c',
]
if lua_bin.found()
- genhelp_script = find_program('genhelp.lua')
+ genhelp_script = find_program('genhelp.lua')
- generated_help = custom_target(
- 'help.h',
- capture: true,
- output: 'help.h',
- input: man_files,
- command: [genhelp_script, '@INPUT@'],
- )
+ generated_help = custom_target(
+ 'help.h',
+ capture: true,
+ output: 'help.h',
+ input: man_files,
+ command: [genhelp_script, '@INPUT@'],
+ )
else
- generated_help = custom_target(
- 'help.h',
- capture: true,
- output: 'help.h',
- command: ['echo', '#define NO_HELP'],
- )
+ generated_help = custom_target(
+ 'help.h',
+ capture: true,
+ output: 'help.h',
+ command: ['echo', '#define NO_HELP'],
+ )
endif
apk_src += [ generated_help ]
apk_cargs = [
- '-DAPK_VERSION="' + meson.project_version() + '"',
- '-D_ATFILE_SOURCE',
+ '-DAPK_VERSION="' + meson.project_version() + '"',
+ '-D_ATFILE_SOURCE',
]
libapk_shared = shared_library(
- 'apk',
- libapk_src,
- version: meson.project_version(),
- install: not subproject,
- dependencies: [
- libfetch_dep,
- shared_deps,
- ],
- c_args: apk_cargs,
+ 'apk',
+ libapk_src,
+ version: meson.project_version(),
+ install: not subproject,
+ dependencies: [
+ libfetch_dep,
+ shared_deps,
+ ],
+ c_args: apk_cargs,
)
libapk_static = static_library(
- 'apk',
- libapk_src,
- install: not subproject,
- dependencies: [
- libfetch_dep,
- static_deps,
- ],
- c_args: [apk_cargs, '-DOPENSSL_NO_ENGINE'],
+ 'apk',
+ libapk_src,
+ install: not subproject,
+ dependencies: [
+ libfetch_dep,
+ static_deps,
+ ],
+ c_args: [apk_cargs, '-DOPENSSL_NO_ENGINE'],
)
libapk_dep = declare_dependency(
- link_with: libapk_shared,
+ link_with: libapk_shared,
)
if not subproject
- pkgc.generate(
- libapk_shared,
- name: 'apk',
- version: meson.project_version(),
- )
+ pkgc.generate(
+ libapk_shared,
+ name: 'apk',
+ version: meson.project_version(),
+ )
- install_headers(
- libapk_headers,
- subdir: 'apk',
- )
+ install_headers(
+ libapk_headers,
+ subdir: 'apk',
+ )
endif
if(lua_dep.found())
- luaapk_src = [
- 'lua-apk.c',
- ]
+ luaapk_src = [
+ 'lua-apk.c',
+ ]
- libluaapk = library(
- 'luaapk',
- luaapk_src,
- dependencies: [lua_dep, libapk_dep],
- install: true,
- install_dir: lua_dep.get_pkgconfig_variable('libdir'),
- c_args: apk_cargs,
- )
+ libluaapk = library(
+ 'luaapk',
+ luaapk_src,
+ dependencies: [lua_dep, libapk_dep],
+ install: true,
+ install_dir: lua_dep.get_pkgconfig_variable('libdir'),
+ c_args: apk_cargs,
+ )
endif
apk_exe = executable(
- 'apk',
- apk_src,
- install: not subproject,
- dependencies: [
- libapk_dep,
- shared_deps,
- libfetch_dep.partial_dependency(includes: true),
- ],
- c_args: apk_cargs,
+ 'apk',
+ apk_src,
+ install: not subproject,
+ dependencies: [
+ libapk_dep,
+ shared_deps,
+ libfetch_dep.partial_dependency(includes: true),
+ ],
+ c_args: apk_cargs,
)
if get_option('static_apk')
- apk_static_exe = executable(
- 'apk.static',
- apk_src,
- install: not subproject,
- dependencies: [
- static_deps,
- libfetch_dep.partial_dependency(includes: true),
- ],
- link_with: libapk_static,
- c_args: [apk_cargs, '-DOPENSSL_NO_ENGINE'],
- link_args: '-static',
- )
+ apk_static_exe = executable(
+ 'apk.static',
+ apk_src,
+ install: not subproject,
+ dependencies: [
+ static_deps,
+ libfetch_dep.partial_dependency(includes: true),
+ ],
+ link_with: libapk_static,
+ c_args: [apk_cargs, '-DOPENSSL_NO_ENGINE'],
+ link_args: '-static',
+ )
endif