Skip to content
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

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft

Conversation

SolarLiner
Copy link

@SolarLiner SolarLiner commented Mar 8, 2020

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:

$ meson _build
$ ninja -C _build
$ ninja -C _build install

The conversion hasn't been done by transcribing the Automake script - furthermore not all "build features" have been translated yet:

  • Source file
  • Windows resources
  • Change CI

@lazka
Copy link

lazka commented Nov 20, 2020

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')
Copy link

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.

Copy link
Author

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.
lazka added a commit to lazka/wrapdb that referenced this pull request Sep 18, 2023
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.
jpakkane pushed a commit to mesonbuild/wrapdb that referenced this pull request Sep 19, 2023
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.
fennewald pushed a commit to fennewald/wrapdb that referenced this pull request Sep 29, 2023
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.
willwray pushed a commit to willwray/wrapdb that referenced this pull request Apr 22, 2024
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants