Skip to content

Commit

Permalink
CP-26717: Remove Camlp4 dependency, add rules to make gpumon CLI
Browse files Browse the repository at this point in the history
Signed-off-by: Akanksha Mathur <akanksha.mathur@citrix.com>
  • Loading branch information
Akanksha Mathur committed Feb 1, 2018
1 parent e65473a commit 8d1c99c
Showing 1 changed file with 13 additions and 18 deletions.
31 changes: 13 additions & 18 deletions gpumon/jbuild
Original file line number Diff line number Diff line change
Expand Up @@ -22,35 +22,30 @@ let coverage_rewriter =
else
""

let rewriters_camlp4 = ["rpclib.idl -syntax camlp4o"]
let rewriters_ppx = ["ppx_deriving_rpc"; "ppx_sexp_conv"]
let rewriters = ["ppx_deriving_rpc"]

let () = Printf.ksprintf Jbuild_plugin.V1.send {|
(jbuild_version 1)

(library
((name xapi_gpumon_interface)
(public_name xcp.gpumon.interface)
(modules (gpumon_interface))
(flags (:standard -w -39 %s))
(libraries
(rpclib
threads
xcp))
(wrapped false)
%s))

(library
((name xapi_gpumon)
(public_name xcp.gpumon)
(modules (:standard \ gpumon_interface))
(flags (:standard -w -39-33 %s))
(modules (:standard \ gpumon_cli ))
(libraries
(rpclib
threads
xcp
xapi_gpumon_interface))
xcp))
(wrapped false)
%s))

|} (flags rewriters_camlp4) coverage_rewriter (flags rewriters_ppx) coverage_rewriter
(executable
((name gpumon_cli)
(modules (gpumon_cli))
(libraries
(cmdliner
rpclib.cmdliner
rpclib.markdown
xcp.gpumon))))

|} (flags rewriters) coverage_rewriter

0 comments on commit 8d1c99c

Please sign in to comment.