mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-07 06:25:03 +00:00
CMake: Build the hb-info utility program
...if GObject support is enabled.
This commit is contained in:
parent
d112ed40fc
commit
86fd6b10c4
1 changed files with 13 additions and 0 deletions
|
@ -178,6 +178,8 @@ extract_make_variable(HB_SUBSET_CLI_sources ${UTILSOURCES})
|
|||
add_prefix_to_list(HB_SUBSET_CLI_sources "${PROJECT_SOURCE_DIR}/util/")
|
||||
extract_make_variable(HB_OT_SHAPE_CLOSURE_sources ${UTILSOURCES})
|
||||
add_prefix_to_list(HB_OT_SHAPE_CLOSURE_sources "${PROJECT_SOURCE_DIR}/util/")
|
||||
extract_make_variable(HB_INFO_sources ${UTILSOURCES})
|
||||
add_prefix_to_list(HB_INFO_sources "${PROJECT_SOURCE_DIR}/util/")
|
||||
|
||||
|
||||
file(READ configure.ac CONFIGUREAC)
|
||||
|
@ -729,6 +731,11 @@ if (HB_BUILD_UTILS)
|
|||
|
||||
add_executable(hb-ot-shape-closure ${HB_OT_SHAPE_CLOSURE_sources})
|
||||
target_link_libraries(hb-ot-shape-closure harfbuzz)
|
||||
|
||||
if (HB_HAVE_GOBJECT)
|
||||
add_executable(hb-info ${HB_INFO_sources})
|
||||
target_link_libraries(hb-info harfbuzz-gobject harfbuzz)
|
||||
endif()
|
||||
endif ()
|
||||
|
||||
|
||||
|
@ -836,6 +843,12 @@ if (NOT SKIP_INSTALL_LIBRARIES AND NOT SKIP_INSTALL_ALL)
|
|||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
)
|
||||
|
||||
if (HB_HAVE_GOBJECT)
|
||||
install(TARGETS hb-info
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
)
|
||||
endif()
|
||||
|
||||
install(TARGETS hb-ot-shape-closure
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue