Skip to content

Commit

Permalink
[subset] Export header & archive when HB_BUILD_SUBSET
Browse files Browse the repository at this point in the history
Ease the adopt of hb-subset feature for 3rd party developers
  • Loading branch information
faywong authored and behdad committed Oct 11, 2021
1 parent 36ed56b commit f8538d3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Expand Up @@ -437,6 +437,7 @@ endif ()
## Define harfbuzz-subset library
if (HB_BUILD_SUBSET)
add_library(harfbuzz-subset ${subset_project_sources} ${subset_project_headers})
list(APPEND project_headers ${PROJECT_SOURCE_DIR}/src/hb-subset.h)
add_dependencies(harfbuzz-subset harfbuzz)
target_link_libraries(harfbuzz-subset harfbuzz ${THIRD_PARTY_LIBS})

Expand Down Expand Up @@ -702,6 +703,11 @@ if (NOT SKIP_INSTALL_LIBRARIES AND NOT SKIP_INSTALL_ALL)
FRAMEWORK DESTINATION Library/Frameworks
)
endif ()
if (HB_BUILD_SUBSET)
install(TARGETS harfbuzz-subset
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
)
endif ()
if (HB_BUILD_UTILS)
if (WIN32 AND BUILD_SHARED_LIBS)
install(TARGETS harfbuzz-subset
Expand Down

0 comments on commit f8538d3

Please sign in to comment.