File tree 1 file changed +11
-1
lines changed 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,14 @@ def _swift_doxygen_impl(ctx):
20
20
21
21
config = configure_file_impl (ctx , vars , ctx .attr .name + "_Doxyfile" )[0 ].files .to_list ()[0 ]
22
22
23
+ input_dir = ""
24
+ if "PROJECT_SOURCE_DIR" in vars :
25
+ input_dir = vars ["PROJECT_SOURCE_DIR" ]
26
+
27
+ project_name = ""
28
+ if "PROJECT_NAME" in vars :
29
+ project_name = vars ["PROJECT_NAME" ]
30
+
23
31
ctx .actions .run_shell (
24
32
inputs = [config ] + ctx .files .deps ,
25
33
outputs = [doxygen_out ],
@@ -36,9 +44,11 @@ def _swift_doxygen_impl(ctx):
36
44
sed -i "s|@DOXYGEN_DOT_FOUND@|$DOXYGEN_DOT_FOUND|g" {config}
37
45
sed -i "s|@DOXYGEN_DOT_PATH@|$DOXYGEN_DOT_PATH|g" {config}
38
46
sed -i "s|@PLANTUML_JAR_PATH@|/usr/local/bin/plantuml.jar|g" {config}
47
+ sed -i "s|@INPUT_DIR@|{input_dir}|g" {config}
48
+ sed -i "s|@PROJECT_NAME@|{project_name}|g" {config}
39
49
40
50
PATH=$PATH doxygen {config}
41
- """ .format (config = config .path ),
51
+ """ .format (config = config .path , input_dir = input_dir , project_name = project_name ),
42
52
)
43
53
44
54
return [DefaultInfo (files = depset ([doxygen_out , config ]))]
You can’t perform that action at this time.
0 commit comments