Skip to content
Snippets Groups Projects
Commit 2e1fa4ff authored by Vladimir Stoiakin's avatar Vladimir Stoiakin
Browse files

meson: add libarchive

Change-Id: Id45fe5976a1eb957e5b19777c724bac06d2dd92a
parent 5277f842
No related branches found
No related tags found
No related merge requests found
......@@ -29,6 +29,8 @@ depspeexdsp = dependency('speexdsp')
depyamlcpp = dependency('yaml-cpp', version: '>= 0.5.1', required: false)
if not depyamlcpp.found()
depyamlcpp = modcmake.subproject('yaml-cpp', cmake_options: [
'-DCMAKE_BUILD_TYPE=Release',
'-DCMAKE_POSITION_INDEPENDENT_CODE=ON',
'-DYAML_CPP_BUILD_TOOLS=OFF',
'-DYAML_CPP_BUILD_TESTS=OFF',
'-DYAML_CPP_BUILD_CONTRIB=OFF',
......@@ -36,6 +38,20 @@ if not depyamlcpp.found()
]).dependency('yaml-cpp')
endif
deplibarchive = dependency('libarchive', version: '>= 3.4.0', required: false)
if not deplibarchive.found()
deplibarchive = modcmake.subproject('libarchive', cmake_options: [
'-DCMAKE_BUILD_TYPE=Release',
'-DCMAKE_INSTALL_LIBDIR=lib',
'-DCMAKE_POSITION_INDEPENDENT_CODE=ON',
'-DENABLE_TEST=OFF',
'-DENABLE_TAR=OFF',
'-DENABLE_CPIO=OFF',
'-DENABLE_CAT=OFF',
'-DENABLE_LIBXML2=OFF'
]).dependency('archive_static')
endif
depjsoncpp = dependency('jsoncpp', version: '>= 1.6.5',
fallback: ['jsoncpp', 'jsoncpp_dep'], default_options: ['default_library=static'])
depzlib = dependency('zlib', fallback: ['zlib', 'zlib_dep'], default_options: ['default_library=static'])
......
......@@ -133,6 +133,7 @@ libjami_dependencies = [
depspeex,
depspeexdsp,
depyamlcpp,
deplibarchive,
depjsoncpp,
depzlib
]
......
[wrap-file]
directory = libarchive-3.4.3
source_url = https://github.com/libarchive/libarchive/releases/download/v3.4.3/libarchive-3.4.3.tar.gz
source_filename = libarchive-3.4.3.tar.gz
source_hash = ee1e749213c108cb60d53147f18c31a73d6717d7e3d2481c157e1b34c881ea39
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment