Markus Mottl avatar Markus Mottl committed 27cea3c

Added support for conditional building of examples

Comments (0)

Files changed (2)

 
 # Examples
 
+Flag examples
+  Description:    Build examples
+  Default:        true
+
 Executable bnf
   Path:           examples/bnf
   MainIs:         bnf.ml
+  Build$:         flag(examples)
   BuildDepends:   cfg
   Install:        false
   CompiledObject: best
 (* setup.ml generated for the first time by OASIS v0.3.0 *)
 
 (* OASIS_START *)
-(* DO NOT EDIT (digest: faccb55398ffe88f9445b72d47cf5db2) *)
+(* DO NOT EDIT (digest: 470833964f075bb0812bae4a6238887d) *)
 (*
    Regenerated by OASIS v0.3.0
    Visit http://oasis.forge.ocamlcore.org for more information and
                       lib_findlib_name = Some "cfg";
                       lib_findlib_containers = [];
                       });
+               Flag
+                 ({
+                     cs_name = "examples";
+                     cs_data = PropList.Data.create ();
+                     cs_plugin_data = [];
+                     },
+                   {
+                      flag_description = Some "Build examples";
+                      flag_default = [(OASISExpr.EBool true, true)];
+                      });
                Executable
                  ({
                      cs_name = "bnf";
                      cs_plugin_data = [];
                      },
                    {
-                      bs_build = [(OASISExpr.EBool true, true)];
+                      bs_build =
+                        [
+                           (OASISExpr.EBool true, false);
+                           (OASISExpr.EFlag "examples", true)
+                        ];
                       bs_install = [(OASISExpr.EBool true, false)];
                       bs_path = "examples/bnf";
                       bs_compiled_object = Best;
           };
      oasis_fn = Some "_oasis";
      oasis_version = "0.3.0";
-     oasis_digest = Some "l{>��NA��ٳC�P�\152";
+     oasis_digest = Some "��\155h}\029&�~�jBj\017Ӳ";
      oasis_exec = None;
      oasis_setup_args = [];
      setup_update = false;
 
 let setup () = BaseSetup.setup setup_t;;
 
-# 5777 "setup.ml"
+# 5791 "setup.ml"
 (* OASIS_STOP *)
 let () = setup ();;
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.