You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.1 KiB

(* -*- tuareg -*- *)
(*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
(* NOTE: prepend dune.common to this file! *)
let lexer = "(ocamllex jSourceLexer jSourceFileInfo)"
let jparser = "(menhir (modules jSourceParser))"
let java =
Printf.sprintf
{|(library
(name JavaFrontend)
(public_name infer.JavaFrontend)
(modules %s)
(flags
(:standard
-open Core -open IStdlib -open IStd -open OpenSource -open ATDGenerated
-open IBase -open IR -open Absint -open Biabduction -open Backend))
(libraries %s core IStdlib ATDGenerated IBase IR Absint Biabduction Backend)
(preprocess (pps ppx_compare))
)|}
(if java then ":standard \\ JavaFrontendStubs" else "JavaFrontendStubs")
(* do not add dependencies on javalib and sawja to the non-Java builds *)
(if java then "javalib sawja" else "")
let documentation = "(documentation (package infer) (mld_files JavaFrontend))"
;;
Jbuild_plugin.V1.send (String.concat "\n" [lexer; jparser; java; documentation])