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:
Noel Eck
2017-04-06 16:18:53 -07:00
parent 0bd68e4e2b
commit 21ecbd90eb
25 changed files with 34 additions and 17 deletions

View File

@ -31,8 +31,8 @@
#endif
#include <time.h>
#include <errno.h>
#include <upm_platform.h>
#include <upm_utilities.h>
#include "upm_platform.h"
#include "upm_utilities.h"
// https://airnow.gov/index.cfm?action=aqibasics.aqi
static struct aqi {

View File

@ -62,10 +62,6 @@ typedef uint32_t upm_clock_t;
#endif /* UPM_PLATFORM_ZEPHYR */
/* Get filename w/o path */
#define __FILENAME__ (strrchr(__FILE__, '/') ? strrchr(__FILE__, '/') + 1 : __FILE__)
/**
* Delay for a number of seconds
*