Это исходный файл
cmake_minimum_required(VERSION 3.4.1)
add_library( # Sets the name of the library.
$cipherLib
# Sets the library as a shared library.
SHARED
# Provides a relative path to your source file(s).
src/main/cpp/cipher-lib.cpp
src/main/cpp/base64.c
src/main/cpp/aes.c
)
find_library( # Sets the name of the path variable.
log-lib
# Specifies the name of the NDK library that
# you want CMake to locate.
log)
# Specifies libraries CMake should link to your target library. You
# can link multiple libraries, such as libraries you define in this
# build script, prebuilt third-party libraries, or system libraries.
target_link_libraries( # Specifies the target library.
$cipherLib
# Links the target library to the log library
# included in the NDK.
${log-lib})
Это моя задача
task test123(type: Copy) {
group "123"
from project.buildDir
include "CMakeLists.txt"
expand([cipherLib: '123'])
into new File("aaa")
}
Я использую expand()
, чтобы изменить cipherLib
, но ошибка и MSG
Не удалось получить неизвестное свойство 'log' для задачи ': test: test123' типа org.gradle.api.tasks.Copy.
но мне нужно только изменить содержимое cipherLib
, так как это сделать?