link_Jpeg.xcpjh
//////////////////// Jpeg //////////////////////
@if (IsMsvcCompiler)
{
$JPEG_INCLUDE = "$(PATH_TO_ROOT)/Ceda/ThirdParty/libjpeg-turbo/libjpeg-turbo-1.0.90"
/*
Assumed to contain the following libraries:
jpeg-static-x86.lib
jpeg-static-x64.lib
*/
$JPEG_LIB = "$(PATH_TO_ROOT)/Ceda/ThirdParty/libjpeg-turbo/libjpeg-turbo-1.0.90/lib"
+cpp
{
/I "$(JPEG_INCLUDE)"
}
+link("Win32")
{
"$(JPEG_LIB)/jpeg-static-x86.lib"
}
+link("x64")
{
"$(JPEG_LIB)/jpeg-static-x64.lib"
}
}
@if (IsMacOSXPlatform)
{
// requires brew install libjpeg-turbo
+cpp { -I /usr/local/Cellar/jpeg-turbo/1.4.2/include }
+link { -L/usr/local/Cellar/jpeg-turbo/1.4.2/lib -ljpeg }
}