mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-04 20:29:08 -04:00
feat: add support for Flutter Linux, macOS and Windows (#10)
This commit is contained in:
parent
a71bb14b86
commit
c8895524be
18 changed files with 401 additions and 18 deletions
24
windows/CMakeLists.txt
Normal file
24
windows/CMakeLists.txt
Normal file
|
@ -0,0 +1,24 @@
|
|||
cmake_minimum_required(VERSION 3.14)
|
||||
set(PROJECT_NAME "libgit2dart")
|
||||
project(${PROJECT_NAME} LANGUAGES CXX)
|
||||
|
||||
# This value is used when generating builds using this plugin, so it must
|
||||
# not be changed
|
||||
set(PLUGIN_NAME "libgit2dart_plugin")
|
||||
|
||||
add_library(${PLUGIN_NAME} SHARED
|
||||
"libgit2dart_plugin.cpp"
|
||||
)
|
||||
apply_standard_settings(${PLUGIN_NAME})
|
||||
set_target_properties(${PLUGIN_NAME} PROPERTIES
|
||||
CXX_VISIBILITY_PRESET hidden)
|
||||
target_compile_definitions(${PLUGIN_NAME} PRIVATE FLUTTER_PLUGIN_IMPL)
|
||||
target_include_directories(${PLUGIN_NAME} INTERFACE
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/include")
|
||||
target_link_libraries(${PLUGIN_NAME} PRIVATE flutter flutter_wrapper_plugin)
|
||||
|
||||
# List of absolute paths to libraries that should be bundled with the plugin
|
||||
set(libgit2dart_bundled_libraries
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/libgit2-1.3.0.dll"
|
||||
PARENT_SCOPE
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue