mirror of https://github.com/odrling/Aegisub
Update the build system for the new repository layout.
Originally committed to SVN as r2757.
This commit is contained in:
parent
6c9013e2c9
commit
689e353c90
|
@ -1,6 +1,6 @@
|
||||||
noinst_LIBRARIES = libffmpegsource2_aegisub.a
|
noinst_LIBRARIES = libffmpegsource2_aegisub.a
|
||||||
|
|
||||||
AM_CPPFLAGS = -I../aegisub -D__UNIX__ -DHAVE_STRLCPY @LIBAVFORMAT_CFLAGS@ @LIBAVCODEC_CFLAGS@ @LIBSWSCALE_CFLAGS@ @LIBAVUTIL_CFLAGS@ @LIBPOSTPROC_CFLAGS@
|
AM_CPPFLAGS = -I../src -D__UNIX__ -DHAVE_STRLCPY @LIBAVFORMAT_CFLAGS@ @LIBAVCODEC_CFLAGS@ @LIBSWSCALE_CFLAGS@ @LIBAVUTIL_CFLAGS@ @LIBPOSTPROC_CFLAGS@
|
||||||
|
|
||||||
|
|
||||||
libffmpegsource2_aegisub_a_SOURCES = \
|
libffmpegsource2_aegisub_a_SOURCES = \
|
||||||
|
|
|
@ -22,7 +22,7 @@ SUBDIRS = \
|
||||||
$(auto3) \
|
$(auto3) \
|
||||||
$(libass) \
|
$(libass) \
|
||||||
$(ffmpegsource) \
|
$(ffmpegsource) \
|
||||||
aegisub \
|
src \
|
||||||
automation \
|
automation \
|
||||||
po \
|
po \
|
||||||
desktop
|
desktop
|
||||||
|
|
|
@ -34,7 +34,7 @@ test -z "$srcdir" && srcdir=.
|
||||||
ORIGDIR=`pwd`
|
ORIGDIR=`pwd`
|
||||||
cd $srcdir
|
cd $srcdir
|
||||||
|
|
||||||
test -d aegisub || {
|
test -d src || {
|
||||||
echo
|
echo
|
||||||
echo "You must run this script in the top-level $PROJECT directory."
|
echo "You must run this script in the top-level $PROJECT directory."
|
||||||
echo
|
echo
|
||||||
|
@ -282,19 +282,19 @@ fi
|
||||||
|
|
||||||
echo "--- Converting BMP resource files -> XPM ---"
|
echo "--- Converting BMP resource files -> XPM ---"
|
||||||
# BMP -> XPM via src/res.rc
|
# BMP -> XPM via src/res.rc
|
||||||
cat ${srcdir}/aegisub/res.rc | ${BIN_AWK} -f ${srcdir}/scripts/unix-gen-xpm.awk BIN_CONVERT="$BIN_CONVERT" > ${srcdir}/aegisub/bitmaps/Makefile.bitmaps
|
cat ${srcdir}/src/res.rc | ${BIN_AWK} -f ${srcdir}/scripts/unix-gen-xpm.awk BIN_CONVERT="$BIN_CONVERT" > ${srcdir}/src/bitmaps/Makefile.bitmaps
|
||||||
cd ${srcdir}/aegisub/bitmaps
|
cd ${srcdir}/src/bitmaps
|
||||||
make -f Makefile.bitmaps
|
make -f Makefile.bitmaps
|
||||||
cd ${srcdir}
|
cd ${srcdir}
|
||||||
|
|
||||||
$BIN_AWK '/BITMAP/ { image[count] = $1; ++count} END { printf("EXTRA_DIST="); for (v in image) printf(" \\\n %s_xpm.xpm", image[v])}' \
|
$BIN_AWK '/BITMAP/ { image[count] = $1; ++count} END { printf("EXTRA_DIST="); for (v in image) printf(" \\\n %s_xpm.xpm", image[v])}' \
|
||||||
${srcdir}/aegisub/res.rc \
|
${srcdir}/src/res.rc \
|
||||||
> ${srcdir}/aegisub/bitmaps/Makefile.am
|
> ${srcdir}/src/bitmaps/Makefile.am
|
||||||
|
|
||||||
echo "--- Generating libresrc/resrc.cpp, libresrc/libresrc.h from res.rc ---"
|
echo "--- Generating libresrc/resrc.cpp, libresrc/libresrc.h from res.rc ---"
|
||||||
$BIN_AWK -f scripts/unix-gen-res.awk ${srcdir}/aegisub/res.rc \
|
$BIN_AWK -f scripts/unix-gen-res.awk ${srcdir}/src/res.rc \
|
||||||
RESRC_CPP="${srcdir}/aegisub/libresrc/resrc.cpp" \
|
RESRC_CPP="${srcdir}/src/libresrc/resrc.cpp" \
|
||||||
RESRC_H="${srcdir}/aegisub/libresrc/libresrc.h"
|
RESRC_H="${srcdir}/src/libresrc/libresrc.h"
|
||||||
|
|
||||||
rm -rf autom4te.cache
|
rm -rf autom4te.cache
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,7 @@ m4_define([wx_required_version], [2.8.1])
|
||||||
# Setup
|
# Setup
|
||||||
#######
|
#######
|
||||||
AC_INIT([Aegisub], [aegisub_version],, [aegisub])
|
AC_INIT([Aegisub], [aegisub_version],, [aegisub])
|
||||||
AC_CONFIG_SRCDIR([aegisub/main.cpp])
|
AC_CONFIG_SRCDIR([src/main.cpp])
|
||||||
AM_INIT_AUTOMAKE
|
AM_INIT_AUTOMAKE
|
||||||
AC_CONFIG_HEADER([acconf.h])
|
AC_CONFIG_HEADER([acconf.h])
|
||||||
AC_GNU_SOURCE
|
AC_GNU_SOURCE
|
||||||
|
@ -1257,10 +1257,10 @@ AC_DEFINE_UNQUOTED([DEFAULT_PLAYER_AUDIO], ["$default_player_audio"], [Default a
|
||||||
# Makefiles
|
# Makefiles
|
||||||
AC_CONFIG_FILES([
|
AC_CONFIG_FILES([
|
||||||
Makefile
|
Makefile
|
||||||
aegisub/Makefile
|
src/Makefile
|
||||||
aegisub/bitmaps/Makefile
|
src/bitmaps/Makefile
|
||||||
aegisub/libresrc/Makefile
|
src/libresrc/Makefile
|
||||||
aegisub/libosxutil/Makefile
|
src/libosxutil/Makefile
|
||||||
universalchardet/Makefile
|
universalchardet/Makefile
|
||||||
FFmpegSource2/Makefile
|
FFmpegSource2/Makefile
|
||||||
auto3/Makefile
|
auto3/Makefile
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
noinst_LIBRARIES = libass_aegisub.a
|
noinst_LIBRARIES = libass_aegisub.a
|
||||||
|
|
||||||
AM_CPPFLAGS = -I../aegisub @FREETYPE_CFLAGS@ -DCONFIG_ICONV -DCONFIG_FONTCONFIG @FONTCONFIG_CFLAGS@ @ICONV_CFLAGS@
|
AM_CPPFLAGS = -I../src @FREETYPE_CFLAGS@ -DCONFIG_ICONV -DCONFIG_FONTCONFIG @FONTCONFIG_CFLAGS@ @ICONV_CFLAGS@
|
||||||
|
|
||||||
if BUILD_DARWIN
|
if BUILD_DARWIN
|
||||||
AM_CPPFLAGS += -DBUILD_DARWIN
|
AM_CPPFLAGS += -DBUILD_DARWIN
|
||||||
|
|
Loading…
Reference in New Issue