Skip to content

Instantly share code, notes, and snippets.

@vipulasri
Last active May 31, 2017 04:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vipulasri/d9e5d4feb81b5c89534b214c9ed36b0f to your computer and use it in GitHub Desktop.
Save vipulasri/d9e5d4feb81b5c89534b214c9ed36b0f to your computer and use it in GitHub Desktop.
Secret Keys
# Sets the minimum version of CMake required to build your native library.
# This ensures that a certain set of CMake features is available to
# your build.
cmake_minimum_required(VERSION 3.4.1)
# Specifies a library name, specifies whether the library is STATIC or
# SHARED, and provides relative paths to the source code. You can
# define multiple libraries by adding multiple add.library() commands,
# and CMake builds them for you. When you build your app, Gradle
# automatically packages shared libraries with your APK.
add_library( # Specifies the name of the library.
native-lib
# Sets the library as a shared library.
SHARED
# Provides a relative path to your source file(s).
main/native/native-lib.cpp )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment