Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Lustrec - public version
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LustreC
Lustrec - public version
Commits
3b4b7a2e
Commit
3b4b7a2e
authored
7 years ago
by
GARION Christophe
Browse files
Options
Downloads
Patches
Plain Diff
[lustresf] lustresf targets are optional in Makefiles (see configure.ac)
parent
61e2b4b7
No related branches found
No related tags found
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
Makefile-lustresf.in
+7
-0
7 additions, 0 deletions
Makefile-lustresf.in
Makefile.in
+1
-7
1 addition, 7 deletions
Makefile.in
configure.ac
+30
-8
30 additions, 8 deletions
configure.ac
src/Makefile-lustresf.in
+19
-0
19 additions, 0 deletions
src/Makefile-lustresf.in
src/Makefile.in
+1
-19
1 addition, 19 deletions
src/Makefile.in
with
58 additions
and
34 deletions
Makefile-lustresf.in
0 → 100644
+
7
−
0
View file @
3b4b7a2e
lustresf:
@echo Compiling binary lustresf
@make -C src lustresf
json-parser:
@echo Compiling binary json-parser
@make -C src json-parser
This diff is collapsed.
Click to expand it.
Makefile.in
+
1
−
7
View file @
3b4b7a2e
...
...
@@ -21,13 +21,7 @@ lustret:
@
echo
Compiling binary lustret
@
make
-C
src lustret
lustresf
:
@
echo
Compiling binary lustresf
@
make
-C
src lustresf
json-parser
:
@
echo
Compiling binary json-parser
@
make
-C
src json-parser
@lustresf@
configure
:
configure.ac
@
echo
configure.ac has changed relaunching autoconf
...
...
This diff is collapsed.
Click to expand it.
configure.ac
+
30
−
8
View file @
3b4b7a2e
...
...
@@ -61,13 +61,6 @@ AS_IF([ocamlfind query ocamlgraph >/dev/null 2>&1],
)
AC_MSG_RESULT(yes)
#Yojson
AC_MSG_CHECKING(yojson library)
AS_IF([ocamlfind query yojson >/dev/null 2>&1],
[],[AC_MSG_ERROR(yojson required. opam install yojson should solve the issue)],
)
AC_MSG_RESULT(yes)
# logging and command line librairies
AC_MSG_CHECKING(cmdliner library)
AS_IF([ocamlfind query cmdliner >/dev/null 2>&1],
...
...
@@ -81,11 +74,16 @@ AS_IF([ocamlfind query fmt logs >/dev/null 2>&1],
)
AC_MSG_RESULT(yes)
#Yojson
AC_MSG_CHECKING(yojson library)
AS_IF([ocamlfind query yojson >/dev/null 2>&1],
[yojson=yes; AC_MSG_RESULT(yes)],[yojson=no; AC_MSG_WARN(Yojson required for lustresf. opam install yojson should solve the issue)],
)
# Salsa
AC_ARG_ENABLE(salsa, [AS_HELP_STRING([--disable-salsa],
[disable Salsa plugin. Enabled by default if available.])])
AC_MSG_CHECKING(salsa library)
AS_IF([ocamlfind query salsa >/dev/null 2>&1],
[salsa=yes; AC_MSG_RESULT(yes)],[salsa=no; AC_MSG_WARN(no)]
...
...
@@ -110,6 +108,19 @@ AC_CHECK_LIB(mpfr, mpfr_add, [mpfr=yes],
[MPFR not found])
mpfr=no])
# lustresf
AC_ARG_ENABLE(lustresf, [AS_HELP_STRING([--disable-lustresf],
[disable lustresf compilation. Enabled by default.])])
AC_SUBST_FILE(lustresf)
AC_SUBST_FILE(lustresf_src)
lustresf=/dev/null
lustresf_src=/dev/null
AS_IF([test "x$enable_lustresf" != "xno" -a "x$yojson" = "xyes"], [
lustresf=Makefile-lustresf.in
lustresf_src=src/Makefile-lustresf.in
])
# Checking availability of path to regression tests
tests_path="../lustrec-tests/regression_tests"
...
...
@@ -181,6 +192,17 @@ AC_MSG_NOTICE(******** Plugins ********)
else
AC_MSG_NOTICE([Salsa plugin disabled])
fi
if (test "x$yojson" = xyes -a "x$enable_lustresf" != "xno"); then
AC_MSG_NOTICE([lustresf available])
else
if (test "x$enable_lustresf" = "xno"); then
AC_MSG_NOTICE([lustresf not available (you explicitely disabled it)])
else
AC_MSG_NOTICE([lustresf not available])
fi
fi
AC_MSG_NOTICE(****** Regression Tests ******)
if (test "x$valid_test_path" = xfalse); then
AC_MSG_NOTICE(no valid tests path provided ($tests_path))
...
...
This diff is collapsed.
Click to expand it.
src/Makefile-lustresf.in
0 → 100644
+
19
−
0
View file @
3b4b7a2e
lustresf:
@echo Compiling binary lustresf
@$(OCAMLBUILD) tools/stateflow/sf_sem.native
@mkdir -p $(LOCAL_BINDIR)
@mv _build/tools/stateflow/sf_sem.native $(LOCAL_BINDIR)/lustresf
json-parser:
@echo Compiling binary json-parser-ex
@$(OCAMLBUILD) tools/stateflow/json-parser/main_parse_json_file.native
@mkdir -p $(LOCAL_BINDIR)
@mv _build/tools/stateflow/json-parser/main_parse_json_file.native $(LOCAL_BINDIR)/json-parser
tests: test-simple-var
test-simple-var:
@echo Compiling simple tests for JSON parser -- tests on variables
@$(OCAMLBUILD) tools/stateflow/json-parser/test_json_parser_variables.native
@echo Lauching simple tests for JSON parser -- tests on variables
./_build/tools/stateflow/json-parser/test_json_parser_variables.native
This diff is collapsed.
Click to expand it.
src/Makefile.in
+
1
−
19
View file @
3b4b7a2e
...
...
@@ -24,25 +24,7 @@ lustret:
@
mkdir
-p
$(
LOCAL_BINDIR
)
@
mv
_build/main_lustre_testgen.native
$(
LOCAL_BINDIR
)
/lustret
lustresf
:
@
echo
Compiling binary lustresf
@$(
OCAMLBUILD
)
tools/stateflow/sf_sem.native
@
mkdir
-p
$(
LOCAL_BINDIR
)
@
mv
_build/tools/stateflow/sf_sem.native
$(
LOCAL_BINDIR
)
/lustresf
json-parser
:
@
echo
Compiling binary json-parser-ex
@$(
OCAMLBUILD
)
tools/stateflow/json-parser/main_parse_json_file.native
@
mkdir
-p
$(
LOCAL_BINDIR
)
@
mv
_build/tools/stateflow/json-parser/main_parse_json_file.native
$(
LOCAL_BINDIR
)
/json-parser
tests
:
test-simple-var
test-simple-var
:
@
echo
Compiling simple tests
for
JSON parser
--
tests on variables
@$(
OCAMLBUILD
)
tools/stateflow/json-parser/test_json_parser_variables.native
@
echo
Lauching simple tests
for
JSON parser
--
tests on variables
./_build/tools/stateflow/json-parser/test_json_parser_variables.native
@lustresf_src@
doc
:
@
echo
Generating doc
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment