mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-26 09:14:00 +00:00
Added use_pkg_config, use_pkg_config_static conditionals to xlib, cairo
This commit is contained in:
@@ -47,9 +47,12 @@
|
||||
# By Luiz Am<41>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
|
||||
|
||||
Reference in New Issue
Block a user