Skip to content

Question - I can not figure out how to reference exported files from other repos.Β #21

@tenspd137

Description

@tenspd137

I am trying to make a repo that contains data files to be used across projects. For example:

genrule(
    name = "copy_data_files",
    srcs = ["@my_resource_repo//doxygen:resources/doxygen/header.html"],
    outs = ["header.html"],
    cmd = "cp $(SRCS) $(OUTS)"
)

doxygen(
    name = "doxygen_test",
    srcs = glob([
        "*.h",
        "*.cpp",
    ], allow_empty = True,),
    aliases = [
        "licence=@par Licence:^^",
        "verb{1}=@verbatim \\1 @endverbatim",
    ],
    project_brief = "Example project for doxygen",
    project_name = "example",
    recursive = True,
    input = "src",
    tags = ["manual"],
    html_header = "@my_resource_repo//doxygen:resources/doxygen/header.html"
)

So - I know I can find the file - header.html ends up in bazel-bin. What I can't figure out is how I get ""@my_resource_repo//doxygen:resources/doxygen/header.html" to resolve to the actual file for doxygen to use in the doxygen rules.

Is this supported?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions