Cleanup plugin, create proper target for link libraries. Remove unused
variables.meow-7.2.2
parent
c7ea88046b
commit
2c3507a9d2
|
|
@ -1,7 +1,9 @@
|
|||
# -*- cmake -*-
|
||||
|
||||
create_target( ll::pluginlibraries)
|
||||
|
||||
if (WINDOWS)
|
||||
set(PLUGIN_API_WINDOWS_LIBRARIES
|
||||
set_target_libraries( ll::pluginlibraries
|
||||
wsock32
|
||||
ws2_32
|
||||
psapi
|
||||
|
|
@ -9,8 +11,6 @@ if (WINDOWS)
|
|||
advapi32
|
||||
user32
|
||||
)
|
||||
else (WINDOWS)
|
||||
set(PLUGIN_API_WINDOWS_LIBRARIES "")
|
||||
endif (WINDOWS)
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -20,10 +20,9 @@ if (DARWIN)
|
|||
)
|
||||
endif (DARWIN)
|
||||
|
||||
set_source_files_properties(${SLPlugin_HEADER_FILES}
|
||||
PROPERTIES HEADER_FILE_ONLY TRUE)
|
||||
|
||||
if (SLPlugin_HEADER_FILES)
|
||||
set_source_files_properties(${SLPlugin_HEADER_FILES}
|
||||
PROPERTIES HEADER_FILE_ONLY TRUE)
|
||||
list(APPEND SLPlugin_SOURCE_FILES ${SLPlugin_HEADER_FILES})
|
||||
endif (SLPlugin_HEADER_FILES)
|
||||
|
||||
|
|
@ -46,11 +45,11 @@ set_target_properties(SLPlugin
|
|||
endif ()
|
||||
|
||||
target_link_libraries(SLPlugin
|
||||
llplugin
|
||||
llmessage
|
||||
llcommon
|
||||
${PLUGIN_API_WINDOWS_LIBRARIES}
|
||||
)
|
||||
llplugin
|
||||
llmessage
|
||||
llcommon
|
||||
ll::pluginlibraries
|
||||
)
|
||||
|
||||
if (DARWIN)
|
||||
# Make sure the app bundle has a Resources directory (it will get populated by viewer-manifest.py later)
|
||||
|
|
|
|||
|
|
@ -63,7 +63,6 @@ add_library(media_plugin_cef
|
|||
target_link_libraries(media_plugin_cef
|
||||
media_plugin_base
|
||||
cef::cef
|
||||
${media_plugin_cef_LINK_LIBRARIES}
|
||||
)
|
||||
|
||||
if (WINDOWS)
|
||||
|
|
|
|||
Loading…
Reference in New Issue