(library
 (name stog_server_multi)
 (public_name stog_server_multi)
 (wrapped true)
 (flags -g :standard -bin-annot -w -6-7-9-10-27-32-33-34-35-36-50-52 -no-strict-sequence)
 (libraries cryptokit stog stog_server stog_multi_ed_common websocket xmldiff yojson ojs_base.server ojs_filetree.server ojs_ed.server lwt.unix)
 (modules config ed git_server gs multi page session user ws)
 (preprocess (pps lwt_ppx ocf_ppx xtmpl_ppx ojs_base_ppx ppx_blob ppx_deriving_yojson))
 (preprocessor_deps
  (file stog_multi_ed_js.bc.js)
  (glob_files templates/*))
)

(library
 (name stog_multi_ed_common)
 (package stog_server_multi)
 (wrapped true)
 (flags -g :standard -bin-annot -w -6-7-9-10-27-32-33-34-35-36-39-50-52 -no-strict-sequence)
 (libraries ojs_base ojs_filetree ojs_ed xtmpl xmldiff yojson)
 (modules git git_status types)
 (preprocess (pps ppx_deriving_yojson))
)

(executable
  (modes js)
  (name stog_multi_ed_js)
  (flags -g :standard -w -6-7-9-32-33-34-35-36-50-52-26-27 -no-strict-sequence -rectypes -bin-annot -linkall)
  (libraries js_of_ocaml xmldiff_js yojson xtmpl_js ojs_filetree.js ojs_list.js ojs_ed.js stog_server_types stog_multi_ed_common)
  (modules stog_git_js stog_multi_ed_js)
  (preprocess (pps js_of_ocaml-ppx))
)
