shiboken2 binding and preprocessor flags.
-
Hi,
please excuse me if my question is trivial. I'm new to Shiboken and may have overlooked some crucial information. I'm currently using Shiboken2 to generate Python bindings for a C++ class. This C++ class has features that are enabled by preprocessor flags.
Can preprocessor flags be passed to Shiboken2 (Qt 5)? If not, is there an effective workaround for this situation?Thanks for your valuable feedback.
-
Hi and welcome to devnet,
I don't have shiboken2 at hand but if the options are the same as shiboken6, you can use:
--clang-option="-D MY_DEFINE"
and that should do the trick.