{"id":30193201,"url":"https://github.com/google/cdep","last_synced_at":"2025-08-13T01:23:40.543Z","repository":{"id":47663435,"uuid":"84880723","full_name":"google/cdep","owner":"google","description":"CDep is a decentralized native package dependency manager with a focus on Android. Runs on Windows, Linux, and MacOS.","archived":false,"fork":false,"pushed_at":"2023-06-20T18:55:06.000Z","size":31317,"stargazers_count":100,"open_issues_count":27,"forks_count":21,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-08-12T15:56:39.881Z","etag":null,"topics":["android"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/google.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2017-03-13T22:29:59.000Z","updated_at":"2025-05-14T17:08:16.000Z","dependencies_parsed_at":"2022-09-07T09:30:52.515Z","dependency_job_id":"98507e09-e808-4ca8-9a47-028450b24325","html_url":"https://github.com/google/cdep","commit_stats":null,"previous_names":[],"tags_count":29,"template":false,"template_full_name":null,"purl":"pkg:github/google/cdep","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google%2Fcdep","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google%2Fcdep/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google%2Fcdep/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google%2Fcdep/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/google","download_url":"https://codeload.github.com/google/cdep/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google%2Fcdep/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270110636,"owners_count":24529117,"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","status":"online","status_checked_at":"2025-08-12T02:00:09.011Z","response_time":80,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["android"],"created_at":"2025-08-13T01:23:39.877Z","updated_at":"2025-08-13T01:23:40.511Z","avatar_url":"https://github.com/google.png","language":"Java","funding_links":[],"categories":["包管理器"],"sub_categories":["微服务框架"],"readme":"[![Build Status](https://travis-ci.org/google/cdep.svg?branch=master)](https://travis-ci.org/google/cdep)\n[![Gitter](https://badges.gitter.im/google-cdep/Lobby.svg)](https://gitter.im/google-cdep/Lobby)\n\n# CDep\nCDep is a decentralized native package dependency manager with a focus on Android. \n- Runs on Windows, Linux, and MacOS \n- Works with [Android Studio](https://d.android.com/studio/index.html), CMake, and [ndk-build](https://d.android.com/ndk/guides/ndk-build.html). CMake support is for both [Android Studio version of CMake](https://developer.android.com/studio/projects/add-native-code.html) and the built-in Android support that was added to CMake in version 3.7.1.\n\nAnyone can author a package and there is a growing list of useful packages, such as [Freetype 2.0](https://github.com/jomof/freetype), [SDL](https://github.com/jomof/sdl), [ShaderC](https://github.com/ggfan/shaderc/releases), [STB](https://github.com/jomof/stb), [RE2 Regular Expressions](https://github.com/jomof/re2), [Firebase](https://github.com/jomof/firebase), [MathFu](https://github.com/jomof/mathfu), [Vectorial](https://github.com/jomof/vectorial), [Boost](https://github.com/jomof/boost), [Yaml-CPP](https://github.com/jomof/yaml-cpp), [SQLite](https://github.com/jomof/sqlite), [LUA](https://github.com/jomof/lua).\n   \nCDep comes from members of the Android Studio team and is not an official Google product. It is a work in progress and subject to change over time. Backward compatibility with existing packages will be maintained.\n   \n## Get started with CDep\nHere are some things you can do to get started with CDep.\n* [Add CDep dependencies to an existing Android Studio CMake project](doc/android-studio-cmake.md)\n* [Author a new CDep package and host it on Github](doc/authoring.md)\n* [Learn about the structure of CDep packages](doc/anatomy.md)\n* [Contribute to CDep](CONTRIBUTING.md)\n* [Request a new package or submit a bug report](https://github.com/google/cdep/issues/new)\n* [See an Android Studio Freetype and SDL2 sample](https://github.com/jomof/cdep-android-studio-freetype-sample)\n* [See an Android Studio ndk-build sample](https://github.com/jomof/ndk-build-meet-cdep)\n* [Learn how CDep resolves coordinates](doc/coordinate-resolution.md)\n* [Learn about CDep tool command line flags](doc/command-line-flags.md)\n* [Learn about cdep.yml file](doc/cdep-yml.md)\n\n## Getting started on Windows\nGet started with CDep on Windows, enter the following in the command line:\n\n     \u003e git clone https://github.com/jomof/cdep-redist.git  \n     \u003e cd my-project\n     \u003e ..\\cdep-redist\\cdep wrapper\n\nAfter this, the instructions are the same as Linux and Mac.\n\n## Getting started on Linux and Mac\nGet started with CDep on Linux or Mac by following these steps:\n1. Open a terminal window and navigate to the directory where your project is located.\n2. Enter the following commands: \n     ```\n     $ git clone https://github.com/jomof/cdep-redist.git  \n     $ cd my-project\n     $ ../cdep-redist/cdep wrapper\n     ```\n   This creates the following files in your local directory (and are meant to be checked into source control):\n   ```\n   cdep   \n   cdep.bat\n   cdep.yml\n   bootstrap\\wrapper\\bootstrap.jar\n   ```\n3. Open `cdep.yml` and add the following line:\n   ```\n   dependencies:\n   # This line tells CDep that your project depends on SQLite.\n   - compile: com.github.jomof:sqlite:3.16.2-rev51\n   ```\n   Learn more about the cdep.yml file [here](doc/cdep-yml.md).\n4. Run the `cdep` command to download SQLite and generate CMake module for it.\n    ```\n    $ ./cdep\n    Generating .cdep/modules/cdep-dependencies-config.cmake\n    ```   \n5. If you have a CMake project, open your `CMakeLists.txt` and add the following code at the end of the file. This tells CMake to locate the module glue file and add all the dependencies in that file to `your_target_library`.\n   ```\n   find_package(cdep-dependencies REQUIRED)\n   add_all_cdep_dependencies(your_target_library)\n   ```\n   When you call CMake to generate the project you'll need to tell it where to find the glue modules. So something like,\n   ```\n   cmake -Dcdep-dependencies_DIR=.cdep/modules\n   ```\nFor more details on setting up CMake build with CDep visit [Add CDep dependencies to an existing Android Studio CMake project](https://github.com/google/cdep/blob/master/doc/android-studio-cmake.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoogle%2Fcdep","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoogle%2Fcdep","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoogle%2Fcdep/lists"}