mirror of
https://github.com/eclipse/upm.git
synced 2025-07-01 17:31:13 +03:00
ANDROID: Treat utilities as its own library
Since src/utilities now builds a C/C++ library, other targets which were using symbols from utilities now need to include the correct target dependency. This is mainly for upm_delay* functions. Added utilities-c target to all sensor library CMakeLists.txt which require it. Moved macro for __FILENAME__ from upm_utilities.h to upm_fti.h since ONLY the FTI headers used this. Signed-off-by: Noel Eck <noel.eck@intel.com>
This commit is contained in:
@ -34,7 +34,6 @@ extern "C" {
|
||||
|
||||
#include <upm_types.h>
|
||||
#include <upm_math.h>
|
||||
#include <upm_utilities.h>
|
||||
|
||||
#define upm_perror(...) perror(args, __VA_ARGS__)
|
||||
|
||||
|
@ -32,6 +32,9 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* Get filename w/o path */
|
||||
#define __FILENAME__ (strrchr(__FILE__, '/') ? strrchr(__FILE__, '/') + 1 : __FILE__)
|
||||
|
||||
/**
|
||||
* The UPM Function Table Interface (FTI)
|
||||
*/
|
||||
|
Reference in New Issue
Block a user