Merge pull request #71964 from arthurl/wt-PR

wt: Allow optional library harfbuzz to be overriden with null
This commit is contained in:
Robin Gloster 2019-10-25 14:29:39 +02:00 committed by GitHub
commit 48a22a0ff7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -28,13 +28,14 @@ let
cmakeFlags = [
"-DWT_CPP_11_MODE=-std=c++11"
"-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 (harfbuzz != null)
"-DHARFBUZZ_INCLUDE_DIR=${harfbuzz.dev}/include"
++ stdenv.lib.optional (libmysqlclient != null)
"-DMYSQL_PREFIX=${libmysqlclient}";