android如何重新编译一个第三方SDK,底层是c++。

最近需要将MapBox这个sdk给重新编译,在源码上进行修改,但是,对于这个步骤一无所知。
https://github.com/mapbox/mapbox-gl-native/blob/master/INSTALL.md#additional-dependencies-for-macos
不知道有没有做过这相关的工作的朋友能够给予帮助,十分感谢。

你最好的选择应该是去follow git hub上的Getting Started,系统选择Ubuntu 16.04 LTS
按他们的要求把依赖都安装好,遇到问题再解决问题
Setup environment

These instructions are for developers interested in making code-level contributions to the SDK itself. If you instead want to use the SDK in your app, see above.

Getting the source

Clone the git repository

git clone https://github.com/mapbox/mapbox-gl-native.git
cd mapbox-gl-native
Installing dependencies

These dependencies are required for all operating systems and all platform targets.

Latest stable Android Studio

Update Android SDK with latest

Android SDK Build-Tools
Android Platform-Tools
Android SDK Tools
CMake
NDK
LLDB
Modern C++ compiler that supports -std=c++14

clang++ 3.5 or later or
g++-5 or later
cURL (for build only)

Node.js or later (for build only)

pkg-config (for build only)

Additional Dependencies for Linux

These instructions were tested on Ubuntu 16.04 LTS (aka Xenial Xerus).

$ sudo apt-get install -y build-essential curl lib32stdc++6 lib32z1 pkg-config python