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):
|
||||
|
|
|
|||
|
|
@ -2,9 +2,12 @@
|
|||
import
|
||||
x
|
||||
|
||||
when defined(pkclibx):
|
||||
when defined(use_pkg_config) or defined(use_pkg_config_static):
|
||||
{.pragma: libx11, cdecl, importc.}
|
||||
{.passl: gorge("pkg-config x11 --libs").}
|
||||
when defined(use_pkg_config_static):
|
||||
{.passl: gorge("pkg-config x11 --static --libs").}
|
||||
else:
|
||||
{.passl: gorge("pkg-config x11 --libs").}
|
||||
else:
|
||||
when defined(macosx):
|
||||
const
|
||||
|
|
@ -694,7 +697,8 @@ type
|
|||
window*: TWindow
|
||||
message_type*: TAtom
|
||||
format*: cint
|
||||
data*: array[0..4, clong]
|
||||
data*: array[0..4, clong] # using clong here to be 32/64-bit dependent
|
||||
# as the original C union
|
||||
|
||||
PXMappingEvent* = ptr TXMappingEvent
|
||||
TXMappingEvent*{.final.} = object
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue