Unverified Commit a22ee98c authored by Andrea Pappacoda's avatar Andrea Pappacoda Committed by GitHub

build(meson): only build on Linux (#986)

related to #41
related to #183
related to #760
closes     #960
related to #985

related to #6
related to #538
related to #649
related to #741
related to #874

closes     #525
parent deb362de
...@@ -11,7 +11,7 @@ SPDX-License-Identifier: Apache-2.0 ...@@ -11,7 +11,7 @@ SPDX-License-Identifier: Apache-2.0
[![autopkgtest](https://github.com/pistacheio/pistache/actions/workflows/autopkgtest.yaml/badge.svg)](https://github.com/pistacheio/pistache/actions/workflows/autopkgtest.yaml) [![autopkgtest](https://github.com/pistacheio/pistache/actions/workflows/autopkgtest.yaml/badge.svg)](https://github.com/pistacheio/pistache/actions/workflows/autopkgtest.yaml)
[![REUSE status](https://api.reuse.software/badge/github.com/pistacheio/pistache)](https://api.reuse.software/info/github.com/pistacheio/pistache) [![REUSE status](https://api.reuse.software/badge/github.com/pistacheio/pistache)](https://api.reuse.software/info/github.com/pistacheio/pistache)
Pistache is a modern and elegant HTTP and REST framework for C++. It is entirely written in pure-C++17 and provides a clear and pleasant API. Pistache is a modern and elegant HTTP and REST framework for C++. It is entirely written in pure-C++17[*](#linux-only) and provides a clear and pleasant API.
## Documentation ## Documentation
...@@ -252,3 +252,5 @@ int main() { ...@@ -252,3 +252,5 @@ int main() {
## Project status ## Project status
Pistache hasn't yet hit the 1.0 release. This means that the project is _unstable_ but not _unusable_. In fact, most of the code is production ready; you can use Pistache to develop a RESTful API without issues, but the HTTP client has a few issues in it that make it buggy. Pistache hasn't yet hit the 1.0 release. This means that the project is _unstable_ but not _unusable_. In fact, most of the code is production ready; you can use Pistache to develop a RESTful API without issues, but the HTTP client has a few issues in it that make it buggy.
<b id="linux-only">\*</b> While most code uses modern C++, Pistache makes use of some Linux-specific APIs where the standard library doesn't provide alternatives, and works only on that OS. See [#6](https://github.com/pistacheio/pistache/issues/6#issuecomment-242398225) for details. If you know how to help, please contribute a PR to add support for your desired platform :)
...@@ -17,6 +17,10 @@ project( ...@@ -17,6 +17,10 @@ project(
meson_version: '>=0.50.0' meson_version: '>=0.50.0'
) )
if host_machine.system() != 'linux'
error('Pistache currenly only supports Linux. See https://github.com/pistacheio/pistache/issues/6#issuecomment-242398225 for more information')
endif
compiler = meson.get_compiler('cpp') compiler = meson.get_compiler('cpp')
# Wrapping arguments inside a call to get_supported_arguments so that only supported arguments get applied # Wrapping arguments inside a call to get_supported_arguments so that only supported arguments get applied
......
VERSION_MAJOR 0 VERSION_MAJOR 0
VERSION_MINOR 0 VERSION_MINOR 0
VERSION_PATCH 002 VERSION_PATCH 002
VERSION_GIT_DATE 20210915 VERSION_GIT_DATE 20210927
SONAME_VERSION_MAJOR 0 SONAME_VERSION_MAJOR 0
SONAME_VERSION_MINOR 0 SONAME_VERSION_MINOR 0
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment