Files
Paul Wankadia 8afcf7fcc4 Improve support for the optional ICU dependency.
For GNU make, conditionally populate the `Requires:` field in `re2.pc`.
Use `pkg-config` to obtain the necessary compiler and linker flags when
building `static-testinstall` and `shared-testinstall`.

For CMake, the dependency has to be expressed to CMake itself, not just
to `pkg-config` as above.

Fixes #407.

Change-Id: Ie5e0ea88e0662f54be011b3bc0c57f2cfa852f88
Reviewed-on: https://code-review.googlesource.com/c/re2/+/60931
Reviewed-by: Paul Wankadia <junyer@google.com>
Reviewed-by: Perry Lorier <perryl@google.com>
2023-01-25 14:13:14 +00:00

10 lines
275 B
Plaintext

includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@
libdir=@CMAKE_INSTALL_FULL_LIBDIR@
Name: re2
Description: RE2 is a fast, safe, thread-friendly regular expression engine.
Requires: @REQUIRES@
Version: @SONAME@.0.0
Cflags: -pthread -I${includedir}
Libs: -pthread -L${libdir} -lre2