(* -*- 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])