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