Git Product home page Git Product logo

android-cairo's Introduction

This repository contains Android build files and various additional files needed to build your self a version of libcairo and libpixman that you can use on Android devices.

This is for Android applications that are using the NDK for some or all of their work - only the C/C++ headers are present, there are no Java bindings included.

Obtaining the source code

This git repository uses submodules to track the official cairo and pixman repositories, as such you'll need to do a

git clone --recursive [email protected]:anoek/android-cairo.git

to pull down not only the android-cairo source, but also the cairo and pixman source.

Compiling & Using

The contents of the jni/ directory are meant to be either copied or symlinked into your application's jni/ directory. Once done, you can then include the cairo.mk and pixman.mk files into your own Android.mk file, modify your LOCAL_CFLAGS variable to add include paths for each of the cairo/pixman/cairo-extra/pixman-extra directories, then finally add libcairo and libpixman to your LOCAL_STATIC_LIBRARIES variable.

Once all of that is done, simply run ndk-build to compile everything together to produce your application's .so file.

For more concrete usage information, see the example applications in examples/

Screenshots

From pure-ndk

android-cairo's People

Contributors

anoek avatar

Stargazers

 avatar

Watchers

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