lib/upnp: use include path without upnp/ prefix and honor pkg-config CFLAGS

If libupnp is installed in a non-standard location we must rely on the
include path provided by $(pkg-config --cflags libupnp). Relative to the
path given from that command no prefix must be used to find the respective
files.
This commit is contained in:
Uwe Kleine-König 2017-10-13 18:14:06 +02:00 committed by Max Kellermann
parent 75d068b7cd
commit 5a11e03725
12 changed files with 16 additions and 13 deletions

View File

@ -754,6 +754,7 @@ libneighbor_a_SOURCES = \
src/neighbor/NeighborPlugin.hxx
libneighbor_a_CPPFLAGS = $(AM_CPPFLAGS) \
$(UPNP_CFLAGS) \
$(SMBCLIENT_CFLAGS)
if ENABLE_SMBCLIENT
@ -803,6 +804,8 @@ libdb_plugins_a_SOURCES = \
src/db/plugins/simple/PrefixedLightSong.hxx \
src/db/plugins/simple/SimpleDatabasePlugin.cxx \
src/db/plugins/simple/SimpleDatabasePlugin.hxx
libdb_plugins_a_CPPFLAGS = $(AM_CPPFLAGS) \
$(UPNP_CFLAGS)
if ENABLE_LIBMPDCLIENT
libdb_plugins_a_SOURCES += \

View File

@ -22,7 +22,7 @@
#include "Compiler.h"
#include <upnp/upnptools.h>
#include <upnptools.h>
static inline constexpr unsigned
CountNameValuePairs()

View File

@ -20,7 +20,7 @@
#ifndef MPD_UPNP_CALLBACK_HXX
#define MPD_UPNP_CALLBACK_HXX
#include <upnp/upnp.h>
#include <upnp.h>
/**
* A class that is supposed to be used for libupnp asynchronous

View File

@ -24,7 +24,7 @@
#include "thread/Mutex.hxx"
#include "util/RuntimeError.hxx"
#include <upnp/upnptools.h>
#include <upnptools.h>
#include <assert.h>

View File

@ -22,7 +22,7 @@
#include "check.h"
#include <upnp/upnp.h>
#include <upnp.h>
void
UpnpClientGlobalInit(UpnpClient_Handle &handle);

View File

@ -20,7 +20,7 @@
#ifndef MPD_UPNP_COMPAT_HXX
#define MPD_UPNP_COMPAT_HXX
#include <upnp/upnp.h>
#include <upnp.h>
#if UPNP_VERSION < 10800
/* emulate the libupnp 1.8 API with older versions */

View File

@ -22,7 +22,7 @@
#include "Compiler.h"
#include <upnp/upnp.h>
#include <upnp.h>
#include <string>
#include <list>

View File

@ -24,7 +24,7 @@
#include "util/ScopeExit.hxx"
#include "util/RuntimeError.hxx"
#include <upnp/upnptools.h>
#include <upnptools.h>
#include <stdlib.h>
#include <string.h>

View File

@ -27,7 +27,7 @@
#include "thread/Mutex.hxx"
#include "Compiler.h"
#include <upnp/upnp.h>
#include <upnp.h>
#include <list>
#include <vector>

View File

@ -22,9 +22,9 @@
#include "thread/Mutex.hxx"
#include "util/RuntimeError.hxx"
#include <upnp/upnp.h>
#include <upnp/upnptools.h>
#include <upnp/ixml.h>
#include <upnp.h>
#include <upnptools.h>
#include <ixml.h>
#include <assert.h>

View File

@ -20,7 +20,7 @@
#ifndef MPD_UPNP_UNIQUE_XML_HXX
#define MPD_UPNP_UNIQUE_XML_HXX
#include <upnp/ixml.h>
#include <ixml.h>
#include <memory>

View File

@ -17,7 +17,7 @@
#ifndef _IXMLWRAP_H_INCLUDED_
#define _IXMLWRAP_H_INCLUDED_
#include <upnp/ixml.h>
#include <ixml.h>
#include <string>