Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
Ocarina
Commits
1ce52033
Commit
1ce52033
authored
Feb 26, 2013
by
yoogx
Browse files
* Add --projects flag, return path to Ocarina project files
parent
8b08da94
Changes
1
Hide whitespace changes
Inline
Side-by-side
ocarina-config.in
View file @
1ce52033
...
...
@@ -5,6 +5,7 @@ work_dir=`pwd`
script_dir
=
`
dirname
$0
`
;
cd
${
script_dir
}
;
script_dir
=
`
pwd
`
prefix
=
"
${
script_dir
}
/.."
;
cd
${
prefix
}
;
prefix
=
`
pwd
`
;
prefix_w
=
`
@CYGPATH_W@
${
prefix
}
`
projects_w
=
`
@CYGPATH_W@
${
prefix
}
/lib/gnat
`
cd
${
work_dir
}
modules
=
"frontends backends"
...
...
@@ -34,6 +35,8 @@ Options:
of all runtimes.
[--libs]
Output the linker flags to use for Ocarina.
[--projects]
Output the path to GNAT Project files for Ocarina
[--properties]
Output the location of the standard property file.
[--resources]
...
...
@@ -97,6 +100,9 @@ while test $# -gt 0; do
--libs
)
echo_libs
=
true
;;
--projects
)
echo_projects
=
true
;;
--runtime
=
*
)
requested_runtime
=
${
optarg
}
...
...
@@ -163,6 +169,7 @@ if test ! x"${echo_prefix}" = x"true" \
-a
!
x
"
${
echo_exec_prefix
}
"
=
x
"true"
\
-a
!
x
"
${
echo_cflags
}
"
=
x
"true"
\
-a
!
x
"
${
echo_libs
}
"
=
x
"true"
\
-a
!
x
"
${
echo_projects
}
"
=
x
"true"
\
-a
!
x
"
${
runtime_set
}
"
=
x
"true"
;
then
echo
${
ocarina_dir
}
-largs
${
ocarina_lib
}
...
...
@@ -183,6 +190,10 @@ if test x"${echo_libs}" = x"true"; then
echo
${
ocarina_lib
}
fi
if
test
x
"
${
echo_projects
}
"
=
x
"true"
;
then
echo
${
projects_w
}
fi
if
test
x
"
${
runtime_set
}
"
=
x
"true"
;
then
echo
${
ocarina_runtime
}
fi
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment