用户可借助此项目快速配置从 Git 检出的 GNOME 模块源代码目录,其包含通用的 autogen.sh 脚本和常用宏,助力简化 GNOME 模块的构建引导流程。【此简介由AI生成】
| Files | Last commit | Last update |
|---|---|---|
| 4 years ago | ||
| 4 years ago | ||
| 4 years ago | ||
| 4 years ago | ||
| 4 years ago | ||
| 4 years ago | ||
| 4 years ago | ||
| 4 years ago | ||
| 4 years ago | ||
| 4 years ago | ||
| 4 years ago | ||
| 4 years ago | ||
| 4 years ago | ||
| 4 years ago | ||
| 4 years ago |
This module contains various files needed to bootstrap GNOME modules built from git. It contains the following components:
- A common "autogen.sh" script that can be used to configure a source directory checked out from git.
- Some commonly used macros (quite a small set these days -- macros should be packaged with their respective modules).
To make use of the common autogen script, create a stub autogen.sh script in your module that looks something like this:
---- Cut Here ----
#!/bin/sh
srcdir=dirname $0
[ -z "$srcdir" ] && srcdir=.
if [ ! -f "srcdir/configure.ac"];thenecho"srcdir/configure.ac" ]; then echo "srcdir doesn't look like source directory for $PKG_NAME" >&2 exit 1 fi
which gnome-autogen.sh || { echo "You need to install gnome-common from GNOME Git" exit 1 }
. gnome-autogen.sh "$@" ---- Cut Here ----
Then put the following in your configure.ac or configure.in file: AC_CONFIG_MACRO_DIR([m4]) AC_SUBST([ACLOCAL_AMFLAGS], ["-I $ac_macro_dir ${ACLOCAL_FLAGS}"])
This will make sure that autoconf macros will be found when you rebuild the package without rerunning autogen.sh.