Commit 1ce52033 authored by yoogx's avatar yoogx

* Add --projects flag, return path to Ocarina project files

parent 8b08da94
...@@ -5,6 +5,7 @@ work_dir=`pwd` ...@@ -5,6 +5,7 @@ work_dir=`pwd`
script_dir=`dirname $0`; cd ${script_dir}; script_dir=`pwd` script_dir=`dirname $0`; cd ${script_dir}; script_dir=`pwd`
prefix="${script_dir}/.."; cd ${prefix}; prefix=`pwd`; prefix="${script_dir}/.."; cd ${prefix}; prefix=`pwd`;
prefix_w=`@CYGPATH_W@ ${prefix}` prefix_w=`@CYGPATH_W@ ${prefix}`
projects_w=`@CYGPATH_W@ ${prefix}/lib/gnat`
cd ${work_dir} cd ${work_dir}
modules="frontends backends" modules="frontends backends"
...@@ -34,6 +35,8 @@ Options: ...@@ -34,6 +35,8 @@ Options:
of all runtimes. of all runtimes.
[--libs] [--libs]
Output the linker flags to use for Ocarina. Output the linker flags to use for Ocarina.
[--projects]
Output the path to GNAT Project files for Ocarina
[--properties] [--properties]
Output the location of the standard property file. Output the location of the standard property file.
[--resources] [--resources]
...@@ -97,6 +100,9 @@ while test $# -gt 0; do ...@@ -97,6 +100,9 @@ while test $# -gt 0; do
--libs) --libs)
echo_libs=true echo_libs=true
;; ;;
--projects)
echo_projects=true
;;
--runtime=*) --runtime=*)
requested_runtime=${optarg} requested_runtime=${optarg}
...@@ -163,6 +169,7 @@ if test ! x"${echo_prefix}" = x"true" \ ...@@ -163,6 +169,7 @@ if test ! x"${echo_prefix}" = x"true" \
-a ! x"${echo_exec_prefix}" = x"true" \ -a ! x"${echo_exec_prefix}" = x"true" \
-a ! x"${echo_cflags}" = x"true" \ -a ! x"${echo_cflags}" = x"true" \
-a ! x"${echo_libs}" = x"true" \ -a ! x"${echo_libs}" = x"true" \
-a ! x"${echo_projects}" = x"true" \
-a ! x"${runtime_set}" = x"true"; -a ! x"${runtime_set}" = x"true";
then then
echo ${ocarina_dir} -largs ${ocarina_lib} echo ${ocarina_dir} -largs ${ocarina_lib}
...@@ -183,6 +190,10 @@ if test x"${echo_libs}" = x"true"; then ...@@ -183,6 +190,10 @@ if test x"${echo_libs}" = x"true"; then
echo ${ocarina_lib} echo ${ocarina_lib}
fi fi
if test x"${echo_projects}" = x"true"; then
echo ${projects_w}
fi
if test x"${runtime_set}" = x"true"; then if test x"${runtime_set}" = x"true"; then
echo ${ocarina_runtime} echo ${ocarina_runtime}
fi fi
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