Skip to content

Commit

Permalink
common features of std video player
Browse files Browse the repository at this point in the history
  • Loading branch information
omrdk committed Feb 7, 2022
0 parents commit 9adf3e4
Show file tree
Hide file tree
Showing 48 changed files with 4,104 additions and 0 deletions.
Binary file added .tar.gz
Binary file not shown.
17 changes: 17 additions & 0 deletions .vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"configurations": [
{
"name": "Linux",
"includePath": [
"${workspaceFolder}/**"
],
"defines": [],
"compilerPath": "/usr/bin/clang-9",
"cStandard": "c11",
"cppStandard": "c++14",
"intelliSenseMode": "linux-clang-x64",
"compileCommands": "${workspaceFolder}/build/compile_commands.json"
}
],
"version": 4
}
30 changes: 30 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "g++ - Build and debug active file",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/build/LIBREMM",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
],
"preLaunchTask": "Make",
"miDebuggerPath": "/usr/bin/gdb",
"visualizerFile": "/home/merdak/.config/Code/User/workspaceStorage/598ae159f6ad3f48c34c73a9f4284657/tonka3000.qtvsctools/qt.natvis.xml"
}
]
}
80 changes: 80 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
{
"files.associations": {
"iostream": "cpp",
"filesystem": "cpp",
"any": "cpp",
"array": "cpp",
"atomic": "cpp",
"bit": "cpp",
"*.tcc": "cpp",
"bitset": "cpp",
"cctype": "cpp",
"cfenv": "cpp",
"charconv": "cpp",
"chrono": "cpp",
"cinttypes": "cpp",
"clocale": "cpp",
"cmath": "cpp",
"codecvt": "cpp",
"complex": "cpp",
"condition_variable": "cpp",
"csetjmp": "cpp",
"csignal": "cpp",
"cstdarg": "cpp",
"cstddef": "cpp",
"cstdint": "cpp",
"cstdio": "cpp",
"cstdlib": "cpp",
"cstring": "cpp",
"ctime": "cpp",
"cuchar": "cpp",
"cwchar": "cpp",
"cwctype": "cpp",
"deque": "cpp",
"forward_list": "cpp",
"list": "cpp",
"map": "cpp",
"set": "cpp",
"unordered_map": "cpp",
"unordered_set": "cpp",
"vector": "cpp",
"exception": "cpp",
"algorithm": "cpp",
"functional": "cpp",
"iterator": "cpp",
"memory": "cpp",
"memory_resource": "cpp",
"numeric": "cpp",
"optional": "cpp",
"random": "cpp",
"ratio": "cpp",
"regex": "cpp",
"string": "cpp",
"string_view": "cpp",
"system_error": "cpp",
"tuple": "cpp",
"type_traits": "cpp",
"utility": "cpp",
"fstream": "cpp",
"future": "cpp",
"initializer_list": "cpp",
"iomanip": "cpp",
"iosfwd": "cpp",
"istream": "cpp",
"limits": "cpp",
"mutex": "cpp",
"new": "cpp",
"ostream": "cpp",
"scoped_allocator": "cpp",
"shared_mutex": "cpp",
"sstream": "cpp",
"stdexcept": "cpp",
"streambuf": "cpp",
"thread": "cpp",
"typeindex": "cpp",
"typeinfo": "cpp",
"valarray": "cpp",
"variant": "cpp"
},
"C_Cpp.errorSquiggles": "Disabled"
}
48 changes: 48 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "CMake", // calistirilacak komut
"type": "shell",
"command": "cmake",
"options": { // cmake kodunun nerede calisirilacagi
"cwd": "${workspaceFolder}/build"
},
"args": [ // cmake e verilen arguman (. ve ya ..)
"${workspaceFolder}",
],
"group": {
"kind": "build",
"isDefault": true
},
"dependsOn": [ // baska taska bagla
"createbuildFolder"
]
},
{
"label": "createbuildFolder", // build dosyasi olusturur
"type": "shell",
"command": "mkdir",
"options": {
"cwd": "${workspaceFolder}"
},
"args": [
"-p", // mkdir ayni dizin altina var olan dosyayi olusturamaz ama p arg verirsen bunu hata olarak dondurmez
"build" // olusturulucak klasor ismi
]
},
{
"label": "Make",
"type": "shell",
"command": "make",
"options": {
"cwd": "${workspaceFolder}/build"
},
"args": [
"-l" // kac core varsa ona gore paralelliyor
]
}

]

}
40 changes: 40 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
if(NOT DEFINED CMAKE_MINIMUM_REQUIRED_VERSION)
cmake_minimum_required(VERSION 3.16)
endif()

project(LIBREMM LANGUAGES CXX)

set(CMAKE_AUTOMOC ON) # auto generate qt moc rules

set(CMAKE_CXX_STANDARD 11)

set(PROJECT_DIR ${CMAKE_SOURCE_DIR})

set(PROJECT_SOURCE_DIR ${PROJECT_DIR}/src)
set(PROJECT_INCLUDE_DIR ${PROJECT_DIR}/inc)

set(PROJECT_SOURCES
${PROJECT_SOURCE_DIR}/main.cpp
${PROJECT_SOURCE_DIR}/backoffice.cpp
${PROJECT_SOURCE_DIR}/playlistmodal.cpp
)
set(PROJECT_HEADERS
${PROJECT_INCLUDE_DIR}/backoffice.h
${PROJECT_INCLUDE_DIR}/srtparser.h
${PROJECT_INCLUDE_DIR}/playlistmodal.h
${PROJECT_INCLUDE_DIR}/iconv.hpp
)

find_package(Qt5 COMPONENTS Quick Qml QuickWidgets Multimedia REQUIRED)

find_package(Iconv REQUIRED)

qt5_add_resources(RSCS qml/qml.qrc icons/icons.qrc)

include_directories(${PROJECT_INCLUDE_DIR})

add_executable(${PROJECT_NAME} ${PROJECT_SOURCES} ${PROJECT_HEADERS} ${RSCS})

target_link_libraries(${PROJECT_NAME} PRIVATE Qt5::Quick Qt5::Qml Qt5::QuickWidgets Qt5::Multimedia iconv)

install(TARGETS LIBREMM DESTINATION bin)
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
## LIBREMM PLAYER
QML based lightweight media player.

### How to build for Linux
`sudo ./install.sh`

Call in cli with `LIBREMM`
1 change: 1 addition & 0 deletions build/.cmake/api/v1/query/client-vscode/query.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"requests":[{"kind":"cache","version":2},{"kind":"codemodel","version":2},{"kind":"toolchains","version":1}]}
Loading

0 comments on commit 9adf3e4

Please sign in to comment.