Skip to content

Instantly share code, notes, and snippets.

@qrwteyrutiyoup
Created September 19, 2013 19:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save qrwteyrutiyoup/6628634 to your computer and use it in GitHub Desktop.
Save qrwteyrutiyoup/6628634 to your computer and use it in GitHub Desktop.
diff --git a/Source/WebCore/PlatformNix.cmake b/Source/WebCore/PlatformNix.cmake
index 1a8917f..aaefb06 100644
--- a/Source/WebCore/PlatformNix.cmake
+++ b/Source/WebCore/PlatformNix.cmake
@@ -206,6 +206,7 @@ list(APPEND WebCore_LIBRARIES
${ZLIB_LIBRARIES}
Platform
${HARFBUZZ_LIBRARIES}
+ ${HARFBUZZ_ICU_LIBRARIES}
)
list(APPEND WebCore_INCLUDE_DIRECTORIES
diff --git a/Source/cmake/FindHarfBuzz.cmake b/Source/cmake/FindHarfBuzz.cmake
index f8ca605..5b5f076 100644
--- a/Source/cmake/FindHarfBuzz.cmake
+++ b/Source/cmake/FindHarfBuzz.cmake
@@ -33,6 +33,7 @@
include(FindPkgConfig)
pkg_check_modules(PC_HARFBUZZ harfbuzz>=0.9.7)
+pkg_check_modules(PC_HARFBUZZ_ICU harfbuzz-icu>=0.9.7)
find_path(HARFBUZZ_INCLUDE_DIRS NAMES hb.h
HINTS ${PC_HARFBUZZ_INCLUDE_DIRS} ${PC_HARFBUZZ_INCLUDEDIR}
@@ -42,5 +43,9 @@ find_library(HARFBUZZ_LIBRARIES NAMES harfbuzz
HINTS ${PC_HARFBUZZ_LIBRARY_DIRS} ${PC_HARFBUZZ_LIBDIR}
)
+find_library(HARFBUZZ_ICU_LIBRARIES NAMES harfbuzz-icu
+ HINTS ${PC_HARFBUZZ_ICU_LIBRARY_DIRS} ${PC_HARFBUZZ_ICU_LIBDIR}
+)
+
include(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(HarfBuzz DEFAULT_MSG HARFBUZZ_INCLUDE_DIRS HARFBUZZ_LIBRARIES)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment