link_cairo.xcpjh


//////////////////// cairo //////////////////////
/*
Cairo (stylized as cairo) is a software library used to provide a vector graphics-based, 
device-independent API for software developers. It is designed to provide primitives for 
2-dimensional drawing across a number of different backends. Cairo is designed to use 
hardware acceleration when available.

It is written in C and has bindings available for many programming languages, including 
C++, PHP, Factor, Haskell, Lua, Perl, Python, Ruby, Scheme, Smalltalk and several others.

Cairo is free software. It is dual licensed under the GNU Lesser General Public License and 
the Mozilla Public License.
*/

@if (IsWindowsPlatform)
{    
    +cpp("Win32")
    {
        /I "$(GTKPLUS_WIN32_INCLUDE)/cairo"
    }
    +cpp("x64")
    {
        /I "$(GTKPLUS_WIN64_INCLUDE)/cairo"
    }
        
    +link("Win32")
    {
        "$(GTKPLUS_WIN32_LIB)/libcairo-2.lib"
    }
    +link("x64")
    {
        "$(GTKPLUS_WIN64_LIB)/libcairo-2.lib"
    }
}

@if (IsMacOSXPlatform)
{
    // installed when brew-install gtk+ is done above
    +cpp
    {
        `pkg-config --cflags cairo`
    }

    +link
    {
        `pkg-config --libs cairo`
    }
}