Fixed xrender.nim for use_pkg_config
This commit is contained in:
parent
3c9864c9d3
commit
f54cb2e323
1 changed files with 5 additions and 2 deletions
|
|
@ -2,9 +2,12 @@
|
||||||
import
|
import
|
||||||
x, xlib
|
x, xlib
|
||||||
|
|
||||||
when defined(pkclibx):
|
when defined(use_pkg_config) or defined(use_pkg_config_static):
|
||||||
{.passl: gorge("pkg-config xrender --libs").}
|
|
||||||
{.pragma: libxrender, cdecl, importc.}
|
{.pragma: libxrender, cdecl, importc.}
|
||||||
|
when defined(use_pkg_config):
|
||||||
|
{.passl: gorge("pkg-config xrender --libs").}
|
||||||
|
else:
|
||||||
|
{.passl: gorge("pkg-config xrender --static --libs").}
|
||||||
else:
|
else:
|
||||||
when defined(macosx):
|
when defined(macosx):
|
||||||
const
|
const
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue