build,meson: Improve libqcdm build
`libqcdm`'s meson build files have been improved slightly by removing unnecessary variables shortening their contents.
This commit is contained in:

committed by
Aleksander Morgado

parent
fe53de8bdd
commit
93a1d7a60d
@@ -1,8 +1,6 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
# Copyright (C) 2021 Iñigo Martinez <inigomartinez@gmail.com>
|
||||
|
||||
libqcdm_inc = include_directories('.')
|
||||
|
||||
sources = files(
|
||||
'com.c',
|
||||
'commands.c',
|
||||
@@ -16,11 +14,10 @@ libqcdm = static_library(
|
||||
'qcdm',
|
||||
sources: sources,
|
||||
include_directories: top_inc,
|
||||
dependencies: glib_deps,
|
||||
)
|
||||
|
||||
libqcdm_dep = declare_dependency(
|
||||
include_directories: libqcdm_inc,
|
||||
include_directories: '.',
|
||||
link_with: libqcdm,
|
||||
)
|
||||
|
||||
@@ -29,5 +26,4 @@ libqcdm_test = static_library(
|
||||
'qcdm-test',
|
||||
sources: 'utils.c',
|
||||
include_directories: top_inc,
|
||||
dependencies: glib_deps,
|
||||
)
|
||||
|
@@ -18,11 +18,6 @@ sources = files(
|
||||
|
||||
test_units += [['test-qcdm', sources, true]]
|
||||
|
||||
incs = [
|
||||
top_inc,
|
||||
libqcdm_inc,
|
||||
]
|
||||
|
||||
deps = [
|
||||
glib_deps,
|
||||
libqcdm_dep,
|
||||
@@ -32,7 +27,7 @@ foreach test_unit: test_units
|
||||
exe = executable(
|
||||
test_unit[0],
|
||||
test_unit[1],
|
||||
include_directories: incs,
|
||||
include_directories: top_inc,
|
||||
dependencies: deps,
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user