Guides for developers
GitHub repositoryHomepage
  • Getting started
  • Core
    • Glossary
    • The structure of the LMMS core
      • Initializations and cleanups
        • For core
      • Accessing to core classes
    • The structure of an LMMS project
    • Tracks and track containers
      • Tracks and clips
      • Track containers
    • The pattern system
    • Play handles
      • NotePlayHandle
      • InstrumentPlayHandle
      • SamplePlayHandle
    • Instruments
      • The type of instruments
      • Processing in instruments
        • Per-note processing
    • Audio effects
    • Automation and controllers
      • Automation
        • Processing automation
      • Controllers
    • Controlling playback
    • The audio rendering engine of LMMS
      • Stage 1: collect play handles and process automation
      • Stage 2: render notes and instruments
      • Step 3: mix and master
    • Threading and synchronization
    • Data serialization
      • Overview
      • Relevant classes
      • Upgrading data files
    • Internal routing of events and signals
      • Audio signals
      • MIDI events
    • Audio and MIDI I/O
      • Supported backends and features
  • GUI
    • The initialization process of LMMS GUI
    • UI components of LMMS
  • Build system
    • CMake and LMMS
    • Source directory structure
    • Useful variables/macros
  • Plugin system
    • Plugin types
    • Plugin API
      • Sub-plugin API
    • Loading plugins from LMMS
  • Unit tests
    • Writing unit tests
Powered by GitBook
On this page
  • CMake variables
  • C/C++ macros

Was this helpful?

  1. Build system

Useful variables/macros

CMake variables

TODO

C/C++ macros

The CMake build script generates lmmsconfig.h based on those CMake variables. You can find the list of possible macro definitions in src/lmmsconfig.h.in.

Checking target OS

There are list of macros which will be defined for correspoding target OS. Don't try to check the value, check if they are defined instead.

  • LMMS_BUILD_WIN32: Windows, either 32bit or 64bit

  • LMMS_BUILD_WIN64: Windows 64bit

  • LMMS_BUILD_APPLE: macOS

  • LMMS_BUILD_LINUX: Linux

  • LMMS_BUILD_OPENBSD: OpenBSD

  • LMMS_BUILD_FREEBSD: FreeBSD

  • LMMS_BUILD_HAIKU: Haiku

PreviousSource directory structureNextPlugin types

Last updated 4 years ago

Was this helpful?