From 1b70185b156ff310dbbea54ecf5902a44844d871 Mon Sep 17 00:00:00 2001 From: Calcitem Date: Fri, 6 Nov 2020 00:07:50 +0800 Subject: [PATCH] android: Add CMakeLists.txt --- src/ui/flutter/android/app/CMakeLists.txt | 29 +++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/ui/flutter/android/app/CMakeLists.txt diff --git a/src/ui/flutter/android/app/CMakeLists.txt b/src/ui/flutter/android/app/CMakeLists.txt new file mode 100644 index 00000000..20fb0d11 --- /dev/null +++ b/src/ui/flutter/android/app/CMakeLists.txt @@ -0,0 +1,29 @@ +cmake_minimum_required(VERSION 3.4.1) + +add_library( # Sets the name of the library. + engine + + # Sets the library as a shared library. + SHARED + + # Provides a relative path to your source file(s). + src/main/cpp/mill-engine.cpp + ../../command/command-channel.cpp + ../../command/command-queue.cpp + ../../command/engine-main.cpp) + + +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) + + +target_link_libraries( # Specifies the target library. + engine + + # Links the target library to the log library + # included in the NDK. + ${log-lib}) \ No newline at end of file