aboutsummaryrefslogtreecommitdiffstats
path: root/lang/python/helpers.h
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2016-08-02 16:45:10 +0000
committerJustus Winter <[email protected]>2016-08-02 16:45:10 +0000
commit4c8265d32ddff5960a464b8d4e8d7d2258495b2e (patch)
tree6dbac46beb0c7844c19cac4b7568709ecc4600fc /lang/python/helpers.h
parentpython: Fix build system integration. (diff)
downloadgpgme-4c8265d32ddff5960a464b8d4e8d7d2258495b2e.tar.gz
gpgme-4c8265d32ddff5960a464b8d4e8d7d2258495b2e.zip
python: Add a flag identifying in-tree builds.
* lang/python/helpers.c (pyme_in_tree_build): New variable. * lang/python/helpers.h (pyme_in_tree_build): New declaration. * lang/python/pyme/version.py.in (in_tree_build): New variable. * lang/python/setup.py.in: Rework macro handling, set 'IN_TREE_BUILD' as appropriate. Signed-off-by: Justus Winter <[email protected]>
Diffstat (limited to 'lang/python/helpers.h')
-rw-r--r--lang/python/helpers.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lang/python/helpers.h b/lang/python/helpers.h
index 16a9b9fd..9200f937 100644
--- a/lang/python/helpers.h
+++ b/lang/python/helpers.h
@@ -26,6 +26,9 @@
#define write(fd, str, sz) {DWORD written; WriteFile((HANDLE) fd, str, sz, &written, 0);}
#endif
+/* Flag specifying whether this is an in-tree build. */
+extern int pyme_in_tree_build;
+
PyObject *pyme_raise_callback_exception(PyObject *self);
PyObject *pyme_set_passphrase_cb(PyObject *self, PyObject *cb);