diff options
author | Justus Winter <[email protected]> | 2016-08-02 16:45:10 +0000 |
---|---|---|
committer | Justus Winter <[email protected]> | 2016-08-02 16:45:10 +0000 |
commit | 4c8265d32ddff5960a464b8d4e8d7d2258495b2e (patch) | |
tree | 6dbac46beb0c7844c19cac4b7568709ecc4600fc /lang/python/helpers.h | |
parent | python: Fix build system integration. (diff) | |
download | gpgme-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.h | 3 |
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); |