{"id":27900710,"url":"https://github.com/comradeprogrammer/simplecpptest","last_synced_at":"2026-01-24T21:08:19.668Z","repository":{"id":289277222,"uuid":"970718144","full_name":"ComradeProgrammer/simpleCppTest","owner":"ComradeProgrammer","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-22T12:39:27.000Z","size":31,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-05T20:19:06.517Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Starlark","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ComradeProgrammer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-22T12:38:19.000Z","updated_at":"2025-04-22T12:39:31.000Z","dependencies_parsed_at":"2025-04-22T13:48:43.838Z","dependency_job_id":"4f769107-3774-4fc1-8b59-c40ab61d635c","html_url":"https://github.com/ComradeProgrammer/simpleCppTest","commit_stats":null,"previous_names":["comradeprogrammer/simplecpptest"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ComradeProgrammer%2FsimpleCppTest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ComradeProgrammer%2FsimpleCppTest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ComradeProgrammer%2FsimpleCppTest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ComradeProgrammer%2FsimpleCppTest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ComradeProgrammer","download_url":"https://codeload.github.com/ComradeProgrammer/simpleCppTest/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252569637,"owners_count":21769517,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-05-05T20:19:19.309Z","updated_at":"2026-01-24T21:08:19.625Z","avatar_url":"https://github.com/ComradeProgrammer.png","language":"Starlark","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Stage 3\n\nIn this stage we step it up and showcase how to integrate multiple ```cc_library``` targets from different packages.\n\nBelow, we see a similar configuration from Stage 2, except that this BUILD file is in a subdirectory called lib. In Bazel, subdirectories containing BUILD files are known as packages. The new property ```visibility``` will tell Bazel which package(s) can reference this target, in this case the ```//main``` package can use ```hello-time``` library. \n\n```\ncc_library(\n    name = \"hello-time\",\n    srcs = [\"hello-time.cc\"],\n    hdrs = [\"hello-time.h\"],\n    visibility = [\"//main:__pkg__\"],\n)\n```\n\nTo use our ```hello-time``` library, an extra dependency is added in the form of //path/to/package:target_name, in this case, it's ```//lib:hello-time```\n\n```\ncc_binary(\n    name = \"hello-world\",\n    srcs = [\"hello-world.cc\"],\n    deps = [\n        \":hello-greet\",\n        \"//lib:hello-time\",\n    ],\n)\n```\n\nTo build this example, use\n```\nbazel build //main:hello-world\n```\n# simpleCppTest\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomradeprogrammer%2Fsimplecpptest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcomradeprogrammer%2Fsimplecpptest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomradeprogrammer%2Fsimplecpptest/lists"}