(library
 (name stog_server)
 (public_name stog_server)
 (wrapped true)
 (flags -g :standard -bin-annot -w -6-7-9-10-27-32-33-34-35-36-50-52 -no-strict-sequence)
 (libraries stog stog_server_types websocket xmldiff yojson ojs_base.server lwt.unix)
 (modules files http preview run ws main)
 (preprocess (pps lwt_ppx ocf_ppx xtmpl_ppx ppx_deriving_yojson ppx_blob))
 (preprocessor_deps
   (file stog_server_client_js.bc.js)
   (file stog-server-style.css)
 )
)

(library
 (package stog_server)
 (name stog_server_types)
 (wrapped true)
 (flags -g :standard -bin-annot -w -6-7-9-10-27-32-33-34-35-36-50-52 -no-strict-sequence)
 (libraries xtmpl xmldiff yojson)
 (modules types)
 (preprocess (pps ppx_deriving_yojson))
)

(executable
  (modes js)
  (name stog_server_client_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_base.js stog_server_types)
  (modules stog_server_client_js)
  (preprocess (pps js_of_ocaml-ppx))
)
