1
1
mirror of https://github.com/github/semantic.git synced 2024-12-25 07:55:12 +03:00

Bind variables for the icu dirs.

This commit is contained in:
Rob Rix 2016-02-29 09:37:36 -05:00
parent 19913e49ef
commit cf03cd7783

View File

@ -16,12 +16,14 @@ conf x flags = do
libraryBuildInfo = P.libBuildInfo library
relativeIncludeDirs = [ "common", "i18n" ] in do
dir <- getCurrentDirectory
let icuLibDir = dir ++ "/vendor/icu/lib"
let icuSourceDir = dir ++ "/vendor/icu/source/"
return localBuildInfo {
localPkgDescr = packageDescription {
P.library = Just $ library {
P.libBuildInfo = libraryBuildInfo {
P.extraLibDirs = (dir ++ "/vendor/icu/lib") : P.extraLibDirs libraryBuildInfo,
P.includeDirs = (((dir ++ "/vendor/icu/source/") ++) <$> relativeIncludeDirs) ++ P.includeDirs libraryBuildInfo
P.extraLibDirs = icuLibDir : P.extraLibDirs libraryBuildInfo,
P.includeDirs = ((icuSourceDir ++) <$> relativeIncludeDirs) ++ P.includeDirs libraryBuildInfo
}
}
}