Cmakeified
This commit is contained in:
parent
b0d1f1f176
commit
fc0ae6fb40
2
.gitignore
vendored
2
.gitignore
vendored
@ -11,6 +11,7 @@
|
|||||||
*.sln.docstates
|
*.sln.docstates
|
||||||
|
|
||||||
# Tubio files
|
# Tubio files
|
||||||
|
/Tubio/Tubio
|
||||||
config.json
|
config.json
|
||||||
log.txt
|
log.txt
|
||||||
log.json
|
log.json
|
||||||
@ -28,6 +29,7 @@ ffprobe.exe
|
|||||||
mono_crash.*
|
mono_crash.*
|
||||||
|
|
||||||
# Build results
|
# Build results
|
||||||
|
build/
|
||||||
[Dd]ebug/
|
[Dd]ebug/
|
||||||
[Dd]ebugPublic/
|
[Dd]ebugPublic/
|
||||||
[Rr]elease/
|
[Rr]elease/
|
||||||
|
49
Tubio/CMakeLists.txt
Executable file
49
Tubio/CMakeLists.txt
Executable file
@ -0,0 +1,49 @@
|
|||||||
|
cmake_minimum_required(VERSION 3.16)
|
||||||
|
project(Tubio)
|
||||||
|
|
||||||
|
# Set C++ standard
|
||||||
|
set(CMAKE_CXX_STANDARD 17)
|
||||||
|
|
||||||
|
# Add StringTools src dir to include dir list
|
||||||
|
include_directories(./external_dependencies/)
|
||||||
|
|
||||||
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17")
|
||||||
|
|
||||||
|
# Add absolutely kawaii sources to Tubio <3
|
||||||
|
add_executable(Tubio
|
||||||
|
main.cpp
|
||||||
|
ConsoleManager.cpp
|
||||||
|
ConsoleManager.h
|
||||||
|
DownloadManager.cpp
|
||||||
|
DownloadManager.h
|
||||||
|
FileSystem.cpp
|
||||||
|
FileSystem.h
|
||||||
|
Framework.cpp
|
||||||
|
Framework.h
|
||||||
|
HttpServer.cpp
|
||||||
|
HttpServer.h
|
||||||
|
Idler.cpp
|
||||||
|
Idler.h
|
||||||
|
LogHistory.cpp
|
||||||
|
LogHistory.h
|
||||||
|
LogTypes.h
|
||||||
|
Logger.cpp
|
||||||
|
Logger.h
|
||||||
|
RestQueryHandler.cpp
|
||||||
|
RestQueryHandler.h
|
||||||
|
RestResponseTemplates.cpp
|
||||||
|
RestResponseTemplates.h
|
||||||
|
TimeUnits.h
|
||||||
|
Updater.cpp
|
||||||
|
Updater.h
|
||||||
|
Version.h
|
||||||
|
XGConfig.cpp
|
||||||
|
XGConfig.h
|
||||||
|
XGControl.cpp
|
||||||
|
XGControl.h
|
||||||
|
external_dependencies/casenta/mongoose/mongoose.c
|
||||||
|
external_dependencies/casenta/mongoose/mongoose.h
|
||||||
|
external_dependencies/leonetienne/JasonPP/JasonPP.hpp
|
||||||
|
external_dependencies/leonetienne/JasonPP/JasonPP.cpp
|
||||||
|
)
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
#include "Filesystem.h"
|
#include "FileSystem.h"
|
||||||
#ifdef _WIN
|
#ifdef _WIN
|
||||||
#include <Windows.h>
|
#include <Windows.h>
|
||||||
#endif
|
#endif
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include "Filesystem.h"
|
#include "FileSystem.h"
|
||||||
#include "external_dependencies/leonetienne/JasonPP/JasonPP.hpp"
|
#include "external_dependencies/leonetienne/JasonPP/JasonPP.hpp"
|
||||||
#include "Logger.h"
|
#include "Logger.h"
|
||||||
|
|
||||||
|
BIN
Tubio/yt-dlp.exe
BIN
Tubio/yt-dlp.exe
Binary file not shown.
@ -1,31 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
g++ \
|
|
||||||
\
|
|
||||||
-std=c++17 \
|
|
||||||
\
|
|
||||||
-D __linux__ \
|
|
||||||
-D JASONPP_RENDER_SORTED \
|
|
||||||
\
|
|
||||||
../Tubio/main.cpp \
|
|
||||||
../Tubio/ConsoleManager.cpp \
|
|
||||||
../Tubio/DownloadManager.cpp \
|
|
||||||
../Tubio/FileSystem.cpp \
|
|
||||||
../Tubio/Framework.cpp \
|
|
||||||
../Tubio/HttpServer.cpp \
|
|
||||||
../Tubio/Logger.cpp \
|
|
||||||
../Tubio/LogHistory.cpp \
|
|
||||||
../Tubio/RestQueryHandler.cpp \
|
|
||||||
../Tubio/RestResponseTemplates.cpp \
|
|
||||||
../Tubio/XGConfig.cpp \
|
|
||||||
../Tubio/XGControl.cpp \
|
|
||||||
../Tubio/Updater.cpp \
|
|
||||||
../Tubio/Idler.cpp \
|
|
||||||
\
|
|
||||||
\
|
|
||||||
../Tubio/external_dependencies/casenta/mongoose/mongoose.c \
|
|
||||||
../Tubio/external_dependencies/leonetienne/JasonPP/JasonPP.cpp \
|
|
||||||
\
|
|
||||||
-lpthread \
|
|
||||||
\
|
|
||||||
-Wall \
|
|
||||||
-o ./tubio.out
|
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user