forked from wang-bin/QtAV
-
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
6 changed files
with
171 additions
and
11 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 |
---|---|---|
@@ -0,0 +1,141 @@ | ||
|
||
set(COMMON_SRC | ||
common/common.cpp | ||
common/Config.cpp | ||
common/qoptions.cpp | ||
) | ||
set(COMMON_HEADERS | ||
common/common.h | ||
common/Config.h | ||
common/qoptions.h | ||
common/ScreenSaver.h | ||
common/common_export.h | ||
) | ||
if(NOT IOS) | ||
list(APPEND COMMON_SRC common/ScreenSaver.cpp) | ||
if(APPLE) | ||
list(APPEND COMMON_LIBS "-framework CoreServices") | ||
endif() | ||
endif() | ||
|
||
SET(COMMON_QRC common/theme/theme.qrc) | ||
SOURCE_GROUP("Resources" FILES ${COMMON_QRC}) | ||
qt5_add_resources(COMMON_RES ${COMMON_QRC}) | ||
set_source_files_properties(${COMMON_RES} PROPERTIES GENERATED ON) | ||
|
||
# add HEADERS for moc | ||
add_library(common STATIC ${COMMON_SRC} ${COMMON_RES} ${COMMON_HEADERS}) | ||
qt5_use_modules(common LINK_PUBLIC Core Gui Sql) | ||
target_compile_definitions(common | ||
PUBLIC -DBUILD_COMMON_STATIC | ||
) | ||
target_include_directories(common | ||
PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} | ||
) | ||
target_link_libraries(common LINK_PUBLIC ${COMMON_LIBS}) | ||
|
||
set(PLAYER_SRC | ||
player/main.cpp | ||
player/MainWindow.cpp | ||
player/ClickableMenu.cpp | ||
player/StatisticsView.cpp | ||
player/Slider.cpp | ||
player/TVView.cpp | ||
player/EventFilter.cpp | ||
player/config/ConfigDialog.cpp | ||
player/config/ConfigPageBase.cpp | ||
player/config/CaptureConfigPage.cpp | ||
player/config/VideoEQConfigPage.cpp | ||
player/config/DecoderConfigPage.cpp | ||
player/config/MiscPage.cpp | ||
player/filters/OSD.cpp | ||
player/filters/OSDFilter.cpp | ||
player/playlist/PlayListModel.cpp | ||
player/playlist/PlayListItem.cpp | ||
player/playlist/PlayListDelegate.cpp | ||
player/playlist/PlayList.cpp | ||
player/config/PropertyEditor.cpp | ||
player/config/AVFormatConfigPage.cpp | ||
player/config/AVFilterConfigPage.cpp | ||
player/config/ShaderPage.cpp | ||
player/filters/AVFilterSubtitle.cpp | ||
) | ||
set(PLAYER_HEADERS | ||
player/MainWindow.h | ||
player/ClickableMenu.h | ||
player/StatisticsView.h | ||
player/Slider.h | ||
player/TVView.h | ||
player/EventFilter.h | ||
player/config/ConfigDialog.h | ||
player/config/ConfigPageBase.h | ||
player/config/CaptureConfigPage.h | ||
player/config/VideoEQConfigPage.h | ||
player/config/DecoderConfigPage.h | ||
player/config/MiscPage.h | ||
player/filters/OSD.h | ||
player/filters/OSDFilter.h | ||
player/playlist/PlayListModel.h | ||
player/playlist/PlayListItem.h | ||
player/playlist/PlayListDelegate.h | ||
player/playlist/PlayList.h | ||
player/config/PropertyEditor.h | ||
player/config/AVFormatConfigPage.h | ||
player/config/AVFilterConfigPage.h | ||
player/config/ShaderPage.h | ||
player/filters/AVFilterSubtitle.h | ||
) | ||
SET(PLAYER_QRC player/res/player.qrc) | ||
SOURCE_GROUP("Resources" FILES ${PLAYER_QRC}) | ||
qt5_add_resources(PLAYER_RES ${PLAYER_QRC}) | ||
set_source_files_properties(${PLAYER_RES} PROPERTIES GENERATED ON) | ||
|
||
if(Qt5Widgets_FOUND) | ||
add_executable(Player ${PLAYER_SRC} ${PLAYER_HEADERS} ${PLAYER_RES}) | ||
target_link_libraries(Player QtAVWidgets common) | ||
|
||
SET(FILTERS_QRC filters/res.qrc) | ||
SOURCE_GROUP("Resources" FILES ${FILTERS_QRC}) | ||
qt5_add_resources(FILTERS_RES ${FILTERS_QRC}) | ||
set_source_files_properties(${FILTERS_RES} PROPERTIES GENERATED ON) | ||
add_executable(filters filters/main.cpp filters/SimpleFilter.cpp ${FILTERS_RES}) | ||
target_link_libraries(filters QtAVWidgets) | ||
|
||
add_executable(glslfilter glslfilter/main.cpp) | ||
target_link_libraries(glslfilter QtAVWidgets) | ||
|
||
add_executable(shader shader/main.cpp) | ||
target_link_libraries(shader QtAVWidgets) | ||
|
||
add_executable(sharedoutput sharedoutput/main.cpp sharedoutput/widget.cpp) | ||
target_link_libraries(sharedoutput QtAVWidgets) | ||
|
||
add_executable(simpleplayer simpleplayer/main.cpp simpleplayer/playerwindow.cpp) | ||
target_link_libraries(simpleplayer QtAVWidgets) | ||
|
||
add_executable(videocapture videocapture/main.cpp videocapture/playerwindow.cpp) | ||
target_link_libraries(videocapture QtAVWidgets) | ||
|
||
add_executable(videographicsitem videographicsitem/main.cpp videographicsitem/videoplayer.cpp) | ||
target_link_libraries(videographicsitem QtAVWidgets) | ||
|
||
add_executable(videogroup videogroup/main.cpp videogroup/videogroup.cpp) | ||
target_link_libraries(videogroup QtAVWidgets) | ||
|
||
add_executable(videowall videowall/main.cpp videowall/VideoWall.cpp) | ||
target_link_libraries(videowall QtAVWidgets) | ||
|
||
add_executable(simpletranscode simpletranscode/main.cpp) | ||
target_link_libraries(simpletranscode QtAV) | ||
endif() | ||
|
||
add_executable(audiopipeline audiopipeline/main.cpp) | ||
target_link_libraries(audiopipeline QtAV) | ||
|
||
add_executable(framereader framereader/main.cpp) | ||
target_link_libraries(framereader QtAV) | ||
|
||
add_executable(window window/main.cpp) | ||
target_link_libraries(window QtAV) | ||
|
||
|
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,11 +1,7 @@ | ||
TEMPLATE = app | ||
CONFIG -= app_bundle | ||
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets | ||
|
||
PROJECTROOT = $$PWD/../.. | ||
include($$PROJECTROOT/src/libQtAV.pri) | ||
include($$PROJECTROOT/widgets/libQtAVWidgets.pri) | ||
preparePaths($$OUT_PWD/../../out) | ||
|
||
SOURCES += main.cpp | ||
|
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