Add a possibility to use a minimal version of libphonenumber's metadata
to reduce firmware size in debug.
Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
Create individual library for each of third party project to be able to
determine memory usage of each of project's components.
Disable third party optimization for linux platform.
To minimize size footprint and to be able to fit in the RT1051 target,
add optimization options in debug configuration for third party modules
which are directly added to the sources.
This behaviour is controlled by the THIRD_PARTY_DEBUG_OPTIMIZE boolean
option.
Add extra warning supressing option for the protobuf sources as its
build was starting to failing on newer compiler.
Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
Add thread safety based on the RTOS wrapper and FreeRTOS mutex. The
mutex protects regexp cache only so additional safety on regexp level is
needed.
Add method to get currently running thread - needed by thread checker
class in libphonenumber.
Add libphonumber support:
- no thread safety support (disabled mutexes, etc.)
- use re2 regexes instead of ICU's
- don't normalize utf8 decimals - use ASCII decimals only