Source

ocaml-minigames / myocamlbuild.ml

open Ocamlbuild_plugin

let sdl_libs = ["bigarray"; "sdl"; "sdlloader"; "sdlttf"; "sdlmixer"]

let sdl_flags = ["-I"; "+sdl"]

let _ =
  (* 
  Options.ocamlc := S [ A "ocp-ocamlc.opt" ];
  Options.ocamlopt := S [ A "ocp-ocamlopt.opt" ];
  *)
  Options.include_dirs := ["maze"; "mills"; "memory"];
  Options.ocaml_libs := sdl_libs @ ["unix"];
  Options.ocaml_cflags := sdl_flags;
  Options.ocaml_lflags := sdl_flags