All Projects β†’ Skycoder42 β†’ Qpmx

Skycoder42 / Qpmx

Licence: bsd-3-clause
A frontend for qpm, to provide source and build caching

Projects that are alternatives of or similar to Qpmx

Ctk
A set of common support code for medical imaging, surgical navigation, and related purposes.
Stars: ✭ 498 (+3730.77%)
Mutual labels:  cross-platform, qt
Cpm.cmake
πŸ“¦ CMake's missing package manager. A small CMake script for setup-free, cross-platform, reproducible dependency management.
Stars: ✭ 560 (+4207.69%)
Mutual labels:  cross-platform, package-manager
Qtsharp
Mono/.NET bindings for Qt
Stars: ✭ 532 (+3992.31%)
Mutual labels:  cross-platform, qt
Qt Nice Frameless Window
Qt Frameless Window for both Windows and OS X, support Aero Snap, drop shadow on Windows, and support Native Style such as round corner, drop shadow on OS X. Based on QMainWindow.
Stars: ✭ 430 (+3207.69%)
Mutual labels:  cross-platform, qt
Liteide
LiteIDE is a simple, open source, cross-platform Go IDE.
Stars: ✭ 6,657 (+51107.69%)
Mutual labels:  cross-platform, qt
Qview
Practical and minimal image viewer
Stars: ✭ 460 (+3438.46%)
Mutual labels:  cross-platform, qt
Screencloud
Screenshot sharing application for Windows, Mac and Linux.
Stars: ✭ 537 (+4030.77%)
Mutual labels:  cross-platform, qt
Xmake
πŸ”₯ A cross-platform build utility based on Lua
Stars: ✭ 4,229 (+32430.77%)
Mutual labels:  cross-platform, package-manager
Flyingcarpet
Encrypted file transfer over ad hoc WiFi. No network infrastructure required, just two laptops in close range. Linux, Mac, and Windows.
Stars: ✭ 788 (+5961.54%)
Mutual labels:  cross-platform, qt
Cutelyst
A C++ Web Framework built on top of Qt, using the simple approach of Catalyst (Perl) framework.
Stars: ✭ 671 (+5061.54%)
Mutual labels:  cross-platform, qt
Mudlet
βš”οΈ A cross-platform, open source, and super fast MUD client with scripting in Lua
Stars: ✭ 427 (+3184.62%)
Mutual labels:  cross-platform, qt
Parcel
Cross-platform PowerShell package manager and provisioner
Stars: ✭ 17 (+30.77%)
Mutual labels:  cross-platform, package-manager
Toou 2d
基于Qt Quick(Qml) θ·¨εΉ³ε°ζŠ€ζœ―ζ‰“ι€ ηš„2Dζ‘†ζžΆ
Stars: ✭ 413 (+3076.92%)
Mutual labels:  cross-platform, qt
Qt.go
Qt binding for Go (Golang) aims get Go's compile speed again.
Stars: ✭ 487 (+3646.15%)
Mutual labels:  cross-platform, qt
Psi
XMPP client
Stars: ✭ 337 (+2492.31%)
Mutual labels:  cross-platform, qt
Olive
Free open-source non-linear video editor
Stars: ✭ 5,682 (+43607.69%)
Mutual labels:  cross-platform, qt
Lan Share
Cross platform LAN File transfer application built with Qt C++ framework
Stars: ✭ 317 (+2338.46%)
Mutual labels:  cross-platform, qt
Powertabeditor
A cross-platform guitar tablature editor.
Stars: ✭ 334 (+2469.23%)
Mutual labels:  cross-platform, qt
Notes
Note-taking application, write down your thoughts.
Stars: ✭ 612 (+4607.69%)
Mutual labels:  cross-platform, qt
Nodegui
A library for building cross-platform native desktop applications with Node.js and CSS πŸš€. React NodeGui : https://react.nodegui.org and Vue NodeGui: https://vue.nodegui.org
Stars: ✭ 7,324 (+56238.46%)
Mutual labels:  cross-platform, qt

[DEPRECATED] qpmx

The Advanced Qt package manager - a frontend/replacement for qpm.

This project has been deprecated in favor of qdep. Please migrate all you packages and project to qdep as qpmx will not be maintained anymore.


Travis Build Status Appveyor Build status Codacy Badge AUR

Features

qpmx is designed as a package manager tool without any backend. It is an advanced tool with support for qpm and git package repositories, and provides a bunch of features to make the usage as easy as possible. The main features ares:

  • global source caching, to reduce downloads
  • precompiles packages locally to speed up builds
    • but also supports build with sources directly
  • fully cross-platform
    • can be run on any "host" platform supported by Qt
    • can compile packages for any Qt platform
  • easy and simple qmake integration, with just two additional lines a the pro file
    • automatically added by qpmx on package installation
  • Supports translations and local includes for (static) library projects
  • Resources and Q_COREAPP_STARTUP_FUNCTION work as expected, even when used as compiled library
  • can search packages
  • Methods for developers:
    • Use a local copy instead of an actual package for debug purpose
      • still supports source and compile builds
    • provide methods to publish packages directly via qpmx

Backends

qpmx is a tool only, and thus needs external "backends" that provide it with packages. This is done via a simple plugin. Currently, two plugins are provided: git and qpm

QPM plugin

With the qpm plugin, qpmx can be used to install qpm packages, without loosing all the advantages like caching. It properly resolves dependencies, can search and is version-aware. It requires you to have qpm installed as well. Because qpm packages are not designed to be precompiled, there migth be issues with some packages. In case you encounter those, try switching to source mode.

GIT plugin

The git/github plugin supports any git repository. The urls are the package names, and the tags the versions. Tags must be real versions (e.g. 1.0.1). It cannot search, and may not support all url schemes. It also comes with a github provider, which can be used to have simpler names for github projects.

Installation

Examples

Have a look at https://github.com/Skycoder42/qpmx-sample-package. Its a project with a sample qpmx packages, as well as an application (https://github.com/Skycoder42/qpmx-sample-package/tree/master/qpmx-test) that uses this sample package. It's a git/github package with dependencies to qpm packages, to show off the possibilities.

General usage

Simply install packages using qpmx install (If not done automatically, prepare the pro file with qpm init --prepare <pro-file>). And thats it. Simply run qmake, and qpmx will automatically install, precompile and prepare packages, and include everything required to your pro file automatically.

Translations

To have translations properly working, you can use the TRANSLATIONS variable in both, qpmx packages and in your final project. Simply run make lrelease and translations will be compiled automatically. The same happens with files in EXTRA_TRANSLATIONS, but without joining them with qpmx package translations. You can use that one if you have more the 1 ts file per language. To install them, use the prepared target:

qpmx_ts_target.path = $$[QT_INSTALL_TRANSLATIONS] # or wherever you want to install them to
INSTALLS += qpmx_ts_target

Common use cases

Package Users

  • Installing a package: qpmx install [<provider>::]<package>[@<version>] Example: qpmx install com.github.skycoder42.qpmx-sample-package would search all providers for the package and then install the latest version.
  • Preparing a pro-file to include qpmx packages: qpmx init --prepare <pro-file> This is done automatically on the first install, but if you are missing the line, you can add it this way.
  • Search for a package qpmx search de.skycoder42.qtmvvm Will search all providers that support searching (qpm) for packages that match the given name.

Package Developers

  • Create a qpmx-file for a package: qpmx create --prepare qpm This will create/update a qpmx-file based of your inputs, and in this example, prepare it for publishing with the given provider.
  • Publish a qpmx package: qpmx publish 4.2.0 Publishes the package for all providers it was prepared for, with the given version of 4.2.0
  • Switch a package dependency to a local path (dev mode): qpmx dev add <provider>::<package>@<version> <path> This will use the local <path> as package source instead of downloading it from git/qpm/... (of course only for this qpmx.json project)

Special (qmake) stuff

qmake variables

Variable Description
QPMX_EXTRA_OPTIONS Additional option parameters for the qpmx init invocation
QPMX_TRANSLATE_EXTRA_OPTIONS Additional option parameters for the qpmx translate invocation
QPMX_HOOK_EXTRA_OPTIONS Additional option parameters for the qpmx hook invocation
PUBLIC_HEADERS qpmx package only: The headers to be used by users. If left empty, HEADERS is used
QPMX_WORKINGDIR The (sub)directory to use for generation of qpmx files. If left empty, the build directory is used
EXTRA_TRANSLATIONS Just like TRANSLATIONS, but qpmx will not join those files with the qpmx translations (but still compile)
QPMX_INSTALL_DIR A special variable set for prc files included in static qpmx usage. Contains the path where the binaries etc. have been installed to

Extra targets

Target Description
qpmx_ts_target A target to install compiled translations (.qm) files. Use like the target target (See https://doc.qt.io/qt-5/qmake-advanced-usage.html#installing-files)

Special CONFIG values

Value Description
qpmx_static qpmx package only: Is defined when a qpmx package is build as static library
qpmx_src_build qpmx package only: Is defined when a qpmx package is included as source package into a project
qpmx_no_libbuild Disable auto-detection of library builds. See section below

Note: If neither qpmx_static nor qpmx_src_build are defined, the package is used as static library in a project (typically, in your prc files)

QPMX libbuilds

In order to make it possible to use qpmx to create static and shared libraries that depend on qpmx packages but want to keep that dependency "internal", qpmx by default does 2 things to make this possible. Both can be disabled by adding qpmx_no_libbuild to the config.

  1. Private libs: The qpmx libraries are linked against as "private" libraries, effectively hiding them from for example la or prl files.
  2. Static library merging: Generated static libraries are merged with the compiled qpmx packages into one library that can be easily deployed.

Environment variables

Variable Description
QPMX_CACHE_DIR The directory to use as to cache qpmx stuff to. If not set or empty, QStandardPaths::CacheLocation is used.

Documentation

Planned for the future. You can run qpmx --help and qpmx <command> --help to see what the tool can do. it's mostly non-interactive, but a few commands do require user interaction.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].