Skip to content

c/c++ package manager #11

@ReenigneArcher

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!

Type package name Conan Conda
System appindicator3-0.1 ? ?
System ayatana-appindicator3-0.1 ? ?
System/Fetch Boost boost boost-cpp
System doxygen doxygen doxygen
Submodule glad (generator) glad glad
System graphviz ? graphviz
Submodule googletest gtest gtest
System libcap libcap libcap
System libcurl libcurl libcurl
System libdrm libdrm libdrm
System libevdev libevdev evdev
System libnotify ? ?
System libva libva libva
System libva-drm ? ?
System minhook minhook ?
System miniupnpc miniupnpc ?
Submodule nanors ? ?
System nlohmann_json nlohmann_json nlohmann_json
System npm nodejs nodejs
Submodule nv-codec-headers nv-codec-headers ?
Submodule nvapi-open-source-sdk ? ?
Submodule nvfbc ? ?
System OpenSSL openssl openssl
System PkgConfig pkgconf pkgconfig
Submodule Simple-Web-Server ? ?
System systemd libsystemd libsystemd
System Threads ? ?
Submodule TPCircularBuffer ? ?
System Udev libudev libudev
System Wayland wayland wayland
Submodule wayland-protocols wayland-protocols wayland-protocols
Submodule wlr-protocols ? ?
System X11 xorg ? xorg-libx11
System zlib zlib zlib or libzlib

Packages that should not come from a package manager:

Type package name
Submodule build-deps (FFmpeg)
Submodule doxyconfig
Submodule inputtino
Submodule libdisplaydevice
Submodule moonlight-common-c
Submodule tray
Submodule ViGEmClient

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

Metadata

Metadata

Type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions