Added use_pkg_config, use_pkg_config_static conditionals to xlib, cairo
This commit is contained in:
parent
f74e296f84
commit
3c9864c9d3
3 changed files with 13 additions and 7 deletions
|
|
@ -47,9 +47,12 @@
|
|||
# By Luiz Américo Pereira Câmara
|
||||
# October 2007
|
||||
#
|
||||
when defined(pkclibcairo):
|
||||
{.passl: gorge("pkg-config cairo --libs").}
|
||||
when defined(use_pkg_config) or defined(use_pkg_config_static):
|
||||
{.pragma: libcairo, cdecl.}
|
||||
when defined(use_pkg_config_static):
|
||||
{.passl: gorge("pkg-config cairo --libs --static").}
|
||||
else:
|
||||
{.passl: gorge("pkg-config cairo --libs").}
|
||||
else:
|
||||
when defined(windows):
|
||||
const LIB_CAIRO* = "libcairo-2.dll"
|
||||
|
|
|
|||
|
|
@ -7,8 +7,7 @@
|
|||
import
|
||||
cairo, x, xlib, xrender
|
||||
|
||||
when defined(pkclibcairo):
|
||||
{.passl: gorge("pkg-config cairo --libs").}
|
||||
when defined(use_pkg_config) or defined(use_pkg_config_static):
|
||||
{.pragma: libcairo, cdecl.}
|
||||
else:
|
||||
when defined(windows):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue