def generate_jvpp(root_dir, model, logger): base_dir = "%s/target/%s" % (root_dir, model.plugin_package.replace(".", "/")) generate_types(_work_dir(base_dir, "types"), model, logger) generate_dtos(_work_dir(base_dir, "dto"), model, logger) generate_java_ifc(_work_dir(base_dir), model, logger) generate_java_impl(_work_dir(base_dir), model, logger) generate_callbacks(_work_dir(base_dir, "callback"), model, logger) generate_jni(root_dir, model, logger) generate_notifications(_work_dir(base_dir, "notification"), model, logger) generate_future_facade(_work_dir(base_dir, "future"), model, logger) generate_callback_facade(_work_dir(base_dir, "callfacade"), model, logger)
types_package = 'types' dto_package = 'dto' callback_package = 'callback' notification_package = 'notification' future_package = 'future' # TODO find better package name callback_facade_package = 'callfacade' types_list, types_name = get_definitions(cfg['types']) types_gen.generate_types(types_list, plugin_package, types_package, args.inputfiles) func_list, func_name = get_definitions(cfg['messages']) dto_gen.generate_dtos(func_list, base_package, plugin_package, plugin_name.title(), dto_package, args.inputfiles) jvpp_impl_gen.generate_jvpp(func_list, base_package, plugin_package, plugin_name, dto_package, args.inputfiles) callback_gen.generate_callbacks(func_list, base_package, plugin_package, plugin_name.title(), callback_package, dto_package, args.inputfiles) notification_gen.generate_notification_registry(func_list, base_package, plugin_package, plugin_name.title(), notification_package, callback_package, dto_package, args.inputfiles) jvpp_c_gen.generate_jvpp(func_list, plugin_name, args.inputfiles, root_dir) jvpp_future_facade_gen.generate_jvpp(func_list, base_package, plugin_package, plugin_name.title(), dto_package, callback_package, notification_package,