Skip to content

Scripts for building cross-platform c/c++ open source software libraries for iOS and Android.

Notifications You must be signed in to change notification settings

rburhum/cmoss

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The CMOSS scripts can be used to build the following C/C++ Open Source Software libraries for native development on iOS and Android.

* c-ares : http://c-ares.haxx.se
* bzip2 : http://bzip.org/
* zip : http://zlib.net
* icu : http://site.icu-project.org/
* GnuPG 1.4.x, Libgcrypt, Libgpg-error : http://www.gnupg.org/
* OpenSSL - http://http://www.openssl.org/
* libSSH2 - http://www.libssh2.org/
* cURL - http://curl.haxx.se/ - C HTTP API
* expat - http://expat.sourceforge.net/ - XML parser
* yajl - http://lloyd.github.com/yajl/ - JSON parser
* sqlcipher - http://sqlcipher.net/ - SQLite with encryption
* boost - http://www.boost.org/ - C++ utilities
* soci - http://soci.sourceforge.net/ - generic C++ database API
* pion : http://pion.org/ - C++ HTTP API

The android kernel already provides some of these shared libraries so check if they are available before including them in your NDK project. For example zlib is part of both Android and IOS distributions and is provided only as an aid in linking, and both openssl and icu are part of the Android distribution.

The scripts will download the source code from the internet and build them locally. So your build machine needs to be connected to the internet when building. Once the source code archives have been downloaded they will be saved in the [cmoss root path]/tmp folder and will not be downloaded again unless you delete them or change the version. The builds have been tested with the versions hard-coded in the script files. If you change these versions it is possible the build for that library may break. If you do find a new version that breaks a build please let me know so it can be fixed.

To run iOS build:

cd [cmoss root path]/build-ios
./build-all.sh [installed sdk version #] [proxy_host:proxy_port]

(scripts were tested with SDK 4.3)

To run Android build:

cd [cmoss root path]/build-droid
./build-all.sh [path to Android NDK] [proxy_host:proxy_port]

(scripts were tested with Android NDK r7)

These build scripts were tested on a Mac OS X 10 with the following Mac ports:

  cmake @2.8.4_0 (active)
  cppunit @1.12.1_0 (active)
  dos2unix @5.1.1_0 (active)
  expat @2.0.1_1 (active)
  gettext @0.18.1.1_2 (active)
  gperf @3.0.4_0 (active)
  libiconv @1.13.1_0 (active)
  libidn @1.20_0 (active)
  ncurses @5.8_0
  ncurses @5.8_1 (active)
  ncursesw @5.8_0 (active)
  openssl @1.0.0d_0 (active)
  wget @1.12_3+ssl (active)
  zlib @1.2.5_0 (active)

The Android scripts should work in a Linux environment but have not been tested.

About

Scripts for building cross-platform c/c++ open source software libraries for iOS and Android.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published