Skip to content

Commit 4634591

Browse files
committed
Add sassc 3.6.2
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.
1 parent 8887f3e commit 4634591

File tree

3 files changed

+64
-0
lines changed

3 files changed

+64
-0
lines changed

releases.json

+8
Original file line numberDiff line numberDiff line change
@@ -2492,6 +2492,14 @@
24922492
"4.1.0-1"
24932493
]
24942494
},
2495+
"sassc": {
2496+
"program_names": [
2497+
"sassc"
2498+
],
2499+
"versions": [
2500+
"3.6.2-1"
2501+
]
2502+
},
24952503
"sdl2": {
24962504
"dependency_names": [
24972505
"sdl2",
+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
project('sassc', 'c',
2+
version: '3.6.2',
3+
meson_version : '>= 0.48.0',
4+
default_options: [
5+
'c_std=c99',
6+
'buildtype=debugoptimized',
7+
])
8+
9+
version_conf_data = configuration_data()
10+
version_conf_data.set('PACKAGE_VERSION', meson.project_version())
11+
12+
add_project_arguments(
13+
'-D_POSIX_C_SOURCE',
14+
'-DSASSC_VERSION="@0@"'.format(meson.project_version()),
15+
language: ['c'])
16+
17+
configure_file(
18+
input: 'sassc_version.h.in',
19+
output: 'sassc_version.h',
20+
configuration: version_conf_data)
21+
22+
libsass_dep = dependency(
23+
'libsass',
24+
fallback: ['libsass', 'libsass_dep'])
25+
26+
sassc_sources = ['sassc.c']
27+
28+
incs = []
29+
if host_machine.system() == 'windows'
30+
windows = import('windows')
31+
win_res = windows.compile_resources(
32+
'res/libsass.rc',
33+
depend_files: ['res/libsass.ico'])
34+
sassc_sources += [win_res]
35+
incs += [include_directories(join_paths('win', 'posix'))]
36+
sassc_sources += [join_paths('win', 'posix', 'getopt.c')]
37+
endif
38+
39+
sassc = executable(
40+
'sassc',
41+
sassc_sources,
42+
dependencies: [libsass_dep],
43+
include_directories: incs,
44+
install: true,
45+
)
46+
47+
meson.override_find_program('sassc', sassc)

subprojects/sassc.wrap

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[wrap-file]
2+
directory = sassc-3.6.2
3+
source_url = https://github.com/sass/sassc/archive/refs/tags/3.6.2.tar.gz
4+
source_filename = sassc-3.6.2.tar.gz
5+
source_hash = 608dc9002b45a91d11ed59e352469ecc05e4f58fc1259fc9a9f5b8f0f8348a03
6+
patch_directory = sassc
7+
8+
[provide]
9+
program_names = sassc

0 commit comments

Comments
 (0)