CDep is a decentralized native package dependency manager with a focus on Android. Runs on Windows, Linux, and MacOS.
Java Shell Other
Clone or download
Latest commit c5c7259 May 12, 2018
Failed to load latest commit information.
bootstrap Try Kotlin May 7, 2018
boringssl More May 11, 2018
cdep Diagnostic May 10, 2018
doc quotes are not needed. Jan 26, 2018
gradle/wrapper Fresh gradle to get around Java 9 problem May 7, 2018
redist Update cdep.bat Mar 8, 2018
smoke-test Remove shaderc May 7, 2018
third_party re-add submodules May 11, 2017
.gitignore . May 12, 2017
.gitmodules re-add submodules May 11, 2017
.travis.yml Merge pull request #73 from jomof/master May 11, 2018 Update Aug 10, 2017
LICENSE Typo Oct 10, 2017
build.gradle Try Kotlin May 7, 2018
cdep-work.iml Remove shaderc May 7, 2018
cmakeify Initial May 8, 2017
gradlew Initial May 8, 2017
run_smoke_test Initial May 8, 2017
travis_cdep Make sure CDep returns 1 to the shell upon failure Aug 17, 2017

Build Status Gitter


CDep is a decentralized native package dependency manager with a focus on Android.

Anyone can author a package and there is a growing list of useful packages, such as Freetype 2.0, SDL, ShaderC, STB, RE2 Regular Expressions, Firebase, MathFu, Vectorial, Boost, Yaml-CPP, SQLite, LUA.

CDep 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.

Get started with CDep

Here are some things you can do to get started with CDep.

Getting started on Windows

Get started with CDep on Windows, enter the following in the command line:

 > git clone  
 > cd my-project
 > ..\cdep-redist\cdep wrapper

After this, the instructions are the same as Linux and Mac.

Getting started on Linux and Mac

Get started with CDep on Linux or Mac by following these steps:

  1. Open a terminal window and navigate to the directory where your project is located.
  2. Enter the following commands:
    $ git clone  
    $ cd my-project
    $ ../cdep-redist/cdep wrapper
    This creates the following files in your local directory (and are meant to be checked into source control):
  3. Open cdep.yml and add the following line:
    # This line tells CDep that your project depends on SQLite.
    - compile: com.github.jomof:sqlite:3.16.2-rev51
    Learn more about the cdep.yml file here.
  4. Run the cdep command to download SQLite and generate CMake module for it.
    $ ./cdep
    Generating .cdep/modules/cdep-dependencies-config.cmake
  5. 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.
    find_package(cdep-dependencies REQUIRED)
    When you call CMake to generate the project you'll need to tell it where to find the glue modules. So something like,
    cmake -Dcdep-dependencies_DIR=.cdep/modules

For more details on setting up CMake build with CDep visit Add CDep dependencies to an existing Android Studio CMake project.