Skip to content
Snippets Groups Projects
  1. Jul 26, 2024
  2. Jul 18, 2021
  3. Jan 06, 2019
  4. Jan 03, 2019
  5. Dec 26, 2018
  6. Apr 24, 2018
  7. Apr 23, 2018
  8. Apr 05, 2018
  9. Mar 27, 2018
  10. Mar 07, 2018
  11. Jan 22, 2018
  12. Jan 21, 2018
  13. Dec 08, 2017
  14. Oct 15, 2017
    • Joakim Söderberg's avatar
      Fix cmake comments · 9e977ef8
      Joakim Söderberg authored
      See #92
      
      - Turn off libwebsockets options properly (including SSL since it's not used)
      - Default WITH_SYSTEMD_USER to OFF, since running as a non-root user means
        we need to setup udev rules which is not done yet
      - Added some TODO:s on possible improvements
      9e977ef8
  15. Oct 07, 2017
  16. Sep 17, 2017
  17. Aug 13, 2017
  18. Aug 09, 2017
  19. Aug 01, 2017
  20. Jul 29, 2017
  21. Jul 22, 2017
    • Joakim Söderberg's avatar
      CMake, Systemd, debian package support · 21fd0454
      Joakim Söderberg authored
      CMake support was added as an alternative to the pure Makefile that already exists. CMake supports generating build files for a large set of different platforms. Makefiles, XCode project, Visual Studio and so on...
      
      The CMake project includes build rules for installing, including running the server as a daemon using SystemD.
      Adding similar support for init would be possible as well.
      
      CMake is similar to configure + autoconf, so it is possible to turn on and off different features before compiling.
      
      The main reason for this change was to create an easily reproducible way to install the Fadecandy server as a daemon.
      
      The target for these efforts was mainly the Raspberry Pi platform using the Raspbian distribution that uses Debian packages for installation. So this current implementation has focused on enabling building Debian Packages.
      However CMake/CPack supports other installers for other platforms such as RPM, NSIS and OSX installers to name a few. Adding support for those wouldn't be hard.
      
      Also to support the use case of running the server as a system daemon, I have also added a default config path that the fcserver tries to read under:
        /etc/fcserver/config.json
      
      If no config is given on the command line explicitly, fcserver first looks here before using the default config.
      
      To build using CMake (Tested to work on Raspbian and OSX):
      
      ```bash
      mkdir build
      cd build
      cmake ..
      make
      make install  # Manual install (see below for debian package)
      ```
      
      To list available CMake options:
      ```bash
      cmake -LH ..
      ```
      
      To build the debian package:
      ```bash
      cpack -G DEB  # Must be done after build instructions above.
      ```
      
      By default the debian package runs a post-installation script that will create a "fadecandy" user that the daemon is run under. This can be turned off using a CMake option.
      21fd0454
  22. Jun 18, 2017
Loading