io.qt.internal.QtJambi_LibraryUtilities Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of qtjambi Show documentation
Show all versions of qtjambi Show documentation
QtJambi base module containing QtCore, QtGui and QtWidgets.
package io.qt.internal;
import io.qt.*;
import static io.qt.QtUtilities.*;
import java.util.*;
import static java.util.Arrays.*;
import static java.util.Collections.*;
/**
* @hidden
*/
final class QtJambi_LibraryUtilities {
final static int qtMajorVersion = 6;
final static int qtMinorVersion = 6;
final static int qtJambiPatch = 2;
final static Map> dependencies;
final static Properties properties = new Properties();
@QtUninvokable private static native void shutdown();
static{
Map> _dependencies = new TreeMap<>();
_dependencies.put("Qt3DAnimation", unmodifiableList(asList(
new Dependency("Qt3DCore")
,new Dependency("QtGui")
,new Dependency("Qt3DRender"))));
_dependencies.put("Qt3DCore", unmodifiableList(asList(
new Dependency("QtGui")
,new Dependency("QtConcurrent", LibraryRequirementMode.Mandatory)
,new Dependency("QtNetwork", LibraryRequirementMode.Mandatory))));
_dependencies.put("Qt3DExtras", unmodifiableList(asList(
new Dependency("Qt3DCore")
,new Dependency("Qt3DRender")
,new Dependency("Qt3DInput")
,new Dependency("QtGui")
,new Dependency("Qt3DLogic", LibraryRequirementMode.Mandatory))));
_dependencies.put("Qt3DInput", unmodifiableList(asList(
new Dependency("Qt3DCore")
,new Dependency("QtGui"))));
_dependencies.put("Qt3DLogic", unmodifiableList(asList(
new Dependency("Qt3DCore")
,new Dependency("QtGui", LibraryRequirementMode.Mandatory))));
_dependencies.put("Qt3DQuick", unmodifiableList(asList(
new Dependency("Qt3DCore")
,new Dependency("QtQml")
,new Dependency("QtGui", LibraryRequirementMode.Mandatory)
,new Dependency("QtQuick", LibraryRequirementMode.Mandatory))));
_dependencies.put("Qt3DQuickExtras", unmodifiableList(asList(
new Dependency("QtGui")
,new Dependency("Qt3DQuick")
,new Dependency("Qt3DCore")
,new Dependency("Qt3DExtras", LibraryRequirementMode.Mandatory)
,new Dependency("Qt3DInput", LibraryRequirementMode.Mandatory)
,new Dependency("Qt3DLogic", LibraryRequirementMode.Mandatory)
,new Dependency("Qt3DRender", LibraryRequirementMode.Mandatory)
,new Dependency("QtQml", LibraryRequirementMode.Mandatory))));
_dependencies.put("Qt3DQuickScene2D", unmodifiableList(asList(
new Dependency("Qt3DCore")
,new Dependency("QtQuick")
,new Dependency("Qt3DRender")
,new Dependency("Qt3DQuick", LibraryRequirementMode.Mandatory)
,new Dependency("QtGui", LibraryRequirementMode.Mandatory)
,new Dependency("QtQml", LibraryRequirementMode.Mandatory))));
_dependencies.put("Qt3DRender", unmodifiableList(asList(
new Dependency("Qt3DCore")
,new Dependency("QtGui")
,new Dependency("QtOpenGL")
,new Dependency("QtConcurrent", LibraryRequirementMode.Mandatory)
,new Dependency("QtShaderTools", LibraryRequirementMode.ProvideOnly))));
_dependencies.put("QtBluetooth", unmodifiableList(asList(
new Dependency("QtDBus", LibraryRequirementMode.Mandatory, "linux")
,new Dependency("QtNetwork", LibraryRequirementMode.Mandatory))));
_dependencies.put("QtCharts", unmodifiableList(asList(
new Dependency("QtGui")
,new Dependency("QtWidgets")
,new Dependency("QtOpenGL", LibraryRequirementMode.Mandatory)
,new Dependency("QtOpenGLWidgets", LibraryRequirementMode.Mandatory))));
_dependencies.put("QtDataVisualization", unmodifiableList(asList(
new Dependency("QtGui")
,new Dependency("QtOpenGL", LibraryRequirementMode.Mandatory))));
_dependencies.put("QtDesigner", unmodifiableList(asList(
new Dependency("QtGui")
,new Dependency("QtWidgets")
,new Dependency("QtPrintSupport", LibraryRequirementMode.ProvideOnly)
,new Dependency("QtWebEngineCore", LibraryRequirementMode.ProvideOnly)
,new Dependency("QtWebEngineWidgets", LibraryRequirementMode.ProvideOnly)
,new Dependency("QtUiPlugin", LibraryRequirementMode.Mandatory)
,new Dependency("QtXml", LibraryRequirementMode.Mandatory)
,new Dependency("QtOpenGLWidgets", LibraryRequirementMode.Mandatory))));
_dependencies.put("QtGui", unmodifiableList(asList(
new Dependency("QtSvg", LibraryRequirementMode.ProvideOnly)
,new Dependency("QtDBus", LibraryRequirementMode.ProvideOnly, "macos", "linux")
,new Dependency("QtNetwork", LibraryRequirementMode.ProvideOnly)
,new Dependency("QtOpenGL", LibraryRequirementMode.ProvideOnly)
,new Dependency("QtPdf", LibraryRequirementMode.ProvideOnly)
,new Dependency("QtWaylandClient", LibraryRequirementMode.ProvideOnly, "linux")
,new Dependency("QtWaylandEglClientHwIntegration", LibraryRequirementMode.ProvideOnly, "linux")
,new Dependency("QtWlShellIntegration", LibraryRequirementMode.ProvideOnly, "linux")
,new Dependency("QtEglFSDeviceIntegration", LibraryRequirementMode.ProvideOnly, "linux")
,new Dependency("QtXcbQpa", LibraryRequirementMode.ProvideOnly, "linux"))));
_dependencies.put("QtHelp", unmodifiableList(asList(
new Dependency("QtWidgets")
,new Dependency("QtGui")
,new Dependency("QtNetwork", LibraryRequirementMode.ProvideOnly, "linux", "macos")
,new Dependency("QtSql", LibraryRequirementMode.Mandatory))));
_dependencies.put("QtHttpServer", unmodifiableList(asList(
new Dependency("QtNetwork")
,new Dependency("QtWebSockets"))));
_dependencies.put("", unmodifiableList(asList(
new Dependency("QtWidgets")
,new Dependency("QtGui"))));
_dependencies.put("", unmodifiableList(asList(
new Dependency("QtGui", LibraryRequirementMode.Mandatory))));
_dependencies.put("", unmodifiableList(asList(
new Dependency("QtDesigner", LibraryRequirementMode.Mandatory))));
_dependencies.put("QtLocation", unmodifiableList(asList(
new Dependency("QtPositioning")
,new Dependency("QtQml")
,new Dependency("QtPositioningQuick", LibraryRequirementMode.Mandatory)
,new Dependency("QtQuickShapes", LibraryRequirementMode.Mandatory))));
_dependencies.put("QtMultimedia", unmodifiableList(asList(
new Dependency("QtGui")
,new Dependency("QtNetwork", LibraryRequirementMode.Mandatory))));
_dependencies.put("QtMultimediaWidgets", unmodifiableList(asList(
new Dependency("QtWidgets")
,new Dependency("QtMultimedia")
,new Dependency("QtGui"))));
_dependencies.put("QtNetwork", unmodifiableList(asList(
new Dependency("QtDBus", LibraryRequirementMode.ProvideOnly, "macos", "linux"))));
_dependencies.put("QtNetworkAuth", unmodifiableList(asList(
new Dependency("QtNetwork"))));
_dependencies.put("QtOpenGL", unmodifiableList(asList(
new Dependency("QtGui")
,new Dependency("libGLESv2", LibraryRequirementMode.Optional, "windows")
,new Dependency("libEGL", LibraryRequirementMode.Optional, "windows")
,new Dependency("opengl32sw", LibraryRequirementMode.Optional, "windows")
,new Dependency("d3dcompiler_47", LibraryRequirementMode.Optional, "windows"))));
_dependencies.put("QtOpenGLWidgets", unmodifiableList(asList(
new Dependency("QtWidgets")
,new Dependency("QtGui")
,new Dependency("QtOpenGL", LibraryRequirementMode.Mandatory))));
_dependencies.put("QtPdf", unmodifiableList(asList(
new Dependency("QtGui")
,new Dependency("QtNetwork", LibraryRequirementMode.Mandatory))));
_dependencies.put("QtPdfWidgets", unmodifiableList(asList(
new Dependency("QtWidgets")
,new Dependency("QtPdf")
,new Dependency("QtGui"))));
_dependencies.put("QtPrintSupport", unmodifiableList(asList(
new Dependency("QtWidgets")
,new Dependency("QtGui"))));
_dependencies.put("QtQml", unmodifiableList(asList(
new Dependency("QtNetwork")
,new Dependency("QtGui")
,new Dependency("QtQmlIntegration", LibraryRequirementMode.Mandatory))));
_dependencies.put("QtQuick", unmodifiableList(asList(
new Dependency("QtOpenGL")
,new Dependency("QtGui")
,new Dependency("QtQml")
,new Dependency("QtDBus", LibraryRequirementMode.Optional)
,new Dependency("QtQmlModels", LibraryRequirementMode.Mandatory))));
_dependencies.put("QtQuick3D", unmodifiableList(asList(
new Dependency("QtGui")
,new Dependency("QtQml")
,new Dependency("QtQuick", LibraryRequirementMode.Mandatory)
,new Dependency("QtQuick3DRuntimeRender", LibraryRequirementMode.Mandatory))));
_dependencies.put("QtQuickControls2", unmodifiableList(asList(
new Dependency("QtGui", LibraryRequirementMode.Mandatory)
,new Dependency("QtQuick", LibraryRequirementMode.Mandatory))));
_dependencies.put("QtQuickTest", unmodifiableList(asList(
new Dependency("QtQuick")
,new Dependency("QtWidgets", LibraryRequirementMode.Mandatory)
,new Dependency("QtTest", LibraryRequirementMode.Mandatory))));
_dependencies.put("QtQuickWidgets", unmodifiableList(asList(
new Dependency("QtWidgets")
,new Dependency("QtQuick")
,new Dependency("QtQml")
,new Dependency("QtGui"))));
_dependencies.put("QtRemoteObjects", unmodifiableList(asList(
new Dependency("QtNetwork"))));
_dependencies.put("QtSerialBus", unmodifiableList(asList(
new Dependency("QtNetwork")
,new Dependency("QtSerialPort", LibraryRequirementMode.Mandatory))));
_dependencies.put("QtSpatialAudio", unmodifiableList(asList(
new Dependency("QtMultimedia")
,new Dependency("QtGui"))));
_dependencies.put("QtSql", unmodifiableList(asList(
new Dependency("QtGui")
,new Dependency("QtWidgets"))));
_dependencies.put("QtStateMachine", unmodifiableList(asList(
new Dependency("QtGui"))));
_dependencies.put("QtSvg", unmodifiableList(asList(
new Dependency("QtGui"))));
_dependencies.put("QtSvgWidgets", unmodifiableList(asList(
new Dependency("QtWidgets")
,new Dependency("QtSvg")
,new Dependency("QtGui"))));
_dependencies.put("QtTest", unmodifiableList(asList(
new Dependency("QtGui")
,new Dependency("QtWidgets")
,new Dependency("QtDBus", LibraryRequirementMode.Optional))));
_dependencies.put("QtTextToSpeech", unmodifiableList(asList(
new Dependency("QtMultimedia"))));
_dependencies.put("QtUiTools", unmodifiableList(asList(
new Dependency("QtWidgets")
,new Dependency("QtGui")
,new Dependency("QtOpenGLWidgets", LibraryRequirementMode.Mandatory))));
_dependencies.put("QtVirtualKeyboard", unmodifiableList(asList(
new Dependency("QtGui")
,new Dependency("QtQml", LibraryRequirementMode.Mandatory)
,new Dependency("QtQuick", LibraryRequirementMode.Mandatory))));
_dependencies.put("QtWebChannel", unmodifiableList(asList(
new Dependency("QtQml", LibraryRequirementMode.Mandatory))));
_dependencies.put("QtWebChannelQuick", unmodifiableList(asList(
new Dependency("QtWebChannel")
,new Dependency("QtQml"))));
_dependencies.put("QtWebEngineCore", unmodifiableList(asList(
new Dependency("QtNetwork")
,new Dependency("QtGui")
,new Dependency("QtWebChannel")
,new Dependency("QtQuick", LibraryRequirementMode.Mandatory)
,new Dependency("QtPositioning", LibraryRequirementMode.Mandatory)
,new Dependency("QtDBus", LibraryRequirementMode.Optional))));
_dependencies.put("QtWebEngineQuick", unmodifiableList(asList(
new Dependency("QtWebEngineCore")
,new Dependency("QtGui", LibraryRequirementMode.Mandatory)
,new Dependency("QtQml", LibraryRequirementMode.Mandatory)
,new Dependency("QtQuick", LibraryRequirementMode.Mandatory)
,new Dependency("QtWebChannelQuick", LibraryRequirementMode.Mandatory))));
_dependencies.put("QtWebEngineWidgets", unmodifiableList(asList(
new Dependency("QtWidgets")
,new Dependency("QtGui")
,new Dependency("QtWebEngineCore")
,new Dependency("QtPrintSupport")
,new Dependency("QtQuickWidgets", LibraryRequirementMode.Optional))));
_dependencies.put("QtWebSockets", unmodifiableList(asList(
new Dependency("QtNetwork"))));
_dependencies.put("QtWebView", unmodifiableList(asList(
new Dependency("QtQuick", LibraryRequirementMode.Mandatory)
,new Dependency("QtGui", LibraryRequirementMode.Mandatory))));
_dependencies.put("QtWidgets", unmodifiableList(asList(
new Dependency("QtGui", LibraryRequirementMode.Mandatory))));
dependencies = unmodifiableMap(_dependencies);
Thread shutdownHook = null;
try {
if(!Boolean.getBoolean("io.qt.no-library-shutdown-hook")) {
shutdownHook = RetroHelper.newShutdownThread(QtJambi_LibraryUtilities::shutdown, "QtJambi_LibraryShutdown");
shutdownHook.setContextClassLoader(null);
Runtime.getRuntime().addShutdownHook(shutdownHook);
}
LibraryUtility.loadQtJambiLibrary();
} catch(Error t) {
if(shutdownHook!=null)
Runtime.getRuntime().removeShutdownHook(shutdownHook);
LibraryUtility.clear();
throw t;
} catch(Throwable t) {
if(shutdownHook!=null)
Runtime.getRuntime().removeShutdownHook(shutdownHook);
LibraryUtility.clear();
throw new ExceptionInInitializerError(t);
}
}
static void initialize() { };
private QtJambi_LibraryUtilities() throws InstantiationError { throw new InstantiationError("Cannot instantiate QtJambi_LibraryUtilities."); }
}