Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.
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