Git Product home page Git Product logo

cdep's Introduction

Build Status Gitter

CDep

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 https://github.com/jomof/cdep-redist.git  
 > 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 https://github.com/jomof/cdep-redist.git  
    $ 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):
    cdep   
    cdep.bat
    cdep.yml
    bootstrap\wrapper\bootstrap.jar
    
  3. Open cdep.yml and add the following line:
    dependencies:
    # 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)
    add_all_cdep_dependencies(your_target_library)
    
    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.

cdep's People

Contributors

adarshfernando avatar danalbert avatar dturner avatar gpx1000 avatar jomof avatar kant avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.