Commit d595d474 authored by Alexandre Janniaux's avatar Alexandre Janniaux
Browse files

WIP

parent c8901e9d
qt5 = import('qt5')
dep_qt5 = dependency('qt5', modules: ['Core', 'Gui', 'Quick'])
libcloudbrowser_sources = files(
'src/CloudContext.cpp',
'src/CloudContext.cpp',
'src/CloudItem.cpp',
'src/HttpServer.cpp',
'src/Request/CloudRequest.cpp',
'src/Request/ListDirectory.cpp',
'src/Request/GetThumbnail.cpp',
'src/Request/GetUrl.cpp',
'src/Request/CreateDirectory.cpp',
'src/Request/DeleteItem.cpp',
'src/Request/RenameItem.cpp',
'src/Request/MoveItem.cpp',
'src/Request/UploadItem.cpp',
'src/Request/DownloadItem.cpp',
'src/GenerateThumbnail.cpp',
'src/AndroidUtility.cpp',
'src/DesktopUtility.cpp',
'src/WinRTUtility.cpp',
'src/FileDialog.cpp',
'src/Exec.cpp',
'src/File.cpp',
)
libcloudbrowser_moc_headers = files(
'src/CloudContext.h',
'src/CloudItem.h',
'src/Request/CloudRequest.h',
'src/Request/ListDirectory.h',
'src/Request/GetThumbnail.h',
'src/Request/GetUrl.h',
'src/Request/CreateDirectory.h',
'src/Request/DeleteItem.h',
'src/Request/RenameItem.h',
'src/Request/MoveItem.h',
'src/Request/UploadItem.h',
'src/Request/DownloadItem.h',
'src/FileDialog.h',
'src/IPlatformUtility.h',
)
libcloudbrowser_res = files(
'qtquickcontrols2.conf',
'config.json',
'qml/main.qml',
'qml/WebView.qml',
'qml/MediaPlayer.qml',
'qml/VlcPlayer.qml',
'qml/QtPlayer.qml',
'qml/ImagePlayer.qml',
'qml/RegisterPage.qml',
'qml/RemoveProvider.qml',
'qml/ProviderEntry.qml',
'qml/ItemPage.qml',
'qml/FileDialog.qml',
'qml/QtFileDialog.qml',
'qml/AndroidFileDialog.qml',
'qml/WinRTFileDialog.qml',
'qml/AboutView.qml',
'resources/cloud.png',
'resources/vlc.png',
'resources/kde.png',
'resources/qt.png',
'resources/vlc-qt.png',
'resources/gnu.png',
'resources/jsoncpp.png',
'resources/curl.png',
'resources/cryptopp.png',
'resources/tinyxml2.png',
'resources/ffmpeg.png',
'resources/providers/google.png',
'resources/providers/onedrive.png',
'resources/providers/dropbox.png',
'resources/providers/amazons3.png',
'resources/providers/box.png',
'resources/providers/pcloud.png',
'resources/providers/mega.png',
'resources/providers/webdav.png',
'resources/providers/youtube.png',
'resources/providers/yandex.png',
'resources/providers/gphotos.png',
'resources/providers/hubic.png',
'resources/providers/local.png',
'resources/amazons3_login.html',
'resources/default_error.html',
'resources/default_success.html',
'resources/mega_login.html',
'resources/webdav_login.html',
'resources/local_login.html',
)
if qt5.has_tools(required: true)
libcloudbrowser_moc = qt5.preprocess(
moc_headers: libcloudbrowser_moc_headers,
qresources: files('resources.qrc'),
include_directories: ['src'],
dependencies: dep_qt5)
endif
libcloudbrowser = library('cloudbrowser',
libcloudbrowser_sources, libcloudbrowser_moc,
include_directories: ['src'],
dependencies: [dep_thread, dep_qt5, dep_cloudstorage])
dep_cloudbrowser = declare_dependency(
link_with: libcloudbrowser,
include_directories: ['src'])
cloudbrowser = executable('cloudbrowser',
files('src/main.cpp'),
dependencies: [dep_thread, dep_cloudbrowser])
commandlinebrowser = executable('commandlinebrowser',
files('main.cpp'),
dependencies: [dep_thread, dep_cloudstorage, dep_jsoncpp])
......@@ -55,195 +55,6 @@ add_project_arguments(
test_args = ''
libcloudstorage_sources = [
'src/Utility/CloudStorage.cpp',
'src/Utility/Auth.cpp',
'src/Utility/Item.cpp',
'src/Utility/Utility.cpp',
'src/Utility/CryptoPP.cpp',
'src/Utility/CurlHttp.cpp',
'src/Utility/MicroHttpdServer.cpp',
'src/Utility/ThreadPool.cpp',
'src/CloudProvider/CloudProvider.cpp',
'src/CloudProvider/GoogleDrive.cpp',
'src/CloudProvider/OneDrive.cpp',
'src/CloudProvider/Dropbox.cpp',
'src/CloudProvider/AmazonS3.cpp',
'src/CloudProvider/Box.cpp',
'src/CloudProvider/YouTube.cpp',
'src/CloudProvider/YandexDisk.cpp',
'src/CloudProvider/WebDav.cpp',
'src/CloudProvider/PCloud.cpp',
'src/CloudProvider/HubiC.cpp',
'src/CloudProvider/GooglePhotos.cpp',
'src/CloudProvider/MegaNz.cpp',
'src/CloudProvider/LocalDrive.cpp',
'src/Request/Request.cpp',
'src/Request/HttpCallback.cpp',
'src/Request/AuthorizeRequest.cpp',
'src/Request/DownloadFileRequest.cpp',
'src/Request/GetItemRequest.cpp',
'src/Request/ListDirectoryRequest.cpp',
'src/Request/ListDirectoryPageRequest.cpp',
'src/Request/UploadFileRequest.cpp',
'src/Request/GetItemDataRequest.cpp',
'src/Request/DeleteItemRequest.cpp',
'src/Request/CreateDirectoryRequest.cpp',
'src/Request/MoveItemRequest.cpp',
'src/Request/RenameItemRequest.cpp',
'src/Request/ExchangeCodeRequest.cpp',
'src/Request/GetItemUrlRequest.cpp',
'src/Request/RecursiveRequest.cpp',
]
libcloudstorage_headers = [
'src/IItem.h',
'src/ICloudProvider.h',
'src/ICloudStorage.h',
'src/IRequest.h',
'src/ICrypto.h',
'src/IHttp.h',
'src/IHttpServer.h',
'src/IThreadPool.h'
]
install_headers(libcloudstorage_headers, subdir: 'libcloudstorage')
includes = include_directories('src')
libcloudstorage = library('cloudstorage',
libcloudstorage_sources,
version: dsm_soname_version,
soversion: dsm_soversion,
include_directories: includes,
dependencies: [dep_thread, dep_tinyxml2, dep_jsoncpp],
install: true)
dep_cloudstorage = declare_dependency(
link_with: libcloudstorage,
include_directories: includes)
pkg_mod = import('pkgconfig')
pkg_mod.generate(
libraries: libcloudstorage,
version: meson.project_version(),
name: 'libcloudstorage',
filebase: 'libcloudstorage',
description: 'cloudstorage access library')
qt5 = import('qt5')
dep_qt5 = dependency('qt5', modules: ['Core', 'Gui', 'Quick'])
libcloudbrowser_sources = files(
'bin/cloudbrowser/src/CloudContext.cpp',
'bin/cloudbrowser/src/CloudContext.cpp',
'bin/cloudbrowser/src/CloudItem.cpp',
'bin/cloudbrowser/src/HttpServer.cpp',
'bin/cloudbrowser/src/Request/CloudRequest.cpp',
'bin/cloudbrowser/src/Request/ListDirectory.cpp',
'bin/cloudbrowser/src/Request/GetThumbnail.cpp',
'bin/cloudbrowser/src/Request/GetUrl.cpp',
'bin/cloudbrowser/src/Request/CreateDirectory.cpp',
'bin/cloudbrowser/src/Request/DeleteItem.cpp',
'bin/cloudbrowser/src/Request/RenameItem.cpp',
'bin/cloudbrowser/src/Request/MoveItem.cpp',
'bin/cloudbrowser/src/Request/UploadItem.cpp',
'bin/cloudbrowser/src/Request/DownloadItem.cpp',
'bin/cloudbrowser/src/GenerateThumbnail.cpp',
'bin/cloudbrowser/src/AndroidUtility.cpp',
'bin/cloudbrowser/src/DesktopUtility.cpp',
'bin/cloudbrowser/src/WinRTUtility.cpp',
'bin/cloudbrowser/src/FileDialog.cpp',
'bin/cloudbrowser/src/Exec.cpp',
'bin/cloudbrowser/src/File.cpp',
)
libcloudbrowser_moc_headers = files(
'bin/cloudbrowser/src/CloudContext.h',
'bin/cloudbrowser/src/CloudItem.h',
'bin/cloudbrowser/src/Request/CloudRequest.h',
'bin/cloudbrowser/src/Request/ListDirectory.h',
'bin/cloudbrowser/src/Request/GetThumbnail.h',
'bin/cloudbrowser/src/Request/GetUrl.h',
'bin/cloudbrowser/src/Request/CreateDirectory.h',
'bin/cloudbrowser/src/Request/DeleteItem.h',
'bin/cloudbrowser/src/Request/RenameItem.h',
'bin/cloudbrowser/src/Request/MoveItem.h',
'bin/cloudbrowser/src/Request/UploadItem.h',
'bin/cloudbrowser/src/Request/DownloadItem.h',
'bin/cloudbrowser/src/FileDialog.h',
'bin/cloudbrowser/src/IPlatformUtility.h',
)
libcloudbrowser_res = files(
'bin/cloudbrowser/qtquickcontrols2.conf',
'bin/cloudbrowser/config.json',
'bin/cloudbrowser/qml/main.qml',
'bin/cloudbrowser/qml/WebView.qml',
'bin/cloudbrowser/qml/MediaPlayer.qml',
'bin/cloudbrowser/qml/VlcPlayer.qml',
'bin/cloudbrowser/qml/QtPlayer.qml',
'bin/cloudbrowser/qml/ImagePlayer.qml',
'bin/cloudbrowser/qml/RegisterPage.qml',
'bin/cloudbrowser/qml/RemoveProvider.qml',
'bin/cloudbrowser/qml/ProviderEntry.qml',
'bin/cloudbrowser/qml/ItemPage.qml',
'bin/cloudbrowser/qml/FileDialog.qml',
'bin/cloudbrowser/qml/QtFileDialog.qml',
'bin/cloudbrowser/qml/AndroidFileDialog.qml',
'bin/cloudbrowser/qml/WinRTFileDialog.qml',
'bin/cloudbrowser/qml/AboutView.qml',
'bin/cloudbrowser/resources/cloud.png',
'bin/cloudbrowser/resources/vlc.png',
'bin/cloudbrowser/resources/kde.png',
'bin/cloudbrowser/resources/qt.png',
'bin/cloudbrowser/resources/vlc-qt.png',
'bin/cloudbrowser/resources/gnu.png',
'bin/cloudbrowser/resources/jsoncpp.png',
'bin/cloudbrowser/resources/curl.png',
'bin/cloudbrowser/resources/cryptopp.png',
'bin/cloudbrowser/resources/tinyxml2.png',
'bin/cloudbrowser/resources/ffmpeg.png',
'bin/cloudbrowser/resources/providers/google.png',
'bin/cloudbrowser/resources/providers/onedrive.png',
'bin/cloudbrowser/resources/providers/dropbox.png',
'bin/cloudbrowser/resources/providers/amazons3.png',
'bin/cloudbrowser/resources/providers/box.png',
'bin/cloudbrowser/resources/providers/pcloud.png',
'bin/cloudbrowser/resources/providers/mega.png',
'bin/cloudbrowser/resources/providers/webdav.png',
'bin/cloudbrowser/resources/providers/youtube.png',
'bin/cloudbrowser/resources/providers/yandex.png',
'bin/cloudbrowser/resources/providers/gphotos.png',
'bin/cloudbrowser/resources/providers/hubic.png',
'bin/cloudbrowser/resources/providers/local.png',
'bin/cloudbrowser/resources/amazons3_login.html',
'bin/cloudbrowser/resources/default_error.html',
'bin/cloudbrowser/resources/default_success.html',
'bin/cloudbrowser/resources/mega_login.html',
'bin/cloudbrowser/resources/webdav_login.html',
'bin/cloudbrowser/resources/local_login.html',
)
if qt5.has_tools(required: true)
libcloudbrowser_moc = qt5.preprocess(
moc_headers: libcloudbrowser_moc_headers,
qresources: files('bin/cloudbrowser/resources.qrc'),
include_directories: ['bin/cloudbrowser/src', 'src'],
dependencies: dep_qt5)
endif
libcloudbrowser = library('cloudbrowser',
libcloudbrowser_sources, libcloudbrowser_moc,
include_directories: ['bin/cloudbrowser/src', 'src'],
dependencies: [dep_thread, dep_qt5, dep_cloudstorage])
dep_cloudbrowser = declare_dependency(
link_with: libcloudbrowser,
include_directories: ['bin/cloudbrowser/src'])
cloudbrowser = executable('cloudbrowser',
files('bin/cloudbrowser/src/main.cpp'),
dependencies: [dep_thread, dep_cloudbrowser])
commandlinebrowser = executable('commandlinebrowser',
files('examples/commandlinebrowser/main.cpp'),
dependencies: [dep_thread, dep_cloudstorage, dep_jsoncpp])
subdir('src')
subdir('examples/commandlinebrowser')
subdir('bin/cloudbrowser')
libcloudstorage_sources = files(
'Utility/CloudStorage.cpp',
'Utility/Auth.cpp',
'Utility/Item.cpp',
'Utility/Utility.cpp',
'Utility/CryptoPP.cpp',
'Utility/CurlHttp.cpp',
'Utility/MicroHttpdServer.cpp',
'Utility/ThreadPool.cpp',
'CloudProvider/CloudProvider.cpp',
'CloudProvider/GoogleDrive.cpp',
'CloudProvider/OneDrive.cpp',
'CloudProvider/Dropbox.cpp',
'CloudProvider/AmazonS3.cpp',
'CloudProvider/Box.cpp',
'CloudProvider/YouTube.cpp',
'CloudProvider/YandexDisk.cpp',
'CloudProvider/WebDav.cpp',
'CloudProvider/PCloud.cpp',
'CloudProvider/HubiC.cpp',
'CloudProvider/GooglePhotos.cpp',
'CloudProvider/MegaNz.cpp',
'CloudProvider/LocalDrive.cpp',
'Request/Request.cpp',
'Request/HttpCallback.cpp',
'Request/AuthorizeRequest.cpp',
'Request/DownloadFileRequest.cpp',
'Request/GetItemRequest.cpp',
'Request/ListDirectoryRequest.cpp',
'Request/ListDirectoryPageRequest.cpp',
'Request/UploadFileRequest.cpp',
'Request/GetItemDataRequest.cpp',
'Request/DeleteItemRequest.cpp',
'Request/CreateDirectoryRequest.cpp',
'Request/MoveItemRequest.cpp',
'Request/RenameItemRequest.cpp',
'Request/ExchangeCodeRequest.cpp',
'Request/GetItemUrlRequest.cpp',
'Request/RecursiveRequest.cpp',
)
libcloudstorage_headers = files(
'IItem.h',
'ICloudProvider.h',
'ICloudStorage.h',
'IRequest.h',
'ICrypto.h',
'IHttp.h',
'IHttpServer.h',
'IThreadPool.h'
)
install_headers(libcloudstorage_headers, subdir: 'libcloudstorage')
libcloudstorage_includes = include_directories('.')
libcloudstorage = library('cloudstorage',
libcloudstorage_sources,
version: dsm_soname_version,
soversion: dsm_soversion,
include_directories: libcloudstorage_includes,
dependencies: [dep_thread, dep_tinyxml2, dep_jsoncpp],
install: true)
dep_cloudstorage = declare_dependency(
link_with: libcloudstorage,
include_directories: libcloudstorage_includes)
pkg_mod = import('pkgconfig')
pkg_mod.generate(
libraries: libcloudstorage,
version: meson.project_version(),
name: 'libcloudstorage',
filebase: 'libcloudstorage',
description: 'cloudstorage access library')
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment