mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-01 10:13:22 +00:00
Use harfbuzz cmake file
This commit is contained in:
parent
ff07de679a
commit
39cd0a7412
10
third_party/CMakeLists.txt
vendored
10
third_party/CMakeLists.txt
vendored
@ -84,7 +84,15 @@ if(NOT USE_SHARED_FREETYPE)
|
||||
endif()
|
||||
|
||||
if(NOT USE_SHARED_HARFBUZZ)
|
||||
add_subdirectory(harfbuzz-cmake)
|
||||
set(HB_HAVE_FREETYPE ON CACHE BOOL "Enable freetype interop helpers")
|
||||
set(HB_HAVE_GRAPHITE2 OFF CACHE BOOL "Enable Graphite2 complementary shaper")
|
||||
set(HB_BUILTIN_UCDN ON CACHE BOOL "Use HarfBuzz provided UCDN")
|
||||
set(HB_HAVE_GLIB OFF CACHE BOOL "Enable glib unicode functions")
|
||||
set(HB_HAVE_ICU OFF CACHE BOOL "Enable icu unicode functions")
|
||||
set(HB_HAVE_CORETEXT OFF CACHE BOOL "Enable CoreText shaper backend on macOS")
|
||||
set(HB_HAVE_UNISCRIBE OFF CACHE BOOL "Enable Uniscribe shaper backend on Windows")
|
||||
set(HB_HAVE_DIRECTWRITE OFF CACHE BOOL "Enable DirectWrite shaper backend on Windows")
|
||||
add_subdirectory(harfbuzz)
|
||||
endif()
|
||||
|
||||
add_subdirectory(simpleini)
|
||||
|
2
third_party/harfbuzz
vendored
2
third_party/harfbuzz
vendored
@ -1 +1 @@
|
||||
Subproject commit ec3bd67cb96bd2cc26d64dfc84926d5de0f600ce
|
||||
Subproject commit 302a7207de10a1467db06dce79f50d917db4e1e1
|
90
third_party/harfbuzz-cmake/CMakeLists.txt
vendored
90
third_party/harfbuzz-cmake/CMakeLists.txt
vendored
@ -1,90 +0,0 @@
|
||||
# Copyright (C) 2017-2018 by David Capello
|
||||
|
||||
set(USE_UCDN 1)
|
||||
set(USE_ICU 0)
|
||||
|
||||
add_definitions(-DHAVE_OT)
|
||||
|
||||
if(USE_UCDN)
|
||||
add_definitions(-DHAVE_UCDN)
|
||||
set(HARFBUZZ_EXTRA_SOURCES
|
||||
../harfbuzz/src/hb-ucdn.cc)
|
||||
endif()
|
||||
|
||||
if(USE_ICU)
|
||||
add_definitions(
|
||||
-DHAVE_ICU
|
||||
-DHAVE_ICU_BUILTIN)
|
||||
set(HARFBUZZ_EXTRA_SOURCES
|
||||
../harfbuzz/src/hb-icu.cc)
|
||||
endif()
|
||||
|
||||
if(UNIX AND NOT APPLE)
|
||||
include(CheckCSourceCompiles)
|
||||
check_c_source_compiles("
|
||||
void memory_barrier (void) { __sync_synchronize (); }
|
||||
int atomic_add (int *i) { return __sync_fetch_and_add (i, 1); }
|
||||
int mutex_trylock (int *m) { return __sync_lock_test_and_set (m, 1); }
|
||||
void mutex_unlock (int *m) { __sync_lock_release (m); }
|
||||
int main() { ; return 0; }"
|
||||
HAVE_INTEL_ATOMIC_PRIMITIVES)
|
||||
if(HAVE_INTEL_ATOMIC_PRIMITIVES)
|
||||
add_definitions(-DHAVE_INTEL_ATOMIC_PRIMITIVES)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
add_library(harfbuzz
|
||||
../harfbuzz/src/hb-aat-layout.cc
|
||||
../harfbuzz/src/hb-blob.cc
|
||||
../harfbuzz/src/hb-buffer-serialize.cc
|
||||
../harfbuzz/src/hb-buffer.cc
|
||||
../harfbuzz/src/hb-common.cc
|
||||
../harfbuzz/src/hb-face.cc
|
||||
../harfbuzz/src/hb-font.cc
|
||||
../harfbuzz/src/hb-ft.cc
|
||||
../harfbuzz/src/hb-ot-color.cc
|
||||
../harfbuzz/src/hb-ot-font.cc
|
||||
../harfbuzz/src/hb-ot-layout.cc
|
||||
../harfbuzz/src/hb-ot-map.cc
|
||||
../harfbuzz/src/hb-ot-math.cc
|
||||
../harfbuzz/src/hb-ot-shape-complex-arabic.cc
|
||||
../harfbuzz/src/hb-ot-shape-complex-default.cc
|
||||
../harfbuzz/src/hb-ot-shape-complex-hangul.cc
|
||||
../harfbuzz/src/hb-ot-shape-complex-hebrew.cc
|
||||
../harfbuzz/src/hb-ot-shape-complex-indic-table.cc
|
||||
../harfbuzz/src/hb-ot-shape-complex-indic.cc
|
||||
../harfbuzz/src/hb-ot-shape-complex-khmer.cc
|
||||
../harfbuzz/src/hb-ot-shape-complex-myanmar.cc
|
||||
../harfbuzz/src/hb-ot-shape-complex-thai.cc
|
||||
../harfbuzz/src/hb-ot-shape-complex-tibetan.cc
|
||||
../harfbuzz/src/hb-ot-shape-complex-use-table.cc
|
||||
../harfbuzz/src/hb-ot-shape-complex-use.cc
|
||||
../harfbuzz/src/hb-ot-shape-fallback.cc
|
||||
../harfbuzz/src/hb-ot-shape-normalize.cc
|
||||
../harfbuzz/src/hb-ot-shape.cc
|
||||
../harfbuzz/src/hb-ot-tag.cc
|
||||
../harfbuzz/src/hb-ot-var.cc
|
||||
../harfbuzz/src/hb-set.cc
|
||||
../harfbuzz/src/hb-shape-plan.cc
|
||||
../harfbuzz/src/hb-shape.cc
|
||||
../harfbuzz/src/hb-shaper.cc
|
||||
../harfbuzz/src/hb-subset-glyf.cc
|
||||
../harfbuzz/src/hb-subset-input.cc
|
||||
../harfbuzz/src/hb-subset-plan.cc
|
||||
../harfbuzz/src/hb-subset.cc
|
||||
../harfbuzz/src/hb-unicode.cc
|
||||
../harfbuzz/src/hb-warning.cc
|
||||
${HARFBUZZ_EXTRA_SOURCES})
|
||||
|
||||
target_include_directories(harfbuzz PUBLIC
|
||||
../harfbuzz/src)
|
||||
|
||||
target_link_libraries(harfbuzz freetype)
|
||||
|
||||
if(USE_UCDN)
|
||||
add_library(ucdn
|
||||
../harfbuzz/src/hb-ucdn/ucdn.c)
|
||||
target_include_directories(ucdn PUBLIC
|
||||
../harfbuzz/src/hb-ucdn)
|
||||
target_link_libraries(harfbuzz ucdn)
|
||||
endif(USE_UCDN)
|
Loading…
x
Reference in New Issue
Block a user