Skip to content

c/c++ package manager #11

Description

@ReenigneArcher

Is there an existing issue for this item?

  • I have searched the existing issues

Repositories

LizardByte/Sunshine, LizardByte/libdisplaydevice, LizardByte/tray

Languages/Skills/Technologies

C, C++, CMake

Description

It's getting a little bit old when system packages are updated in different package managers, introducing breaking changes, and it's very difficult if not impossible to pin the versions.

Below is a table showing the current Sunshine packages and their respective names in both Conan and Conda. Conan seems to be a bit more complete.

I've also been reading about cpm (https://github.com/cpm-cmake/CPM.cmake) which seems interesting, particularly about the ability to easily apply patches.

The other option is to move more packages to submodules. In all cases I think static linking whereever possible will alleviate annoying issues for users on Linux and macOS.

The end goal is to just simplify the build process and make the builds more repeatable/consistent. I know that Plex uses Conan, which is what drew me to investigate that one.

I also briefly looked at vcpkg, but it is missing a lot of important ones.

Any feedback/discussion would be welcomed!

Typepackage nameConanConda
Systemappindicator3-0.1??
Systemayatana-appindicator3-0.1??
System/FetchBoostboostboost-cpp
Systemdoxygendoxygendoxygen
Submoduleglad (generator)gladglad
Systemgraphviz?graphviz
Submodulegoogletestgtestgtest
Systemlibcaplibcaplibcap
Systemlibcurllibcurllibcurl
Systemlibdrmlibdrmlibdrm
Systemlibevdevlibevdevevdev
Systemlibnotify??
Systemlibvalibvalibva
Systemlibva-drm??
Systemminhookminhook?
Systemminiupnpcminiupnpc?
Submodulenanors??
Systemnlohmann_jsonnlohmann_jsonnlohmann_json
Systemnpmnodejsnodejs
Submodulenv-codec-headersnv-codec-headers?
Submodulenvapi-open-source-sdk??
Submodulenvfbc??
SystemOpenSSLopensslopenssl
SystemPkgConfigpkgconfpkgconfig
SubmoduleSimple-Web-Server??
Systemsystemdlibsystemdlibsystemd
SystemThreads??
SubmoduleTPCircularBuffer??
SystemUdevlibudevlibudev
SystemWaylandwaylandwayland
Submodulewayland-protocolswayland-protocolswayland-protocols
Submodulewlr-protocols??
SystemX11xorg ?xorg-libx11
Systemzlibzlibzlib or libzlib

Packages that should not come from a package manager:

Typepackage name
Submodulebuild-deps (FFmpeg)
Submoduledoxyconfig
Submoduleinputtino
Submodulelibdisplaydevice
Submodulemoonlight-common-c
Submoduletray
SubmoduleViGEmClient

Conda References:

Also see: https://moderncppdevops.com/pkg-mngr-roundup/ for other options.

Estimated Effort

effort:Extra-Large

Priority

priority:Medium

Target Milestone

6+ months

Dependencies

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

Projects

  • Status
    In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions