Coder Social home page Coder Social logo

praveenmunagapati / libraries Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gozfree/gear-lib

0.0 2.0 0.0 1.14 MB

Lightweight libraries, wrapper and extension of POSIX

License: GNU Lesser General Public License v3.0

Makefile 9.14% Shell 1.82% PHP 0.18% C++ 6.26% C 81.12% Lua 0.22% Objective-C 1.15% Python 0.02% Assembly 0.09%

libraries's Introduction

libraries 中文说明 Build Status

This is a collection of basic libraries.

  • All are written in POSIX C, aim to used compatibility on x86, arm, android, ios.
  • Each of library is as independently as possible, and the APIs are easily to use.
  • Depend on none of open source third party libraries.
  • Aim to reduce duplication of the wheel.

Include

Library Note
libatomic Atomic operation library.
libcmd Based on readline, a bash like library.
libconfig Configure library, support ini, json.
libdict Hash key-value dictonary library.
libdlmod Dynamic linking loader wrapper library.
libgevent Reactor event library, like libevent
libhash Hash key-value library based on hlist from kernel.
libipc Inter-Process Communication, support mqueue/netlink/shm.
liblog Log library, support console/file/rsyslog.
libmacro Basic Macro define library, include kernel list and so on.
libosal OSAL(Operating System Abstraction Layer) library.
libp2p High level p2p punch hole library, easy API to use.
libptcp Pseudo Tcp Socket over UDP, rewrite with C from libjingle.
librbtree Librbtree comes from linux kernel rbtree.
librpc Remote Procedure Call library.
libskt Socket wrapper library for easy use.
libstun STUN protocol wrapper library.
libtime Time wrapper library for easy use.
liblock Lock/mutex/sem wrapper library for easy use.
libthread Thread wrapper library for easy use.
libworkq Work queue in userspace like work-queue/tasklet in kernel.

How To Build

Recommend Ubuntu14.04 gcc-4.8.4+

  • linux platform (32/64 bit)
    $ cd libraries
    $ ./build.sh
    $ sudo ./build.sh install

  • host(linux) target(rasberrypi)
    (you need download toolchain of rasberrypi)
    $ ./build.sh all pi

  • host(rasberrypi board)
    $ ./build.sh
    $ sudo ./build.sh install

  • android arm cross compile
    (you need download android-ndk-r9-linux-x86_64.tar.bz2)
    $ ./build.sh all android

  • android naitve develop
    also need ndk tools
    $ cd android_jni_libs
    $ ndk-build

After install, the libxxx.xx will be installed in /usr/local/lib/.
libxxx.h, libxxx.so or libxxx.a of libraries are also in ./output/$(ARCH)

How To Autogen C code

If you want to add your own library into the build script, no need repeat the same code, only auto gen libxxx framework.
$ ./autogen_lib.sh libfoo

About Build

  • by default, build x86 on linux, and libxxx folder can be built independently
  • if only "libxxx folder" is checkout without "build folder", you can only build x86 and no color set
  • with "build folder", you can build x86, pi, android, ios and color is also set
  • "sudo make install" is needed when build libxxx alone.

License

LGPL/GPLv3. Please refer to the LICENSE file for detailed information.

Author & Contributing

Welcome pull request to the libraries.
gozfree [email protected] In alphabetical order

github-id email
CMShuyuhui
core1011
elfring
Mohammad Amin Sameti
ktsaou
zh794390558

libraries's People

Contributors

gozfree avatar mamins1376 avatar

Watchers

James Cloos 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.