Commit 54c48561 authored by Roumen Petrov's avatar Roumen Petrov

clean-up comment in cmake build rules

parent 32973123
##
# Copyright (C) 2018 Roumen Petrov. All rights reserved.
# Copyright (C) 2018-2019 Roumen Petrov. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
......@@ -14,47 +14,22 @@
# limitations under the License.
##
# 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 2.4)
# 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.
term-system
# Sets the library as a shared library.
SHARED
# Provides a relative path to your source file(s).
main/cpp/registration.c
main/cpp/process.c
main/cpp/termio.c
main/cpp/compat.c
)
target_link_libraries(
term-system
${log-lib}
)
find_library(
# Defines the name of the path variable that stores the
# location of the NDK library.
log-lib
# Specifies the name of the NDK library that
# CMake needs to locate.
log
)
# Links your native library against one or more other native libraries.
target_link_libraries(
# Specifies the target library.
term-system
# Links the log library to the target library.
${log-lib}
)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment