diff options
author | David Wagner <david.wagner@intel.com> | 2015-01-21 15:56:54 +0100 |
---|---|---|
committer | David Wagner <david.wagner@intel.com> | 2015-01-28 20:02:46 +0100 |
commit | 171814cc5a36305066b17ec1f55f15a01adfdbf8 (patch) | |
tree | 1fd3067c6146ae37b5f507c2ac96a7bd627c4029 /bindings/python/Android.mk | |
parent | f01cb8127ce34f758a043b4ef1c12695035bc632 (diff) | |
download | external_parameter-framework-171814cc5a36305066b17ec1f55f15a01adfdbf8.zip external_parameter-framework-171814cc5a36305066b17ec1f55f15a01adfdbf8.tar.gz external_parameter-framework-171814cc5a36305066b17ec1f55f15a01adfdbf8.tar.bz2 |
bindings: bind ILogger and setLogger()
This will allow users of the parameter-framework bindings to set a logger;
without it, the parameter-framework wasn't able to log anything.
Some SWIG features and workarounds must be activated in order to:
- Support nested classes;
- Derive bound classes and allow C++ to call back the user-created objects;
- Properly handle exceptions that may be raised upon errors happening on the
user side.
Change-Id: I955152a4658eff3307ad595f175f2624a3acfa8c
Signed-off-by: David Wagner <david.wagner@intel.com>
Diffstat (limited to 'bindings/python/Android.mk')
-rw-r--r-- | bindings/python/Android.mk | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bindings/python/Android.mk b/bindings/python/Android.mk index 2cfd13d..296d4bc 100644 --- a/bindings/python/Android.mk +++ b/bindings/python/Android.mk @@ -48,7 +48,11 @@ LOCAL_C_INCLUDES := \ # The 'unused-but-set-variable' warning must be disabled because SWIG generates # files that do not respect that constraint. -LOCAL_CFLAGS := -Wno-unused-but-set-variable -fexceptions +# '-DSWIG_PYTHON_SILENT_MEMLEAK' is needed because the "memleak" warning +# pollutes the standard output. At the time of writing, the only warning is +# spurious anyway, as it relates to "ILogger *" which is an abstract +# class/interface class and as such cannot be destroyed. +LOCAL_CFLAGS := -Wno-unused-but-set-variable -fexceptions -DSWIG_PYTHON_SILENT_MEMLEAK # Undefined symbols will be resolved at runtime LOCAL_ALLOW_UNDEFINED_SYMBOLS := true |