Commit Graph
143 Commits
Author SHA1 Message Date
Behdad Esfahbod 70de901d39 [cmake] Add raster and vector libraries
Wire harfbuzz-raster and harfbuzz-vector into the
community-maintained CMake build so they are built,
installed, and exported like the existing optional
libraries.

Also install their public headers, generate pkg-config
files for them, and expose HB_HAS_SUBSET/HB_HAS_RASTER/
HB_HAS_VECTOR in hb-features.h.

Testing:
meson test -C build

Assisted-by: OpenAI Codex
2026-03-13 01:21:13 +02:00
chuikingshek 856f99b190 CMake: Fix: harfbuzz-icu, harfbuzz-subset and harfbuzz-cairo are not included in harfbuzzConfig 2025-12-02 16:20:46 +02:00
chuikingshek 37b375e20a CMake: Replace deprecated add_definitions with add_compile_definitions 2025-11-28 12:59:10 +02:00
chuikingshek bebd9f14e7 MSVC: Sync compiler options between Meson and CMake. 2025-11-14 13:26:13 +02:00
Khaled Hosny 76c490aee2 [cmake] Re-word the warning message to be more up-to-date [ci skip] 2025-11-05 07:16:23 +02:00
Brenton Bostick f6054b6ccc fix CMake message warning (#5633) 2025-10-31 13:50:46 -06:00
Jordan 682a2c37c6 [cmake] Fix missing sources (#5519) 2025-08-31 15:50:15 -06:00
Behdad Esfahbod 4a1d4fbf0d harfbuzz.cc hb-shape (#5474)
* [util] Respect HB_NO_FEATURES_H macro

For builds using harfbuzz.cc and no features file.

* Kill PACKAGE_NAME and PACKAGE_VERSION

Remnants of autotools.

* [BUILD.md] Update
2025-08-17 17:12:22 -06:00
Andarwinux dbbf6def3b add libdwrite to PC_LIBS_PRIV if directwrite is enabled 2025-08-04 21:47:43 -06:00
Christoph Thien 68f22726c1 fix linker error on Windows : 'unresolved external symbol __imp_DWriteCreateFactory'
When using HB_HAVE_DIRECTWRITE=ON then we get linker error:

harfbuzz.cc.obj : error LNK2019: unresolved external symbol __imp_DWriteCreateFactory referenced in function "public: __cdecl hb_directwrite_global_t::hb_directwrite_global_t(void)" (??0hb_directwrite_global_t@@QEAA@XZ)

Added linking to dwrite.lib on Windows.
2025-07-16 14:42:20 +03:00
TN-mo 826b7c132b fix "too many sections" compilation fails on windows 2025-06-27 17:03:21 -06:00
Ozkan Sezer bd6b30b186 cmake: always set inline hidden flag.
This practically reverts commit ac92ed7d68:
minimum required cmake version is more than new enough.
2025-05-24 18:24:36 +03:00
Jeff McKenna c200418f15 remove hb-ot-shape-closure 2025-05-22 07:45:04 -07:00
JordanTheToaster b0f4979d47 [cmake] Fix missing sources 2025-04-22 01:48:26 -06:00
Behdad Esfahbod 21516f74d2 [cmake] Add hb-script-list.h
Fixes https://github.com/harfbuzz/harfbuzz/issues/5288
2025-04-15 09:58:42 -06:00
Ozkan Sezer e57e728532 cmake: add missing FT_Get_Transform check 2025-03-20 13:18:45 +02:00
Jim-Wang b97ef6c702 add dep 2025-02-16 09:29:28 +02:00
Thrita ba31fc95a9 Add support for Apple framework builds (#4993)
* Build: Update Apple Framework properties

Signed-off-by: Treata11 <treata11@yahoo.com>

* Build: Fix issues related to Framework properties

Signed-off-by: Treata11 <treata11@yahoo.com>

* Build: Fix framework properties of SHARED_LIBS

Signed-off-by: Treata11 <treata11@yahoo.com>

* Fix typos

---------

Signed-off-by: Treata11 <treata11@yahoo.com>
2025-01-11 11:51:57 +02:00
Garret Rieger 056504168c [repacker] rename hb-subset-repacker -> hb-subset-serialize.
Also hb_link_t and hb_object_t to hb_subset_serialize_link_t and hb_subset_serialize_object_t.
2025-01-07 13:39:51 -07:00
Khaled Hosny b461c4224a Fold the remaining Makefile.sources into CMakeLists.txt
That is the only place where they are used now.
2024-06-27 16:33:16 +03:00
Khaled Hosny fa82ecd2c7 Fix CMake build 2024-06-27 15:28:38 +03:00
Don Olmstead cef1eafb77 Use find_package for ICU
ICU 75.1 requires C++17 support so use `find_package(ICU)` which determines the versioning. Sets `CMAKE_CXX_STANDARD` when that happens.

Follows along with what Meson build did in 93d58f83.
2024-06-14 13:51:14 -07:00
Timo Suoranta 39b5ae79f0 Fix for #4395 2024-04-12 19:33:29 +02:00
Bruce Mitchener 582a5b3a92 cmake: Switch to find_package(Python3).
The existing way of working used in this file was deprecated in
cmake 3.12 and a new way supplied.

See https://cmake.org/cmake/help/latest/policy/CMP0148.html
2024-02-19 20:10:04 +02:00
Behdad Esfahbod 4a18c502e2 [cmake] Treat VITA like gcc
https://github.com/vitasdk/packages/issues/300
2024-01-23 05:12:43 -08:00
Chun-wei Fan 5e9710ffc0 CMake: Update introspection cflags
Make the flags between --cflags-[begin|end] correspond to the ones used in the
Meson builds better.
2023-11-30 17:42:46 +08:00
Chun-wei Fan ea526c3dcb CMake: Generate and install hb-features.h
By the features that are enabled for the build.  The header is installed unless
one chooses not to install it
2023-11-30 17:35:04 +08:00
Chun-wei Fan 86fd6b10c4 CMake: Build the hb-info utility program
...if GObject support is enabled.
2023-11-30 16:39:10 +08:00
Chun-wei Fan d112ed40fc CMake: Install hb-subset-repacker.h
It ought to be installed.
2023-11-30 16:32:30 +08:00
Chun-wei Fan 1d86b844df CMake: Build libharfbuzz-cairo and fix hb-view build
There is now a separate library that we build if Cairo support is enabled,
which will also be used to build hb-view, so we:

* Add support in the CMake build files to build libharfbuzz-cairo, if enabled
  via HB_HAVE_CAIRO. Move the Cairo detection bits around as a result.
* Generate pkg-config file for libharfbuzz-cairo, and add 'cairo' to
  Requires.private.
* Fix building hb-view, which will now depend on libharfbuzz-cairo, so Cairo
  support must be explicitly enabled.
* Stop depending automatically on Cairo if HB_BUILD_UTILS is enabled unless
  Cairo support is enabled as a result.
2023-11-30 16:31:44 +08:00
Amir Masoud Abdol 0a3e4c12ac Replace the deprecated $<CONFIGURATION> with $<CONFIG> 2023-01-17 11:09:15 +02:00
Ankith a120b01ab3 [cmake] Generate pkg-config .pc files 2022-09-06 18:28:43 +05:30
Not-a-Bug Won't Fix aec34e17eb Fix target_link_libraries signatures mixing 2022-07-07 13:35:50 -06:00
Luca Bacci 3a722c5354 Fixes for DWrite header checks 2022-07-06 12:00:36 -06:00
Luca Bacci 1abc14b463 Do not link with the DWrite lib
It's loaded dynamically now
2022-07-06 17:55:39 +02:00
Cosimo Lupo 53eeeab0e3 CMakeLists.txt: also match 'AppleClang' compiler to not link with libc++ 2022-04-06 14:20:59 +02:00
Timo Suoranta b8c2c1ab37 Use freetype from CMake target when present (#3361)
Add check for Freetype CMake target. If it is found:
- enable HB_HAVE_FREETYPE option
- add HAVE_FREETYPE=1 define
- bypass finding Freetype as cmake package
- add Freetype CMake target as dependency to harfbuzz
2022-01-11 05:14:44 -07:00
faywong b621c4fc29 [subset] Refine the coding style 2021-10-11 13:07:12 -06:00
faywong f8538d3117 [subset] Export header & archive when HB_BUILD_SUBSET
Ease the adopt of hb-subset feature for 3rd party developers
2021-10-11 13:07:12 -06:00
NikitaFeodonit 19cd84b4e9 CMake: Detect pthread with module FindThread
Set CMake minimum version to 3.1.
2021-09-15 17:28:43 +03:00
Behdad Esfahbod c4b49075f6 Update CMakeLists.txt
Keep the warning.
2021-04-01 11:47:33 -06:00
Timo Suoranta 9945f32746 Test fix to export target include directories 2021-04-01 11:47:33 -06:00
Behdad Esfahbod dbcf2f417f [cmake] Fix syntax 2021-03-01 12:43:32 -07:00
Behdad Esfahbod 11c28cb5fa [cmake] Define HAVE_PTHREAD if not on win32
Yeah...
2021-02-22 17:38:53 -07:00
Behdad Esfahbod c2fc2aa44c [atomic] Remove Solaris intrinsics 2021-02-20 15:20:33 -07:00
Behdad Esfahbod 7099a6dca1 [atomic] Remove old Intel primitives implementation 2021-02-20 15:20:06 -07:00
Chun-wei Fan 2953a66ab6 CMake: Define HAVE_GOBJECT when harfbuzz-gobject is built
Without this, the built library for harfbuzz-gobject is unuseful.
2020-12-11 14:00:10 +03:30
David Corbett e25aa49a1b Fix a dead link in CMakeLists.txt 2020-10-17 12:32:41 -04:00
Ebrahim Byagowi 2af58c3518 Revert "Remove cmake build files"
This reverts commit 4e572c9407.
2020-08-12 01:00:33 +04:30
Ebrahim Byagowi 4e572c9407 Remove cmake build files
As discussed in https://github.com/harfbuzz/harfbuzz/pull/2252
2020-07-30 16:19:15 +04:30