123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- # -*- cmake -*-
- project(media_plugin_cef)
- include(00-Common)
- include(LLCommon)
- include(LLFilesystem)
- include(LLPlugin)
- include(LLMath)
- include(LLRender)
- include(LLWindow)
- include(Linking)
- include(MediaPluginBase)
- include(FindOpenGL)
- include(CEFPlugin)
- ### media_plugin_cef
- if (NOT WINDOWS)
- add_definitions(-fPIC)
- endif (NOT WINDOWS)
- set(media_plugin_cef_SOURCE_FILES
- media_plugin_cef.cpp
- )
- add_library(media_plugin_cef
- SHARED
- ${media_plugin_cef_SOURCE_FILES}
- )
- if (DARWIN)
- # Do not prepend 'lib' to the executable name, and do not embed a full
- # install path (which would wrongly be the sources path) inside the library.
- set_target_properties(media_plugin_cef
- PROPERTIES
- PREFIX ""
- BUILD_WITH_INSTALL_NAME_DIR 1
- BUILD_WITH_INSTALL_RPATH 1
- INSTALL_NAME_DIR "@executable_path"
- LINK_FLAGS "-exported_symbols_list ${CMAKE_CURRENT_SOURCE_DIR}/../base/media_plugin_base.exp"
- )
- endif (DARWIN)
- if (LINUX)
- # Do not prepend 'lib' to the executable name
- set_target_properties(media_plugin_cef
- PROPERTIES
- PREFIX ""
- )
- endif (LINUX)
- if (WINDOWS)
- set_target_properties(media_plugin_cef
- PROPERTIES
- LINK_FLAGS "/MANIFEST:NO /SAFESEH:NO /NODEFAULTLIB:LIBCMT"
- LINK_FLAGS_DEBUG "/MANIFEST:NO /SAFESEH:NO /NODEFAULTLIB:LIBCMTD"
- )
- endif (WINDOWS)
- target_link_libraries(media_plugin_cef
- ${LLPLUGIN_LIBRARIES}
- ${MEDIA_PLUGIN_BASE_LIBRARIES}
- ${CEF_PLUGIN_LIBRARIES}
- ${LLCOMMON_LIBRARIES}
- ${LLFILESYSTEM_LIBRARIES}
- ${PLUGIN_API_LIBRARIES}
- )
- get_directory_property(ALLDEFINES COMPILE_DEFINITIONS)
- message("media_plugins/cef COMPILE_DEFINITIONS = ${ALLDEFINES}")
|