The Webview Univeral Flutter package for Appeto SDK.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 
 
 

34 lignes
1.2 KiB

  1. cmake_minimum_required(VERSION 3.10)
  2. set(PROJECT_NAME "webview_universal")
  3. project(${PROJECT_NAME} LANGUAGES CXX)
  4. # This value is used when generating builds using this plugin, so it must
  5. # not be changed
  6. set(PLUGIN_NAME "webview_universal_plugin")
  7. find_package(PkgConfig REQUIRED)
  8. pkg_check_modules(WebKit REQUIRED IMPORTED_TARGET webkit2gtk-4.0)
  9. add_library(${PLUGIN_NAME} SHARED
  10. "webview_universal_plugin.cc"
  11. webview_window.cc
  12. webview_window.h
  13. message_channel_plugin.h
  14. message_channel_plugin.cc
  15. )
  16. apply_standard_settings(${PLUGIN_NAME})
  17. set_target_properties(${PLUGIN_NAME} PROPERTIES
  18. CXX_VISIBILITY_PRESET hidden)
  19. target_compile_definitions(${PLUGIN_NAME} PRIVATE FLUTTER_PLUGIN_IMPL)
  20. target_include_directories(${PLUGIN_NAME} INTERFACE
  21. "${CMAKE_CURRENT_SOURCE_DIR}/include")
  22. target_link_libraries(${PLUGIN_NAME} PRIVATE flutter)
  23. target_link_libraries(${PLUGIN_NAME} PRIVATE PkgConfig::GTK)
  24. target_link_libraries(${PLUGIN_NAME} PRIVATE PkgConfig::WebKit)
  25. # List of absolute paths to libraries that should be bundled with the plugin
  26. set(webview_universal_bundled_libraries
  27. ""
  28. PARENT_SCOPE
  29. )