{"id":19436424,"url":"https://github.com/beached/glean","last_synced_at":"2025-02-25T06:46:47.699Z","repository":{"id":149955337,"uuid":"68555019","full_name":"beached/glean","owner":"beached","description":"Dependency management, with a focus on source","archived":false,"fork":false,"pushed_at":"2020-01-06T01:57:36.000Z","size":232,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-07T21:12:33.876Z","etag":null,"topics":["cmake","cpp","dependencies","dependency","git"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/beached.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2016-09-19T00:22:34.000Z","updated_at":"2020-01-06T01:57:38.000Z","dependencies_parsed_at":"2023-05-05T06:19:10.133Z","dependency_job_id":null,"html_url":"https://github.com/beached/glean","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beached%2Fglean","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beached%2Fglean/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beached%2Fglean/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beached%2Fglean/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/beached","download_url":"https://codeload.github.com/beached/glean/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240619430,"owners_count":19830204,"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":["cmake","cpp","dependencies","dependency","git"],"created_at":"2024-11-10T15:11:06.463Z","updated_at":"2025-02-25T06:46:47.666Z","avatar_url":"https://github.com/beached.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Glean\n## Dependency management, with a focus on source\n\nDefine your projects dependencies in a simple JSON file.  Currently, git and cmake are supported with partial svn support.  \n\nA project an express their dependencies in a `glean.json` file in the root of their project.  It has a format like\n\n```JSON\n{\n\t\"provides\": \"glean\",\n\t\"build_type\": \"cmake\",\n\t\"dependencies\": [ \n\t\t{\n\t\t\t\"name\": \"header_libraries\",\n\t\t\t\"download_type\": \"git\",\n\t\t\t\"build_type\": \"cmake\",\n\t\t\t\"uri\": \"https://github.com/beached/header_libraries\",\n\t\t\t\"version\": \"tag_branch_or_revision\"\n\t\t},\n\t\t{\n\t\t\t\"name\": \"libtemp_file\",\n\t\t\t\"download_type\": \"git\",\n\t\t\t\"build_type\": \"cmake\",\n\t\t\t\"uri\": \"https://github.com/beached/libtemp_file\"\n\t\t},\n\t\t{\n\t\t\t\"name\": \"daw_json_link\",\n\t\t\t\"download_type\": \"git\",\n\t\t\t\"build_type\": \"cmake\",\n\t\t\t\"uri\": \"https://github.com/beached/daw_json_link\"\n\t\t},\n\t\t{\n\t\t\t\"name\": \"utf_range\",\n\t\t\t\"download_type\": \"git\",\n\t\t\t\"build_type\": \"cmake\",\n\t\t\t\"uri\": \"https://github.com/beached/utf_range\"\n\t\t}\n\t]\n}\n```\nThis will dowload each of the dependencies and recursively scan for a glean.json file.  Currently, duplicates are not supported and take the first one seen.\n\nThe inside a cmake project one can put something along the lines of \n```\nif( \"${CMAKE_BUILD_TYPE}\" STREQUAL \"Debug\" )\n\tset( GLEAN_CACHE \"${CMAKE_SOURCE_DIR}/.glean/debug\" )\nelse( )\n\tset( GLEAN_CACHE \"${CMAKE_SOURCE_DIR}/.glean/release\" )\nendif( )\ninclude_directories( SYSTEM \"${GLEAN_CACHE}/include\" )\nlink_directories( \"${GLEAN_CACHE}/lib\" )\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeached%2Fglean","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbeached%2Fglean","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeached%2Fglean/lists"}