2019-09-23 18:37:17 +03:00
|
|
|
/*
|
2021-01-05 13:17:11 +03:00
|
|
|
* Copyright (C) 2018-2021 QuasarApp.
|
2019-09-23 18:37:17 +03:00
|
|
|
* Distributed under the lgplv3 software license, see the accompanying
|
|
|
|
* Everyone is permitted to copy and distribute verbatim copies
|
|
|
|
* of this license document, but changing it is not allowed.
|
|
|
|
*/
|
|
|
|
|
2019-03-19 21:50:05 +03:00
|
|
|
#ifndef LIBCREATOR_H
|
|
|
|
#define LIBCREATOR_H
|
|
|
|
|
|
|
|
#include <QMap>
|
|
|
|
#include <QString>
|
|
|
|
#include <QStringList>
|
|
|
|
#include <dependenciesscanner.h>
|
|
|
|
|
|
|
|
class LibCreator
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
QString path;
|
|
|
|
QStringList copyedLibs;
|
|
|
|
|
|
|
|
QMap<QString, QStringList> libDep;
|
|
|
|
QMap<QString, Platform> libplatform;
|
|
|
|
void createLib(const QString& resLib, const QStringList& dep, Platform platform);
|
|
|
|
|
|
|
|
void initLinux64();
|
|
|
|
void initWin32();
|
|
|
|
void initWin64();
|
|
|
|
public:
|
|
|
|
LibCreator(const QString& path);
|
|
|
|
const QStringList &getLibs() const;
|
|
|
|
const QMap<QString, QStringList>& getLibsDep() const;
|
|
|
|
~LibCreator();
|
|
|
|
const QMap<QString, Platform>& getLibplatform() const;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // LIBCREATOR_H
|