link_Python.xcpjh



//////////////////// Python //////////////////////

@if (IsMsvcCompiler)
{    
    $PYTHON_INCLUDE = "$(PATH_TO_ROOT)/Ceda/ThirdParty/Python27/include"
    $PYTHON_LIB_x86 = "$(PATH_TO_ROOT)/Ceda/ThirdParty/Python27/libs/x86/Python27.lib"
    $PYTHON_LIB_x64 = "$(PATH_TO_ROOT)/Ceda/ThirdParty/Python27/libs/x64/Python27.lib"
}

@if (IsiOSBasedPlatform)
{
    @println(TODO: Need Python library for targeting iOS)
}
/*
@if (IsMacOSXPlatform)
{
    +cpp
    {
        `/usr/local/bin/python-config --cflags`
    }
    +link
    {
        `/usr/local/bin/python-config --ldflags`
    }
}
@if(IsLinuxPlatform)
*/
@if(IsGccBasedCompiler)
{
    +cpp
    {
        -I/usr/include/python2.7
    }
    +link
    {
        // /usr/lib/libpython2.7.so
        -lpython2.7
    }
}
@if (IsMsvcCompiler)
{
    +cpp
    {
        /I "$(PYTHON_INCLUDE)"
    }
    +link("Win32")
    {
        "$(PYTHON_LIB_x86)"
    }
    +link("x64")
    {
        "$(PYTHON_LIB_x64)"
    }
}