-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Build with Meson #269
base: master
Are you sure you want to change the base?
Conversation
similar to libsass I created a meson port of sassc for gtk some ago: lazka@8280337 (tested on Linux/Windows) If there is anything I can help with feel free to ping me. |
meson.build
Outdated
project('sassc', 'c', version: '3.6.2', default_options: ['c_std=c11']) | ||
|
||
if target_machine.system() == 'windows' | ||
add_project_arguments('-D_WIN32', language: 'c') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
_WIN32 is predefined on Windows, no need to set it again.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, thanks for the heads-up I didn't know.
The define is already set on the platform.
This is a direct copy of https://github.com/lazka/sassc/tree/meson which I've created for gtk back in the days. This project is in a similar situation as mesonbuild#1153. There exists an upstream PR for adding meson (sass/sassc#269), but the project is unmaintained, so unlikely to see progress there.
This is a direct copy of https://github.com/lazka/sassc/tree/meson which I've created for gtk back in the days. This project is in a similar situation as #1153. There exists an upstream PR for adding meson (sass/sassc#269), but the project is unmaintained, so unlikely to see progress there.
This is a direct copy of https://github.com/lazka/sassc/tree/meson which I've created for gtk back in the days. This project is in a similar situation as mesonbuild#1153. There exists an upstream PR for adding meson (sass/sassc#269), but the project is unmaintained, so unlikely to see progress there.
This is a direct copy of https://github.com/lazka/sassc/tree/meson which I've created for gtk back in the days. This project is in a similar situation as mesonbuild#1153. There exists an upstream PR for adding meson (sass/sassc#269), but the project is unmaintained, so unlikely to see progress there.
The Meson build system is a build system designed as a Ninja front-end. It is significantly faster than Autotools and (IMHO) much easier to work with.
Meson also natively supports dependencies either as system dependencies (using pkg-config) or subprojects (where Meson will build another Meson-based (or more recently CMake-based) project to use with the current project). This I use to automatically build
libsass
if it isn't found on the system, through sass/libsass#3073.Usage:
The conversion hasn't been done by transcribing the Automake script - furthermore not all "build features" have been translated yet: