Commit Graph

64 Commits

Author SHA1 Message Date
1f2d081f99 Completely skip compiling native preset loading code if disabled. 2021-11-05 23:41:12 +01:00
ad313ad5c5 Update CMakeLists.txt 2021-08-23 18:37:57 +02:00
6bdc817b32 Add some new build options and use the C API in projectMSDL app.
Details:
- New options to control building projectM as either static, shared or both libraries.
- The reference UIs can now also be linked to the shared library if it is built.
- Added an option to disable building the SDL frontend. SDL2 is still required for tests and the Emscripten build.
- Initial option for building Doxygen documentation, but the feature is currently not implemented beyond that.
- The SDL frontend no longer derives from the projectM class, but uses the C-based API calls instead.
2021-08-23 18:37:57 +02:00
14f4bcac65 Added a C-style interface header and wrapper for projectM.
This will make it easier to integrate projectM into C applications and also removes potential issues of STL/C++ version differences between host and library.

Changed visibility of all symbols except the C API to "hidden". This effectively prevents the C++ API from being used in the shared library.

Added an option "ENABLE_CXX_INTERFACE" to re-enable the old export behaviour, displaying a prominent author warning after configuring the build if enabled.
2021-08-23 18:37:57 +02:00
a02106d358 Fix CMake options (#526)
* Fix SDL and Qt CMake option dependencies.

- Forcibly enable Qt if either the PulseAudio or JACK frontends were enabled.
- Fix condition for ENABLE_SDL, forcing it only if Emscripten or tests are enabled.
- Also check for SDL being enabled in the SDL app dir and skip it if SDL is disabled.
- Spell PulseAudio correctly.

* Add a failure message for the missing GLES support.

* Fixed another broken GLES check.
2021-08-17 22:00:35 +03:00
679c469e50 Updated Qt UIs and CMake build scripts to support Qt 6.
Changes:
- Added new parameter QT_VERSION to let the user force a specific Qt version to be searched.
- Auto-detect Qt version if not forced, preferring Qt 6.
- Updated the projectM render widget to use QOpenGLWidget instead of the deprecated QGLWidget.
- Changed some calls and types to be compatible between Qt 5 and 6, e.g. QXmlStreamReader.
- Some small fixes pointed out by assertions in the debug Qt 6 version.
2021-08-11 11:57:12 +02:00
b3c28c42ef Llvm 10 (#470)
* Compiles with llvm 10
* assume/require LLVM_VERSION_MAJOR >= 10
* MAKE_CXX_STANDARD 14
2021-06-18 12:56:08 -07:00
521eff97a5 Add GitHub Action to build with CMake on Windows, Linux and macOS. 2021-06-10 18:05:20 +02:00
83a08f3a6c Add CMake build system files (only as "autotools" replacement for now) (#487)
* Initial set of CMake files with options and some targets.

* Added all targets to build libprojectM shared/static libraries.

* Updated currently unused (and seemingly unfinished) SDL-based JACK visualizer to use SDL2.

* Converted more targets to CMake and added install directives.

New targets:
- Presets
- Test application
- Pulseaudio/Qt visualizer
- JACK/Qt visualizer
- JACK/SDL2 visualizer

* Added libvisual plug-in target. Changed default install paths to relative.

* Use debug suffix for libraries by default, but make it configurable.

* Added target for projectMSDL application.

* Added CMake code for the ENABLE_THREADING switch, install desktop, icon, manpage and pkgconfig files.

Also added some dependency version output to the post-configuration summary and made Qt switch implicit based on Pulsaudio/JACK UI selection.

* Added CMake package config files and exported targets. Some restructuring of libprojectM targets.

Kept pkgconfig module name for CMake.

* Add -name parameter to RCC command in existing autotools Makefile.

Fixes symbol name mismatch with CMake auto-generated resources which always add the QRC file basename as resource name.

* Display an author warning that CMake files aren't production ready yet.

* Prefer system GLM library, with fallback to bundled version if not available.

Removed the option to use the system library in favor of automated detection.

* Link correct OpenGL libraries, the previous ones were Linux-specific, with GLVND not being required.

* Recreate config.h as generated by autoheader, even if most defines weren't used.

Will also force-include the file on all platforms.

* Add option to build native preset libraries, disabled by default.

* Only install "tests" presets if building the test suite.

* Fix linking LLVM libraries to libprojectM.

Wasn't inherited anymore due to changing MilkdropPresetFactory library type to OBJECT.

* Use INTERFACE IMPORTED libraries in find scripts, set minimum CMake version to 3.19.

* Added missing config.h template and renamed to config.h.cmake.in, was in the .gitignore list.

* Added Windows-specific CMake configuration and some related code changes.

These changes enable building for Windows with both Visual Studio and Ninja project generators. Installation and packaging for Windows is not yet supported. Source groups, filters and support for embedded debug symbols will be added later.

* Link required CoreFoundation framework on MacOS.

* Work around SDL2 include dir issue (upstream SDL bug #4004) by removing "/SDL2" from the path.

* Fix existing Windows build by moving bundled GLEW files into "GL" subdir.

* Place libprojectM-related targets in a "libprojectM" folder in IDEs supporting it, e.g. Visual Studio.

* Fix displaying whether system GLM is used or not in config summary.

* Disable threading support on Windows unless we don't rely solely on pthreads anymore.

* Add version check for SDL2 (>=2.0.5).

* Complete overhaul of build instructions, adding CMake build and use instructions.

* Added check for OpenMP support and fixed a compiler error in OMPTL.

Also moved compiler warning checks to features.cmake and added the DEBUG define for debug builds.

* Added a quick start guide for building on Debian and Ubuntu.

* Lower minimum required CMake version to 3.14.

Co-authored-by: Kai Blaschke <kai.blaschke@gdata.de>
2021-06-04 16:48:20 +03:00
17029ce961 removing cruft, updating readme 2017-09-18 15:29:38 -07:00
135f298579 fix GL and dirent header inclusion on emscripten, define it 2014-06-19 00:47:57 -07:00
b2c0fcd7bb Add possibility to use system fonts & fix font-loading bug in renderer
git-svn-id: https://projectm.svn.sourceforge.net/svnroot/projectm/trunk@1396 6778bc44-b910-0410-a7a0-be141de4315d
2012-04-14 14:26:11 +00:00
36a13b163f Fix projectM build process
git-svn-id: https://projectm.svn.sourceforge.net/svnroot/projectm/trunk@1368 6778bc44-b910-0410-a7a0-be141de4315d
2012-01-01 19:04:00 +00:00
20be06f73d cpack fixes, publishing updateS
git-svn-id: https://projectm.svn.sourceforge.net/svnroot/projectm/trunk@1322 6778bc44-b910-0410-a7a0-be141de4315d
2009-12-06 01:14:21 +00:00