Merge pull request #71317 from arthurl/arthur/wt-PR

wt: Permit overriding of optional libraries
This commit is contained in:
WilliButz 2019-10-20 11:34:20 +02:00 committed by GitHub
commit de123f796f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,13 +27,16 @@ let
];
cmakeFlags = [
"-DWT_WRASTERIMAGE_IMPLEMENTATION=GraphicsMagick"
"-DWT_CPP_11_MODE=-std=c++11"
"-DGM_PREFIX=${graphicsmagick}"
"-DMYSQL_PREFIX=${libmysqlclient}"
"-DHARFBUZZ_INCLUDE_DIR=${harfbuzz.dev}/include"
"--no-warn-unused-cli"
];
]
++ stdenv.lib.optionals (graphicsmagick != null) [
"-DWT_WRASTERIMAGE_IMPLEMENTATION=GraphicsMagick"
"-DGM_PREFIX=${graphicsmagick}"
]
++ stdenv.lib.optional (libmysqlclient != null)
"-DMYSQL_PREFIX=${libmysqlclient}";
meta = with stdenv.lib; {
homepage = "https://www.webtoolkit.eu/wt";