Commit b0598130 authored by coppro's avatar coppro

Build system improvements

parent 553dd64f
...@@ -12,7 +12,7 @@ echo ' ...@@ -12,7 +12,7 @@ echo '
AUTOMAKE_OPTIONS = subdir-objects AUTOMAKE_OPTIONS = subdir-objects
bin_PROGRAMS = magicseteditor bin_PROGRAMS = magicseteditor
AM_CXXFLAGS = @WX_CXXFLAGS@ $(BOOST_CXXFLAGS) -DUNICODE -I . -Wall AM_CXXFLAGS = @WX_CXXFLAGS@ $(BOOST_CXXFLAGS) -I. -Wall
AM_LDFLAGS = @WX_LIBS@ $(BOOST_LDFLAGS) AM_LDFLAGS = @WX_LIBS@ $(BOOST_LDFLAGS)
.hpp.gch: .hpp.gch:
......
This diff is collapsed.
This diff is collapsed.
...@@ -708,6 +708,7 @@ with_wxdir ...@@ -708,6 +708,7 @@ with_wxdir
with_wx_config with_wx_config
with_wx_prefix with_wx_prefix
with_wx_exec_prefix with_wx_exec_prefix
enable_pch
' '
ac_precious_vars='build_alias ac_precious_vars='build_alias
host_alias host_alias
...@@ -1340,6 +1341,9 @@ Optional Features: ...@@ -1340,6 +1341,9 @@ Optional Features:
--enable-dependency-tracking do not reject slow dependency extractors --enable-dependency-tracking do not reject slow dependency extractors
--enable-debug Enable debug build (requires debug --enable-debug Enable debug build (requires debug
versions of wxWidgets and libstdc++. versions of wxWidgets and libstdc++.
--enable-pch Enable precompiled headers (Requires
GCC of sufficiently high version). Speeds up compile times
significantly... if it works.
Optional Packages: Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
...@@ -3440,11 +3444,11 @@ if test "${enable_debug+set}" = set; then : ...@@ -3440,11 +3444,11 @@ if test "${enable_debug+set}" = set; then :
fi fi
if test "x${DEBUG}" = x1; then if test "x${DEBUG}" = x1; then
DEFAULT_CXXFLAGS="-ggdb3 -O0 -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC" DEFAULT_CXXFLAGS="-ggdb -O0 -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC"
WXCONFIG_FLAGS="--debug" WXCONFIG_FLAGS="--debug --unicode=no"
else else
DEFAULT_CXXFLAGS="-O2" DEFAULT_CXXFLAGS="-O2"
WXCONFIG_FLAGS="" WXCONFIG_FLAGS="--unicode=no"
fi fi
if test X$user_set_cxxflags != Xyes; then if test X$user_set_cxxflags != Xyes; then
CXXFLAGS=${DEFAULT_CXXFLAGS} CXXFLAGS=${DEFAULT_CXXFLAGS}
...@@ -4912,9 +4916,17 @@ if test "${HAVE_WX}" != 1; then ...@@ -4912,9 +4916,17 @@ if test "${HAVE_WX}" != 1; then
" "$LINENO" 5 " "$LINENO" 5
fi fi
# Check whether --enable-pch was given.
if test "${enable_pch+set}" = set; then :
enableval=$enable_pch; PCH=1
else
PCH=0
fi
# Check for precompiled headers # Check for precompiled headers
# TODO: Deal with braindead GCC and actually check # TODO: Deal with braindead GCC and actually check
if test "x$CXX" = "xg++"; then if test "x$PCH" = "x1" -a "x$CXX" = "xg++"; then
GLIBCPP_BUILD_PCH_TRUE= GLIBCPP_BUILD_PCH_TRUE=
GLIBCPP_BUILD_PCH_FALSE='#' GLIBCPP_BUILD_PCH_FALSE='#'
else else
......
...@@ -58,7 +58,7 @@ fi ...@@ -58,7 +58,7 @@ fi
AC_ARG_ENABLE(pch, [--enable-pch Enable precompiled headers (Requires AC_ARG_ENABLE(pch, [--enable-pch Enable precompiled headers (Requires
GCC of sufficiently high version). Speeds up compile times GCC of sufficiently high version). Speeds up compile times
significantly... if it works.], [PCH=1], [PCH=1]) significantly... if it works.], [PCH=1], [PCH=0])
# Check for precompiled headers # Check for precompiled headers
# TODO: Deal with braindead GCC and actually check # TODO: Deal with braindead GCC and actually check
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment