mirror of
https://git.proxmox.com/git/fwupd
synced 2025-07-27 10:47:02 +00:00
Do not leak global cargs out of libfwupd
This gives us warnings if a specific binary redefines the domain.
This commit is contained in:
parent
386f2c1d39
commit
7115d6c6a6
@ -1,7 +1,3 @@
|
|||||||
cargs = [
|
|
||||||
'-DG_LOG_DOMAIN="Fwupd"',
|
|
||||||
]
|
|
||||||
|
|
||||||
fwupd_version_h = configure_file(
|
fwupd_version_h = configure_file(
|
||||||
input : 'fwupd-version.h.in',
|
input : 'fwupd-version.h.in',
|
||||||
output : 'fwupd-version.h',
|
output : 'fwupd-version.h',
|
||||||
@ -58,7 +54,7 @@ fwupd = shared_library(
|
|||||||
version : libfwupd_lt_version,
|
version : libfwupd_lt_version,
|
||||||
dependencies : libfwupd_deps,
|
dependencies : libfwupd_deps,
|
||||||
c_args : [
|
c_args : [
|
||||||
cargs,
|
'-DG_LOG_DOMAIN="Fwupd"',
|
||||||
'-DLOCALSTATEDIR="' + localstatedir + '"',
|
'-DLOCALSTATEDIR="' + localstatedir + '"',
|
||||||
],
|
],
|
||||||
include_directories : root_incdir,
|
include_directories : root_incdir,
|
||||||
@ -183,7 +179,7 @@ if get_option('tests')
|
|||||||
],
|
],
|
||||||
link_with : fwupd,
|
link_with : fwupd,
|
||||||
c_args : [
|
c_args : [
|
||||||
cargs,
|
'-DG_LOG_DOMAIN="Fwupd"',
|
||||||
'-DLOCALSTATEDIR="' + localstatedir + '"',
|
'-DLOCALSTATEDIR="' + localstatedir + '"',
|
||||||
'-DTESTDATADIR="' + testdatadir + '"',
|
'-DTESTDATADIR="' + testdatadir + '"',
|
||||||
'-DFU_SELF_TEST_REMOTES_DIR="' + testdatadir + '"',
|
'-DFU_SELF_TEST_REMOTES_DIR="' + testdatadir + '"',
|
||||||
|
@ -360,7 +360,6 @@ if get_option('tests')
|
|||||||
fwupd,
|
fwupd,
|
||||||
fwupdplugin,
|
fwupdplugin,
|
||||||
],
|
],
|
||||||
c_args : cargs
|
|
||||||
)
|
)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user