CEFPlugin.cmake 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # -*- cmake -*-
  2. if (CEFPLUGIN_CMAKE_INCLUDED)
  3. return()
  4. endif (CEFPLUGIN_CMAKE_INCLUDED)
  5. set (CEFPLUGIN_CMAKE_INCLUDED TRUE)
  6. include(00-BuildOptions)
  7. include(Prebuilt)
  8. if (USE_OLD_CEF)
  9. use_prebuilt_binary(dullahan-old)
  10. else ()
  11. use_prebuilt_binary(dullahan)
  12. endif ()
  13. if (DARWIN)
  14. FIND_LIBRARY(APPKIT_LIBRARY AppKit)
  15. if (NOT APPKIT_LIBRARY)
  16. message(FATAL_ERROR "AppKit not found")
  17. endif()
  18. set(CEF_LIBRARY "${ARCH_PREBUILT_DIRS_RELEASE}/Chromium Embedded Framework.framework/Chromium Embedded Framework")
  19. set(CEF_PLUGIN_LIBRARIES
  20. ${ARCH_PREBUILT_DIRS_RELEASE}/libcef_dll_wrapper.a
  21. ${ARCH_PREBUILT_DIRS_RELEASE}/libdullahan.a
  22. ${APPKIT_LIBRARY}
  23. ${CEF_LIBRARY}
  24. )
  25. elseif (LINUX)
  26. set(CEF_PLUGIN_LIBRARIES
  27. -Wl,-whole-archive
  28. ${ARCH_PREBUILT_DIRS_RELEASE}/libcef_dll_wrapper.a
  29. ${ARCH_PREBUILT_DIRS_RELEASE}/libdullahan.a
  30. -Wl,-no-whole-archive
  31. ${ARCH_PREBUILT_DIRS_RELEASE}/libcef.so
  32. )
  33. elseif (WINDOWS)
  34. set(CEF_PLUGIN_LIBRARIES
  35. libcef.lib
  36. libcef_dll_wrapper.lib
  37. dullahan.lib
  38. )
  39. endif ()
  40. include_directories(${LIBS_PREBUILT_DIR}/include/cef)