bbc / bmx

Library and utilities to read and write broadcasting media files. Primarily supports the MXF file format
BSD 3-Clause "New" or "Revised" License
57 stars 16 forks source link

libmxf: use cmake vars to set default platform name #84

Open philipnbbc opened 3 weeks ago

philipnbbc commented 3 weeks ago

The platform name is used in the (human readable) MXF Identification::Platform property value. This commit keeps the existing names for known platforms defines to avoid breaking scripts that (wrongly) rely on it. If the platform is not known then the name is provided by CMAKE's CMAKE_SYSTEM_NAME and CMAKE_SYSTEM_PROCESSOR variables.

Fixes #83

philipnbbc commented 3 weeks ago

I might need to take another look at this because I'm guessing this won't work for macOS Universal binaries as the config.h file is created at configure time.