Skip to content

Commit

Permalink
move mpv code to standalone dir
Browse files Browse the repository at this point in the history
  • Loading branch information
tsl0922 committed Dec 25, 2023
1 parent 972ee8e commit 29234f0
Show file tree
Hide file tree
Showing 16 changed files with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,18 @@ pkg_search_module(MPV REQUIRED mpv>=0.37.0)

set(CMAKE_SHARED_LIBRARY_PREFIX "")
add_library(menu SHARED
src/misc/bstr.c
src/misc/dispatch.c
src/ta/ta.c
src/ta/ta_talloc.c
src/ta/ta_utils.c
mpv/misc/bstr.c
mpv/misc/dispatch.c
mpv/ta/ta.c
mpv/ta/ta_talloc.c
mpv/ta/ta_utils.c

src/types.c
src/menu.c
src/plugin.c
)
set_property(TARGET menu PROPERTY POSITION_INDEPENDENT_CODE ON)

target_include_directories(menu PRIVATE src ${MPV_INCLUDE_DIRS})
target_include_directories(menu PRIVATE mpv ${MPV_INCLUDE_DIRS})
target_link_libraries(menu PRIVATE shlwapi)
target_compile_definitions(menu PRIVATE MPV_CPLUGIN_DYNAMIC_SYM)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 29234f0

Please sign in to comment.