commit f727fc49ca62a83eb483e6fbe99a03cc7189bdc7 Author: Andreas Gaeb Date: Mon Jan 3 13:50:39 2011 +0100 Add jsbsim to default module targets diff --git a/sw/tools/gen_common.ml b/sw/tools/gen_common.ml index a1c30c5..fe8bf9e 100644 --- a/sw/tools/gen_common.ml +++ b/sw/tools/gen_common.ml @@ -81,7 +81,7 @@ let get_module_conf = fun m -> let get_targets_of_module = fun m -> let pipe_regexp = Str.regexp "|" in let targets_of_field = fun field -> try - Str.split pipe_regexp (ExtXml.attrib_or_default field "target" "ap|sim") with _ -> [] in + Str.split pipe_regexp (ExtXml.attrib_or_default field "target" "ap|sim|jsbsim") with _ -> [] in let targets = List.map (fun x -> match String.lowercase (Xml.tag x) with "makefile" -> targets_of_field x @@ -123,11 +123,11 @@ let get_modules_name = fun xml -> (** [targets_of_field] * Returns the targets of a makefile node in modules - * Default "ap|sim" *) + * Default "ap|sim|jsbsim" *) let pipe_regexp = Str.regexp "|" let targets_of_field = fun field -> try - Str.split pipe_regexp (ExtXml.attrib_or_default field "target" "ap|sim") + Str.split pipe_regexp (ExtXml.attrib_or_default field "target" "ap|sim|jsbsim") with _ -> []