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
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
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.

endif

sassc_version = configure_file(input: 'sassc_version.h.in', output: 'sassc_version.h',
configuration: {
'PACKAGE_VERSION': meson.version()
}
)

deps = [
dependency('libsass', required: true, fallback: ['sass', 'sass_dep'])
]

sass_exe = executable('sassc', 'sassc.c', dependencies: deps, install: true)
1 change: 1 addition & 0 deletions subprojects/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/sass
3 changes: 3 additions & 0 deletions subprojects/sass.wrap
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[wrap-git]
url = https://github.com/solarliner/libsass
revision = feature/meson