mirror of
https://github.com/MatMoul/g810-led.git
synced 2024-12-23 17:26:11 +00:00
04370a1dae
meson is a build system generator similar to cmake or autotools, but without the crazy of either of those languages. It provides a pleasant scripting language that is inspired by languages like python, but is not python. It has a non-turing complete language, with an emphasis on upstream functionality instead of downstream scripts. It has support for most Unix-like OSes, including linux, the four major BSDs, and macOS. this includes support for abstracting dependency discovery, using pkg-config, macOS frameworks, cmake, and some hand coded extensions. It provides nice features like builtin support for debug builds, changing from static to shared library builds, turning warning arguments on and off, generates for pkg-config, and other modern niceties. For g810-led this provides a number of advantages for distro packaging. Distros already use meson for projects like mesa, systemd, and gnome, so they're packaging wrappers already know how to configure, build, and install meson based packages. It also provides advantages when moving to other platforms, as meson understands the difference between clang, apple's clang fork, gcc, and a host of other compilers.
22 lines
749 B
Meson
22 lines
749 B
Meson
# This file is part of g810-led.
|
|
|
|
# g810-led is free software: you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation, version 3 of the License.
|
|
|
|
# g810-led is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with g810-led. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
option(
|
|
'usb',
|
|
type : 'combo',
|
|
choices : ['hidapi', 'libusb'],
|
|
value : 'hidapi',
|
|
description : 'Which USB implementation to use'
|
|
)
|