Skip to content

Commit 84653ee

Browse files
committed
Use cairomm and pangomm
1 parent 1c85c08 commit 84653ee

4 files changed

Lines changed: 175 additions & 184 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ jobs:
2121
blocks: -DUNICODE_BLOCKS=/usr/share/unicode/Blocks.txt
2222
install_packages: >
2323
sudo apt update &&
24-
sudo apt install cmake gettext libcairo2-dev libglib2.0-dev libfmt-dev libfreetype6-dev libpango1.0-dev ninja-build pkg-config unicode-data
24+
sudo apt install cmake gettext libcairo2-dev libcairomm-1.0-dev libglib2.0-dev libfmt-dev libfreetype6-dev libpango1.0-dev libpangomm-1.4-dev ninja-build pkg-config unicode-data
2525
- os: macos-latest
2626
env:
2727
- CMAKE_PREFIX_PATH: /usr/local/opt/gettext
2828
install_packages: >
2929
brew update &&
30-
brew install cairo cmake fmt fontconfig freetype gettext glib pango ninja pkg-config
30+
brew install cairo cairomm cmake fmt fontconfig freetype gettext glib pango pangomm ninja pkg-config
3131
3232
runs-on: ${{matrix.os}}
3333

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ pkg_check_modules(pkgs REQUIRED IMPORTED_TARGET
3434
pangoft2>=1.37.0
3535
)
3636

37+
# FIXME: this is ugly
38+
pkg_search_module(cairomm REQUIRED IMPORTED_TARGET cairomm cairomm-1.16 cairomm-1.0)
39+
pkg_search_module(pangomm REQUIRED IMPORTED_TARGET pangomm pangomm-2.48 pangomm-1.4)
40+
3741
include(DownloadUnicodeBlocks)
3842

3943
download_unicode_blocks()

src/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ target_include_directories(fntsample PRIVATE
4141
${CMAKE_CURRENT_SOURCE_DIR}
4242
)
4343

44-
target_link_libraries(fntsample PRIVATE Intl::Intl PkgConfig::pkgs fmt::fmt)
44+
target_link_libraries(fntsample PRIVATE Intl::Intl PkgConfig::pkgs fmt::fmt PkgConfig::cairomm PkgConfig::pangomm)
4545

4646
target_compile_options(fntsample PRIVATE ${C_WARNING_FLAGS})
4747

0 commit comments

Comments
 (0)