Merge pull request #11 from t-8ch/meson-install-tools

build: meson: small fixes and optimizations
This commit is contained in:
Antoine SOULIER
2022-10-04 21:28:54 -07:00
committed by GitHub
3 changed files with 14 additions and 9 deletions

View File

@@ -13,7 +13,7 @@
# limitations under the License.
project('lc3', 'c',
version: '0.1',
version: '1.0.1',
license: 'Apache-2.0',
meson_version: '>= 0.47.0',
default_options: ['b_lto=true'])

View File

@@ -40,7 +40,6 @@ install_headers('../include/lc3.h', '../include/lc3_private.h')
pkg_mod = import('pkgconfig')
pkg_mod.generate(libraries : lc3lib,
version : '1.0',
name : 'liblc3',
filebase : 'lc3',
description : 'LC3 codec library')

View File

@@ -14,12 +14,18 @@
inc = include_directories('../include')
executable('elc3', ['elc3.c', 'lc3bin.c', 'wave.c'],
link_with : lc3lib,
include_directories: inc,
dependencies: m_dep)
lc3toolslib = static_library('lc3toolslib',
['lc3bin.c', 'wave.c'],
link_with: lc3lib,
dependencies: m_dep,
)
executable('dlc3', ['dlc3.c', 'lc3bin.c', 'wave.c'],
link_with : lc3lib,
executable('elc3', ['elc3.c'],
link_with : lc3toolslib,
include_directories: inc,
dependencies: m_dep)
install: true)
executable('dlc3', ['dlc3.c'],
link_with : lc3toolslib,
include_directories: inc,
install: true)