forked from Jackarain/avplayer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
25 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
add_library(libavaudio OBJECT sdl_render.cpp) | ||
find_package( Boost 1.51 COMPONENTS thread) | ||
|
||
add_library(avaudio STATIC sdl_render.cpp) | ||
target_link_libraries(avaudio ${Boost_LIBRARIES}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
|
||
add_library(libav OBJECT avplay.c) | ||
add_library(av STATIC avplay.c) | ||
|
||
|
||
target_link_libraries(av -lavcodec -lavformat -lswscale -lswresample) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,18 @@ | ||
find_package(SDL) | ||
find_package(SDL REQUIRED) | ||
find_package(X11) | ||
find_package( Boost 1.51 COMPONENTS filesystem) | ||
|
||
include_directories(${Boost_INCLUDE_DIRS}) | ||
include_directories(${SDL_INCLUDE_DIR}) | ||
|
||
if(SDL_FOUND) | ||
include_directories(${SDL_INCLUDE_DIR}) | ||
link_libraries(${SDL_LIBRARY}) | ||
else() | ||
message(FATAL_ERROR "need sdl" ) | ||
endif() | ||
add_executable(avplayer player.cpp main.cpp) | ||
|
||
add_executable(avplayer player.cpp main.cpp | ||
$<TARGET_OBJECTS:libav> $<TARGET_OBJECTS:libavsource> | ||
$<TARGET_OBJECTS:libavvideo> $<TARGET_OBJECTS:libavaudio>) | ||
target_link_libraries(avplayer av avsource avaudio avaudio avvideo) | ||
|
||
if(bt) | ||
target_link_libraries(avplayer ${PROJECT_BINARY_DIR}/libtorrent/libtorrent-rasterbar.a ) | ||
target_link_libraries(avplayer torrent-rasterbar) | ||
endif() | ||
|
||
target_link_libraries(avplayer -lavcodec -lavformat -lswscale -lswresample) | ||
|
||
target_link_libraries(avplayer ${Boost_LIBRARIES} ${X11_LIBRARIES}) | ||
target_link_libraries(avplayer ${X11_LIBRARIES}) | ||
target_link_libraries(avplayer ${SDL_LIBRARY}) | ||
target_link_libraries(avplayer ${Boost_LIBRARIES}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
add_library(libavvideo OBJECT sdl_render.cpp) | ||
add_library(avvideo STATIC sdl_render.cpp) |