Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiler flags (e.g. for XCB support) #4

Open
jackdbd opened this issue Jan 20, 2021 · 0 comments
Open

Compiler flags (e.g. for XCB support) #4

jackdbd opened this issue Jan 20, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@jackdbd
Copy link
Owner

jackdbd commented Jan 20, 2021

It should be possible to compile zig-cairo with or without support for optional Cairo surfaces. For example, in order to use XCB Surfaces, one has to link the XCB library. But since one might not be interested in using XCB surfaces, this feature should be optional.

Pycairo uses some compiler flags that define a few cairo.HAS constants to control whether these optional features are available or not. For example, this python script throws a runtime exception if Cairo was not compiled with PDF support.

In zig, maybe we could use @cDefine like it's done here?

See also:

@jackdbd jackdbd added the enhancement New feature or request label Feb 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant