Bug 137739 - [GTK]FindHarfBuzz.cmake dose not handle harfbuzz-icu correctly
Summary: [GTK]FindHarfBuzz.cmake dose not handle harfbuzz-icu correctly
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Linux
: P3 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-15 06:12 PDT by 宋文武
Modified: 2023-03-25 10:39 PDT (History)
6 users (show)

See Also:


Attachments
cmake: finding harfbuzz-icu (112 bytes, text/plain)
2014-10-15 06:14 PDT, 宋文武
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description 宋文武 2014-10-15 06:12:01 PDT
Suppose I have harfbuzz and harfbuzz-icu install to two different directories,
then paths to hb.h and hb-icu.h should both included in HARFBUZZ_INCLUDE_DIRS.
And the ``list APPEND`` method does not really work.

Here is a patch I used to package it for NixOS.

Version: webkitgtk-2.6.1
Comment 1 宋文武 2014-10-15 06:14:11 PDT
Created attachment 239870 [details]
cmake: finding harfbuzz-icu
Comment 2 Alberto Garcia 2014-12-07 10:46:06 PST
Why don't you (In reply to comment #0)
> Suppose I have harfbuzz and harfbuzz-icu install to two different
> directories,

> then paths to hb.h and hb-icu.h should both included in
> HARFBUZZ_INCLUDE_DIRS.

I'm not a cmake expert, but why don't you look for hb.h in the new patch then?

In the HarfBuff >= 0.9.18 branch of the if I only see hb-icu.h.
Comment 3 宋文武 2014-12-08 18:20:13 PST
(In reply to comment #2)
> Why don't you (In reply to comment #0)
> > Suppose I have harfbuzz and harfbuzz-icu install to two different
> > directories,
> 
> > then paths to hb.h and hb-icu.h should both included in
> > HARFBUZZ_INCLUDE_DIRS.
> 
> I'm not a cmake expert, but why don't you look for hb.h in the new patch
> then?
Obvious, I'm not a cmake expert too :)
Ah yes, It's good to add a find_path for hb.h too.
Even pkg_check_modules(PC_HARFBUZZ harfbuzz>=0.9.7) should given a corret PC_HARFBUZZ_INCLUDE_DIRS (having hb.h).

> In the HarfBuff >= 0.9.18 branch of the if I only see hb-icu.h.
Comment 4 alex_y_xu 2023-03-25 08:56:03 PDT
fixed by https://bugs.webkit.org/show_bug.cgi?id=220082