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

Add sassc 3.6.2 #1185

Merged
merged 2 commits into from Sep 19, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 8 additions & 0 deletions releases.json
Expand Up @@ -2492,6 +2492,14 @@
"4.1.0-1"
]
},
"sassc": {
"program_names": [
"sassc"
],
"versions": [
"3.6.2-1"
]
},
"sdl2": {
"dependency_names": [
"sdl2",
Expand Down
47 changes: 47 additions & 0 deletions subprojects/packagefiles/sassc/meson.build
@@ -0,0 +1,47 @@
project('sassc', 'c',
version: '3.6.2',
meson_version : '>= 0.48.0',
default_options: [
'c_std=c99',
'buildtype=debugoptimized',
])

version_conf_data = configuration_data()
version_conf_data.set('PACKAGE_VERSION', meson.project_version())

add_project_arguments(
'-D_POSIX_C_SOURCE',
'-DSASSC_VERSION="@0@"'.format(meson.project_version()),
language: ['c'])

configure_file(
input: 'sassc_version.h.in',
output: 'sassc_version.h',
configuration: version_conf_data)

libsass_dep = dependency(
'libsass',
fallback: ['libsass', 'libsass_dep'])

sassc_sources = ['sassc.c']

incs = []
if host_machine.system() == 'windows'
windows = import('windows')
win_res = windows.compile_resources(
'res/libsass.rc',
depend_files: ['res/libsass.ico'])
sassc_sources += [win_res]
incs += [include_directories(join_paths('win', 'posix'))]
lazka marked this conversation as resolved.
Show resolved Hide resolved
sassc_sources += [join_paths('win', 'posix', 'getopt.c')]
endif

sassc = executable(
'sassc',
sassc_sources,
dependencies: [libsass_dep],
include_directories: incs,
install: true,
)

meson.override_find_program('sassc', sassc)
9 changes: 9 additions & 0 deletions subprojects/sassc.wrap
@@ -0,0 +1,9 @@
[wrap-file]
directory = sassc-3.6.2
source_url = https://github.com/sass/sassc/archive/refs/tags/3.6.2.tar.gz
source_filename = sassc-3.6.2.tar.gz
source_hash = 608dc9002b45a91d11ed59e352469ecc05e4f58fc1259fc9a9f5b8f0f8348a03
patch_directory = sassc

[provide]
program_names = sassc