Permalink
Browse files

Add flag all to _oasis

  • Loading branch information...
1 parent db13f6c commit 664c35145b189c298406ab9dce9dbb1ceccebbc8 @astrada committed Nov 11, 2012
Showing with 64 additions and 21 deletions.
  1. +14 −9 _oasis
  2. +50 −12 setup.ml
View
23 _oasis
@@ -14,14 +14,19 @@ BuildTools: ocamlbuild
Synopsis: A simple OCaml client for Google Services.
# Flags
+Flag all
+ Description: Build all
+ Default: false
+
+# Flags
Flag generator
Description: Build service generator
- Default: false
+ Default$: flag(all)
# Flags
Flag examples
Description: Build examples
- Default: false
+ Default$: flag(all)
# Libraries
Library "gapi-ocaml"
@@ -108,51 +113,51 @@ Document "gapi-ocaml"
# Executables
Executable "serviceGenerator"
- Build$: flag(generator)
+ Build$: flag(generator) || flag(all)
Path: tools
Install: false
MainIs: serviceGenerator.ml
BuildDepends: gapi-ocaml, monad
# Examples
Executable "oauth2Flow"
- Build$: flag(examples)
+ Build$: flag(examples) || flag(all)
Path: examples/auth
Install: false
MainIs: oauth2Flow.ml
BuildDepends: gapi-ocaml.gdata, nethttpd
Executable "oauth1Flow"
- Build$: flag(examples)
+ Build$: flag(examples) || flag(all)
Path: examples/auth
Install: false
MainIs: oauth1Flow.ml
BuildDepends: gapi-ocaml, nethttpd
Executable "clientLoginFlow"
- Build$: flag(examples)
+ Build$: flag(examples) || flag(all)
Path: examples/auth
Install: false
MainIs: clientLoginFlow.ml
BuildDepends: gapi-ocaml, nethttpd
# Tests
Executable "refreshOAuth2Token"
- Build$: flag(tests)
+ Build$: flag(tests) || flag(all)
Path: src/test
Install: false
MainIs: refreshOAuth2Token.ml
BuildDepends: gapi-ocaml, oUnit
Executable "test_suite"
- Build$: flag(tests)
+ Build$: flag(tests) || flag(all)
Path: src/test
Install: false
MainIs: testSuite.ml
BuildDepends: oUnit, gapi-ocaml.gdata
Test core
- Run$: flag(tests)
+ Run$: flag(tests) || flag(all)
Command: $test_suite
TestTools: test_suite
View
62 setup.ml
@@ -1,7 +1,7 @@
(* setup.ml generated for the first time by OASIS v0.2.1~alpha1 *)
(* OASIS_START *)
-(* DO NOT EDIT (digest: 04c92481e39fa316bfcf53512b17b966) *)
+(* DO NOT EDIT (digest: ec19eccfdf45c7eac9a8ee7dab844217) *)
(*
Regenerated by OASIS v0.3.0
Visit http://oasis.forge.ocamlcore.org for more information and
@@ -5799,13 +5799,27 @@ let setup_t =
[
Flag
({
+ cs_name = "all";
+ cs_data = PropList.Data.create ();
+ cs_plugin_data = [];
+ },
+ {
+ flag_description = Some "Build all";
+ flag_default = [(OASISExpr.EBool true, false)];
+ });
+ Flag
+ ({
cs_name = "generator";
cs_data = PropList.Data.create ();
cs_plugin_data = [];
},
{
flag_description = Some "Build service generator";
- flag_default = [(OASISExpr.EBool true, false)];
+ flag_default =
+ [
+ (OASISExpr.EBool true, false);
+ (OASISExpr.EFlag "all", true)
+ ];
});
Flag
({
@@ -5815,7 +5829,11 @@ let setup_t =
},
{
flag_description = Some "Build examples";
- flag_default = [(OASISExpr.EBool true, false)];
+ flag_default =
+ [
+ (OASISExpr.EBool true, false);
+ (OASISExpr.EFlag "all", true)
+ ];
});
Library
({
@@ -5994,7 +6012,10 @@ let setup_t =
bs_build =
[
(OASISExpr.EBool true, false);
- (OASISExpr.EFlag "generator", true)
+ (OASISExpr.EOr
+ (OASISExpr.EFlag "generator",
+ OASISExpr.EFlag "all"),
+ true)
];
bs_install = [(OASISExpr.EBool true, false)];
bs_path = "tools";
@@ -6028,7 +6049,10 @@ let setup_t =
bs_build =
[
(OASISExpr.EBool true, false);
- (OASISExpr.EFlag "examples", true)
+ (OASISExpr.EOr
+ (OASISExpr.EFlag "examples",
+ OASISExpr.EFlag "all"),
+ true)
];
bs_install = [(OASISExpr.EBool true, false)];
bs_path = "examples/auth";
@@ -6059,7 +6083,10 @@ let setup_t =
bs_build =
[
(OASISExpr.EBool true, false);
- (OASISExpr.EFlag "examples", true)
+ (OASISExpr.EOr
+ (OASISExpr.EFlag "examples",
+ OASISExpr.EFlag "all"),
+ true)
];
bs_install = [(OASISExpr.EBool true, false)];
bs_path = "examples/auth";
@@ -6090,7 +6117,10 @@ let setup_t =
bs_build =
[
(OASISExpr.EBool true, false);
- (OASISExpr.EFlag "examples", true)
+ (OASISExpr.EOr
+ (OASISExpr.EFlag "examples",
+ OASISExpr.EFlag "all"),
+ true)
];
bs_install = [(OASISExpr.EBool true, false)];
bs_path = "examples/auth";
@@ -6122,7 +6152,10 @@ let setup_t =
bs_build =
[
(OASISExpr.EBool true, false);
- (OASISExpr.EFlag "tests", true)
+ (OASISExpr.EOr
+ (OASISExpr.EFlag "tests",
+ OASISExpr.EFlag "all"),
+ true)
];
bs_install = [(OASISExpr.EBool true, false)];
bs_path = "src/test";
@@ -6156,7 +6189,10 @@ let setup_t =
bs_build =
[
(OASISExpr.EBool true, false);
- (OASISExpr.EFlag "tests", true)
+ (OASISExpr.EOr
+ (OASISExpr.EFlag "tests",
+ OASISExpr.EFlag "all"),
+ true)
];
bs_install = [(OASISExpr.EBool true, false)];
bs_path = "src/test";
@@ -6199,7 +6235,9 @@ let setup_t =
(OASISExpr.EFlag "tests", false);
(OASISExpr.EAnd
(OASISExpr.EFlag "tests",
- OASISExpr.EFlag "tests"),
+ OASISExpr.EOr
+ (OASISExpr.EFlag "tests",
+ OASISExpr.EFlag "all")),
true)
];
test_tools =
@@ -6232,14 +6270,14 @@ let setup_t =
};
oasis_fn = Some "_oasis";
oasis_version = "0.3.0";
- oasis_digest = Some "&\219^\180Y\022}\168(if\177\146\2055V";
+ oasis_digest = Some "\239(B\171l\186H\179\172\189rZw\021x\001";
oasis_exec = None;
oasis_setup_args = [];
setup_update = false;
};;
let setup () = BaseSetup.setup setup_t;;
-# 6244 "setup.ml"
+# 6282 "setup.ml"
(* OASIS_STOP *)
let () = setup ();;

0 comments on commit 664c351

Please sign in to comment.