Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
Ocarina
Commits
8ba6cf67
Commit
8ba6cf67
authored
Jan 25, 2015
by
yoogx
Browse files
* Generate Python tree accessors if Python build has been selected
parent
9fd04e85
Changes
2
Hide whitespace changes
Inline
Side-by-side
configure.ac
View file @
8ba6cf67
...
...
@@ -327,10 +327,12 @@ AC_ARG_ENABLE(python,
[ --enable-python Build Python bindings [default=no]],
[if [[ "$enableval" = "yes" ]]; then
PYTHON_PRJ=ocarina-python.gpr
PYTHON_TARGET=python_tree
fi],
[])
AC_SUBST(PYTHON_PRJ)
AC_SUBST(PYTHON_TARGET)
##########################################
# Some version control stuff
...
...
projects/Makefile.am
View file @
8ba6cf67
...
...
@@ -90,7 +90,7 @@ DISTCLEANFILES = \
PARALLEL_GNATMAKE_FLAGS
=
-j4
all-local
:
$(BUILD_DIRS) maybe-generate-tree-files $(BUILD_STAMPS)
all-local
:
$(BUILD_DIRS) maybe-generate-tree-files
$(PYTHON_TARGET)
$(BUILD_STAMPS)
$(BUILD_STAMPS)
:
%-build:
$(INIT_ADA_PROJECT_PATH)
$(GNATMAKE_FOR_TARGET)
\
...
...
@@ -165,6 +165,14 @@ $(top_builddir)/%.ads $(top_builddir)/%.adb: $(top_srcdir)/%.idl $(top_builddir)
mkdir
-p
${
dir
$@
}
touch
$*
.idl-stamp
python_tree
:
echo
"*****"
$(MKNODES_BUILD_DIR)
/mknodes
-t
python
$(top_srcdir)
/src/core/tree/ocarina-me_aadl-aadl_tree-nodes.idl
\
-D
$(top_builddir)
/src/python
$(MKNODES_BUILD_DIR)
/mknodes
-t
python
$(top_srcdir)
/src/core/tree/ocarina-me_aadl-aadl_instances-nodes.idl
\
-D
$(top_builddir)
/src/python
echo
"*****"
dist-hook
:
build-mknodes $(TREE_ADA_SPECS) $(TREE_ADA_BODIES)
debug-makefile
:
...
...
@@ -177,4 +185,3 @@ debug-makefile:
@
echo
"=========================================================="
@
echo
"TREE_ADA_BODIES =
$(TREE_ADA_BODIES)
"
@
echo
"=========================================================="
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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