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.

32 lines
967 B

(* -*- 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 clang =
Printf.sprintf
{|(library
(name ClangFrontend)
(public_name infer.ClangFrontend)
(modules %s)
(flags
(:standard
-open Core -open IStdlib -open IStd -open OpenSource -open ATDGenerated
-open IBase -open IR -open Absint -open Checkers -open TestDeterminators
-open Biabduction -open Backend))
(libraries oUnit core IStdlib ATDGenerated IBase IR Absint Checkers
TestDeterminators Biabduction Backend)
(preprocess (pps ppx_compare))
)|}
(if clang then ":standard \\ ClangFrontendStubs" else "ClangFrontendStubs")
let documentation = "(documentation (package infer) (mld_files ClangFrontend))"
;;
Jbuild_plugin.V1.send (String.concat "\n" [clang; documentation])