GNOME Bugzilla – Bug 630238
Add preprocessor symbol for imported package
Last modified: 2018-05-22 13:45:09 UTC
It would be useful if the compiler would define a PKG_NAME preprocessor symbol for every imported package (--pkg). Then we could check the presence of a specific package using preprocessor directives. With that it would be possible to enable/disable features at compile time without the need for extra preprocessor symbols.
Created attachment 170743 [details] [review] enhanced CodeContext.add_package to also call CodeContext.add_define This would be my solution to the problem. Please consider including in the next release.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/vala/issues/133.