mirror of
https://git.proxmox.com/git/fwupd
synced 2025-07-27 12:54:58 +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(
|
||||
input : 'fwupd-version.h.in',
|
||||
output : 'fwupd-version.h',
|
||||
@ -58,7 +54,7 @@ fwupd = shared_library(
|
||||
version : libfwupd_lt_version,
|
||||
dependencies : libfwupd_deps,
|
||||
c_args : [
|
||||
cargs,
|
||||
'-DG_LOG_DOMAIN="Fwupd"',
|
||||
'-DLOCALSTATEDIR="' + localstatedir + '"',
|
||||
],
|
||||
include_directories : root_incdir,
|
||||
@ -183,7 +179,7 @@ if get_option('tests')
|
||||
],
|
||||
link_with : fwupd,
|
||||
c_args : [
|
||||
cargs,
|
||||
'-DG_LOG_DOMAIN="Fwupd"',
|
||||
'-DLOCALSTATEDIR="' + localstatedir + '"',
|
||||
'-DTESTDATADIR="' + testdatadir + '"',
|
||||
'-DFU_SELF_TEST_REMOTES_DIR="' + testdatadir + '"',
|
||||
|
@ -360,7 +360,6 @@ if get_option('tests')
|
||||
fwupd,
|
||||
fwupdplugin,
|
||||
],
|
||||
c_args : cargs
|
||||
)
|
||||
endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user