Skip to content

Commit 7953204

Browse files
committed
omake: Completely remove all UseCamlp4 definitions
As they aren't required anymore - we've switched to ppx-based syntax extensions. This commit corresponds to 773dbc9 on master. Signed-off-by: Gabor Igloi <[email protected]>
1 parent b4ed68c commit 7953204

File tree

8 files changed

+0
-33
lines changed

8 files changed

+0
-33
lines changed

OMakeroot

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -74,17 +74,6 @@ OCamlLibraryClib(name, files, clibs) =
7474

7575
return $(array $(if $(NATIVE_ENABLED), $(NATIVELIB)), $(if $(NATIVE_ENABLED), $(CLIB)), $(if $(BYTE_ENABLED), $(BYTELIB)))
7676

77-
#
78-
# Use Camlp4
79-
#
80-
UseCamlp4(packs, files) =
81-
OCAMLPACKS += $(packs)
82-
OCAMLFINDFLAGS += -syntax camlp4o
83-
$(addsuffix .cmx, $(files)):
84-
$(addsuffix .o, $(files)):
85-
$(addsuffix .cmi, $(files)):
86-
$(addsuffix .cmo, $(files)):
87-
8877
#
8978
# Include the OMakefile in this directory.
9079
#

ocaml/autogen/OMakefile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ OCAMLPACKS = xml-light2 sexpr http-svr xcp rpclib
77
clean:
88
rm -rf *.*
99

10-
UseCamlp4(rpclib.syntax, aPI)
11-
1210
DB_ACTIONS_FILES = db_actions $(AUTOGEN_HELPER_DIR)/string_unmarshall_helper $(AUTOGEN_HELPER_DIR)/string_marshall_helper $(AUTOGEN_HELPER_DIR)/db_action_helper $(AUTOGEN_HELPER_DIR)/db_remote_marshall $(AUTOGEN_HELPER_DIR)/db_filter_types $(AUTOGEN_HELPER_DIR)/db_filter $(AUTOGEN_HELPER_DIR)/db_filter_parse $(AUTOGEN_HELPER_DIR)/db_filter_lex
1311
OCamlProgram(db_actions, $(DB_ACTIONS_FILES))
1412

ocaml/doc/OMakefile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
OCAML_LIBS += ../idl/datamodel
22
OCAMLINCLUDES += ../idl
33

4-
CAMLP4_FILES = jsapi
5-
UseCamlp4(rpclib.syntax, $(CAMLP4_FILES))
6-
74
OCamlProgram(jsapi, jsapi)
85

96
.PHONY: doc-html

ocaml/idl/OMakefile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@ PSTOPDF = $(shell bash -c "which pstopdf 2>/dev/null || which ps2pdf 2>/dev/null
55
OCAMLINCLUDES = ocaml_backend ../database
66
OCAMLPACKS = xml-light2 sexpr xcp rpclib http-svr uuid
77

8-
CAMLP4_FILES = datamodel_types
9-
10-
UseCamlp4(rpclib.syntax, $(CAMLP4_FILES))
11-
128
# -----------------------------------------------------------------------
139
# Build datamodel library
1410
# -----------------------------------------------------------------------

ocaml/idl/json_backend/OMakefile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ OCAML_LIBS += ../datamodel
44

55
OCamlProgram(main, main)
66

7-
CAMLP4_FILES = main
8-
UseCamlp4(rpclib.syntax, $(CAMLP4_FILES))
9-
107
.PHONY: clean
118
clean:
129
rm -f *~ *.opt *.run *.a *.cma *.cmxa *.cmo *.cmi *.o *.cmx *.omc *.annot main *.json

ocaml/idl/ocaml_backend/OMakefile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@ OCAMLINCLUDES += ../.. ../../database $(AUTOGEN_DIR) ../../xapi ../../client_rec
1111

1212
OCAMLPACKS += sexpr xml-light2 http-svr rpclib stunnel
1313

14-
CAMLP4_FILES = event_types
15-
16-
UseCamlp4(rpclib.syntax, $(CAMLP4_FILES))
17-
1814
# only gen_api requires datamodel library:
1915
GEN_API_FILES = gen_api gen_test genOCaml ref ocaml_syntax gen_db_actions gen_db_check gen_empty_custom gen_client gen_server gen_common gen_rbac ../../database/escaping locking ../api_lowlevel gen_api_main ../datamodel ../constants ../api_errors ../api_messages ../datamodel_utils ../datamodel_values ocaml_utils ../datamodel_types ../dm_api $(AUTOGEN_HELPER_DIR)/string_marshall_helper
2016
OCamlProgram(gen_api_main, $(GEN_API_FILES))

ocaml/license/OMakefile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ OCAML_LIBS = ../util/xapi_version ../idl/ocaml_backend/xapi_client
22
OCAMLINCLUDES = ../idl/ocaml_backend ../idl ../autogen ../xapi ../gpg ../util
33
OCAMLPACKS = xml-light2 stdext stunnel http-svr xcp rpclib uuid systemd
44

5-
UseCamlp4(rpclib.syntax, v6rpc v6errors)
6-
75
# Name of programs to install in dom0:
86
DAILY_LICENSE_CHECK = daily-license-check
97

ocaml/xapi/OMakefile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@ OCAMLINCLUDES = ../idl ../idl/ocaml_backend \
1111
../xva ../util \
1212
../auth ../license ../client_records ../rfb ../gpg
1313

14-
UseCamlp4(rpclib.syntax, features storage_impl xapi_udhcpd storage_migrate \
15-
xapi_services system_domains cancel_tests config_file_sync updates \
16-
sparse_dd_wrapper vhd_tool_wrapper)
17-
1814
CFLAGS += -std=gnu99 -Wall -Werror -I$(shell ocamlc -where)
1915

2016
#XENLIGHT_LINK_FLAGS= -cclib -lxlutil -cclib -luuid -cclib -lblktapctl -cclib -lutil -cclib -lxenlight -cclib -lxenstore

0 commit comments

Comments
 (0)