Build with gprbuild, since 'gnatmake -P' is being phased out.

N715-032

git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/xmlada@230603 936e1b1b-40f2-da11-902a-00137254ae57
This commit is contained in:
Emmanuel Briot
2014-07-17 09:03:15 +00:00
committed by briot
parent d5662a6efc
commit 101d8168bc
6 changed files with 20 additions and 30 deletions

View File

@@ -20,7 +20,7 @@ includedir=@includedir@
# Set a default value (ignored if set in the environment)
PROCESSORS?=1
GNATMAKE=@gnatmake@ -j${PROCESSORS}
GPRBUILD=@gprbuild@ -j${PROCESSORS}
# Compiler mode: one of "distrib", "Debug", "Production", "profile", "coverage"
MODE=@BUILD_TYPE@
@@ -62,17 +62,17 @@ shared relocatable:
${MAKE} LIBRARY_TYPE=relocatable build_library_type
obj: force
${GNATMAKE} -m -p -Punicode/unicode.gpr ${MAKE_ARGS}
${GNATMAKE} -m -p -Pinput_sources/input_sources.gpr ${MAKE_ARGS}
${GNATMAKE} -m -p -Psax/sax.gpr ${MAKE_ARGS}
${GNATMAKE} -m -p -Pdom/dom.gpr ${MAKE_ARGS}
${GNATMAKE} -m -p -Pschema/schema.gpr ${MAKE_ARGS}
${GPRBUILD} -m -p -Punicode/unicode.gpr ${MAKE_ARGS}
${GPRBUILD} -m -p -Pinput_sources/input_sources.gpr ${MAKE_ARGS}
${GPRBUILD} -m -p -Psax/sax.gpr ${MAKE_ARGS}
${GPRBUILD} -m -p -Pdom/dom.gpr ${MAKE_ARGS}
${GPRBUILD} -m -p -Pschema/schema.gpr ${MAKE_ARGS}
test: force
${GNATMAKE} -m -p -Punicode/test/unicode_test.gpr ${MAKE_ARGS}
${GNATMAKE} -m -p -Psax/test/sax_test.gpr ${MAKE_ARGS}
${GNATMAKE} -m -p -Pdom/test/dom_test.gpr ${MAKE_ARGS}
${GNATMAKE} -m -p -Pschema/test/schema_test.gpr ${MAKE_ARGS}
${GPRBUILD} -m -p -Punicode/test/unicode_test.gpr ${MAKE_ARGS}
${GPRBUILD} -m -p -Psax/test/sax_test.gpr ${MAKE_ARGS}
${GPRBUILD} -m -p -Pdom/test/dom_test.gpr ${MAKE_ARGS}
${GPRBUILD} -m -p -Pschema/test/schema_test.gpr ${MAKE_ARGS}
run_test: force
@make --no-print-directory -C unicode/test tests

13
aclocal.m4 vendored
View File

@@ -34,7 +34,7 @@ AC_DEFUN(CHECK_BUILD_TYPE,
# Check whether GNAT on that target supports building shared
# libraries
# The following variables is exported by configure:
# @gnatmake@: the gnatmake command to use
# @gprbuild@: the gprbuild command to use
# @GNAT_BUILDS_SHARED@: either "yes" or "no"
# @DEFAULT_LIBRARY_TYPE@: either "static" or "relocatable"
# This is only set to "relocatable" if the user explicitly
@@ -63,13 +63,8 @@ Make them the installation default])],
fi],
[GNAT_BUILDS_SHARED=yes])
if test "$program_prefix" != NONE; then
gnatmake=${program_prefix}gnatmake
else
gnatmake=gnatmake
fi
AC_SUBST(gnatmake)
gprbuild=gprbuild
AC_SUBST(gprbuild)
if test x$GNAT_BUILDS_SHARED = xyes; then
# Create a temporary directory (from "info autoconf")
@@ -93,7 +88,7 @@ project Lib is
end Lib;
EOF
$gnatmake -c -q -P$tmp/lib 2>/dev/null
$gprbuild -c -q -P$tmp/lib 2>/dev/null
if test $? = 0 ; then
GNAT_BUILDS_SHARED=yes
else

11
configure vendored
View File

@@ -597,7 +597,7 @@ SO_EXT
BUILD_TYPE
DEFAULT_LIBRARY_TYPE
GNAT_BUILDS_SHARED
gnatmake
gprbuild
target_os
target_vendor
target_cpu
@@ -1866,12 +1866,7 @@ else
fi
if test "$program_prefix" != NONE; then
gnatmake=${program_prefix}gnatmake
else
gnatmake=gnatmake
fi
gprbuild=gprbuild
if test x$GNAT_BUILDS_SHARED = xyes; then
@@ -1896,7 +1891,7 @@ project Lib is
end Lib;
EOF
$gnatmake -c -q -P$tmp/lib 2>/dev/null
$gprbuild -c -q -P$tmp/lib 2>/dev/null
if test $? = 0 ; then
GNAT_BUILDS_SHARED=yes
else

View File

@@ -90,7 +90,7 @@ There are several ways to do it:
and you build your application with::
gnatmake -Pdefault main.adb
gprbuild -Pdefault main.adb
Note in the project file the first line, which indicates that your
application requires XML/Ada to build. This will automatically set the

View File

@@ -481,7 +481,7 @@ procedure DOM_Conformance is
Delete_File ("domtest.o", Success);
if System
("gnatmake -q -Pconformance domtest.adb" & ASCII.NUL) /= 0
("gprbuild -q -Pconformance domtest.adb" & ASCII.NUL) /= 0
then
Put_Line
(Standard_Error, "Could not compile domtest.adb");

View File

@@ -6,7 +6,7 @@
dir="2001/DOM-Test-Suite/tests/level1/core/"
test="$1"
gnatmake -q -m -P conformance.gpr dom_conformance
gprbuild -q -m -P conformance.gpr dom_conformance
if [ $? != 0 ]; then
exit 1
fi