Skip to content
Snippets Groups Projects
Commit 9b614100 authored by Allan Blanchard's avatar Allan Blanchard
Browse files

[Ivette] move API generator

parent 0a63c0e6
No related branches found
No related tags found
No related merge requests found
...@@ -559,20 +559,22 @@ let makePackage pkg path fmt = ...@@ -559,20 +559,22 @@ let makePackage pkg path fmt =
(* -------------------------------------------------------------------------- *) (* -------------------------------------------------------------------------- *)
let generate () = let generate () =
begin if TSC.get () then
Pkg.iter begin
begin fun pkg -> Pkg.iter
let path = pkg_path ~plugin:pkg.p_plugin ~package:pkg.p_package in begin fun pkg ->
Self.feedback "Package %s" path ; let path = pkg_path ~plugin:pkg.p_plugin ~package:pkg.p_package in
let out = OUT.get () in Self.feedback "Package %s" path ;
let file = Printf.sprintf "%s/%s/index.ts" out path in let out = OUT.get () in
let dir = Filename.dirname file in let file = Printf.sprintf "%s/%s/index.ts" out path in
if not (Sys.file_exists dir && Sys.is_directory dir) then let dir = Filename.dirname file in
Extlib.mkdir ~parents:true dir 0o755 ; if not (Sys.file_exists dir && Sys.is_directory dir) then
Command.print_file file (makePackage pkg path) ; Extlib.mkdir ~parents:true dir 0o755 ;
end Command.print_file file (makePackage pkg path) ;
end end
end
let () = Db.Main.extend generate
let () =
Db.Main.extend generate
(* -------------------------------------------------------------------------- *) (* -------------------------------------------------------------------------- *)
( library
(name api_generator)
(public_name frama-c-api-generator.core)
(flags -open Frama_c_kernel :standard -w -9)
(libraries frama-c.kernel frama-c-server.core)
)
(plugin (optional) (name api_generator) (libraries frama-c-api-generator.core) (site (frama-c plugins)))
(lang dune 2.8)
(name frama-c-api-generator)
(using dune_site 0.1)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment