File tree Expand file tree Collapse file tree 4 files changed +19
-1
lines changed Expand file tree Collapse file tree 4 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -70,3 +70,4 @@ win/x64
70
70
win /x85
71
71
win /Debug
72
72
cglm-test-ios *
73
+ /cglm.pc
Original file line number Diff line number Diff line change
1
+ prefix=@prefix@
2
+ exec_prefix=@exec_prefix@
3
+ libdir=@libdir@
4
+ includedir=@includedir@
5
+
6
+ Name: @PACKAGE_NAME@
7
+ Description: OpenGL Mathematics (glm) for C
8
+ URL: https://github.com/recp/cglm
9
+ Version: @PACKAGE_VERSION@
10
+ Cflags: -I${includedir}
11
+ Libs: -L${libdir} -lcglm @LIBS@
Original file line number Diff line number Diff line change @@ -14,6 +14,10 @@ AC_CONFIG_MACRO_DIR([m4])
14
14
AC_CONFIG_SRCDIR ( [ src/] )
15
15
AC_CONFIG_HEADERS ( [ config.h] )
16
16
17
+ # Dependencies for pkg-config.
18
+ PKG_PROG_PKG_CONFIG
19
+ PKG_INSTALLDIR
20
+
17
21
# Checks for programs.
18
22
AC_PROG_CC
19
23
AM_PROG_CC_C_O
@@ -53,6 +57,6 @@ AC_TYPE_UINT8_T
53
57
# Checks for library functions.
54
58
AC_FUNC_ERROR_AT_LINE
55
59
56
- AC_CONFIG_FILES ( [ makefile] )
60
+ AC_CONFIG_FILES ( [ makefile cglm.pc ] )
57
61
58
62
AC_OUTPUT
Original file line number Diff line number Diff line change @@ -154,6 +154,8 @@ test_tests_SOURCES=\
154
154
test/src/test_affine.c \
155
155
test/src/test_bezier.c
156
156
157
+ pkgconfig_DATA=cglm.pc
158
+
157
159
# When running configure with --prefix, $VPATH references
158
160
# the source directory that post-build.sh is in. When not
159
161
# using a prefix, $VPATH will be unset, so we need to fall
You can’t perform that action at this time.
0 commit comments