Repository navigation
autoconf: provide a harfbuzz-config for use from CMake - #822
Merged
Merged
Conversation
mathstuf
commented
Feb 22, 2018
| list(GET _harfbuzz_version_info 2 | ||
| _harfbuzz_age) | ||
| unset(_harfbuzz_version_info) | ||
| math(EXPR _harfbuzz_soname "${_harfbuzz_current} - ${_harfbuzz_age}") |
Contributor
Author
There was a problem hiding this comment.
I don't know that this is true. I don't see something obvious which has the soname string.
Contributor
Author
There was a problem hiding this comment.
Digging into libtool code, this actually does seem to be true except for:
- freebsd-aout
- qnx
- sco
- sunos
Member
There was a problem hiding this comment.
Our soname will stay 0 forever. If that ever was to change, the library will be called something else, like harfbuzz2.
Contributor
Author
There was a problem hiding this comment.
Sounds good to me.
Closed
Contributor
Author
|
Tested with a simple CMake project: cmake_minimum_required(VERSION 3.3)
project(foo C)
find_package(harfbuzz REQUIRED)
add_executable(foo foo.c)
target_link_libraries(foo
harfbuzz::icu)#include <hb.h>
int main(int argc, char* argv[]) { return 0; } |
mathstuf
force-pushed
the
cmakeconfig
branch
from
February 22, 2018 22:10
f8a3b2d to
d73a591
Compare
Collaborator
|
Thank you for this! :) |
ebraminio
reviewed
Feb 22, 2018
| add_library(harfbuzz::harfbuzz SHARED IMPORTED) | ||
| set_target_properties(harfbuzz::harfbuzz PROPERTIES | ||
| INTERFACE_INCLUDE_DIRECTORIES "${_harfbuzz_prefix}/${_harfbuzz_includedir}/harfbuzz" | ||
| IMPORTED_LOCATION "${_harfbuzz_prefix}/${_harfbuzz_libdir}/libharfbuzz.so.0.${_harfbuzz_current}.${_harfbuzz_revision}") |
Collaborator
There was a problem hiding this comment.
Is this working on macOS with .dylibs?
Contributor
Author
There was a problem hiding this comment.
Nope. I can try that out tomorrow.
mathstuf
force-pushed
the
cmakeconfig
branch
from
February 23, 2018 20:56
d73a591 to
614b2b6
Compare
Contributor
Author
|
Now tested on macOS as well. |
Collaborator
|
@mathstuf, thank you very much! |
ebraminio
referenced
this pull request
in wingtk/gvsbuild
Mar 16, 2018
The CMake build doesn't install it.
tp-m
added a commit
to tp-m/harfbuzz
that referenced
this pull request
Dec 3, 2018
tp-m
added a commit
to tp-m/harfbuzz
that referenced
this pull request
Mar 9, 2020
ebraminio
pushed a commit
that referenced
this pull request
Mar 11, 2020
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cc: @ebraminio