-
Notifications
You must be signed in to change notification settings - Fork 259
Add libsass 3.6.4 #1153
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
Merged
Merged
Add libsass 3.6.4 #1153
Changes from 9 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
27dcf32
Add libsass 3.6.4
lazka d81f297
libsass: add_project_arguments: don't check the compiler and don't pa…
lazka 2eb8141
libsass: use dependency('dl') with newer meson
lazka 3f10502
libsass: allow static builds
lazka 43c7eb3
libsass: remove -Wno-non-virtual-dtor, no longer needed
lazka 6d6243f
libsass: libdl is required on non-windows
lazka b565450
libsass: only define ADD_EXPORTS on Windows
lazka 93987b8
libsass: use the pkgconfig module for creating the .pc file
lazka 2f0542c
libsass: set soversion to 1
lazka c63ff45
libsass: use dependency() instead of declare_dependency()
lazka File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| [wrap-file] | ||
| directory = libsass-3.6.4 | ||
| source_url = https://github.com/sass/libsass/archive/refs/tags/3.6.4.tar.gz | ||
| source_filename = libsass-3.6.4.tar.gz | ||
| source_hash = f9484d9a6df60576e791566eab2f757a97fd414fce01dd41fc0a693ea5db2889 | ||
| patch_directory = libsass | ||
|
|
||
| [provide] | ||
| libsass = libsass_dep |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| install_headers('sass.h', 'sass2scss.h') | ||
|
|
||
| version_conf_data = configuration_data() | ||
| version_conf_data.set('PACKAGE_VERSION', meson.project_version()) | ||
|
|
||
| version_h = configure_file( | ||
| input: 'sass/version.h.in', | ||
| output: 'version.h', | ||
| configuration: version_conf_data) | ||
|
|
||
| install_headers( | ||
| 'sass/base.h', 'sass/context.h', 'sass/functions.h', 'sass/values.h', | ||
| version_h, | ||
| subdir: 'sass') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| project('libsass', 'c', 'cpp', | ||
| version: '3.6.4', | ||
| meson_version : '>= 0.48.0', | ||
| default_options: [ | ||
| 'c_std=c99', | ||
| 'cpp_std=c++11', | ||
| 'buildtype=debugoptimized', | ||
| ]) | ||
|
|
||
| add_project_arguments( | ||
| '-DLIBSASS_VERSION="@0@"'.format(meson.project_version()), | ||
| language: ['cpp']) | ||
|
|
||
| inc = include_directories('include') | ||
| winres_path = files(join_paths('res', 'resource.rc')) | ||
|
|
||
| subdir('include') | ||
| subdir('src') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,114 @@ | ||
| cpp_sources = [ | ||
| 'ast.cpp', | ||
| 'ast_values.cpp', | ||
| 'ast_supports.cpp', | ||
| 'ast_sel_cmp.cpp', | ||
| 'ast_sel_unify.cpp', | ||
| 'ast_sel_super.cpp', | ||
| 'ast_sel_weave.cpp', | ||
| 'ast_selectors.cpp', | ||
| 'context.cpp', | ||
| 'constants.cpp', | ||
| 'fn_utils.cpp', | ||
| 'fn_miscs.cpp', | ||
| 'fn_maps.cpp', | ||
| 'fn_lists.cpp', | ||
| 'fn_colors.cpp', | ||
| 'fn_numbers.cpp', | ||
| 'fn_strings.cpp', | ||
| 'fn_selectors.cpp', | ||
| 'color_maps.cpp', | ||
| 'environment.cpp', | ||
| 'ast_fwd_decl.cpp', | ||
| 'bind.cpp', | ||
| 'file.cpp', | ||
| 'util.cpp', | ||
| 'util_string.cpp', | ||
| 'json.cpp', | ||
| 'units.cpp', | ||
| 'values.cpp', | ||
| 'plugins.cpp', | ||
| 'source.cpp', | ||
| 'position.cpp', | ||
| 'lexer.cpp', | ||
| 'parser.cpp', | ||
| 'parser_selectors.cpp', | ||
| 'prelexer.cpp', | ||
| 'eval.cpp', | ||
| 'eval_selectors.cpp', | ||
| 'expand.cpp', | ||
| 'listize.cpp', | ||
| 'cssize.cpp', | ||
| 'extender.cpp', | ||
| 'extension.cpp', | ||
| 'stylesheet.cpp', | ||
| 'output.cpp', | ||
| 'inspect.cpp', | ||
| 'emitter.cpp', | ||
| 'check_nesting.cpp', | ||
| 'remove_placeholders.cpp', | ||
| 'sass.cpp', | ||
| 'sass_values.cpp', | ||
| 'sass_context.cpp', | ||
| 'sass_functions.cpp', | ||
| 'sass2scss.cpp', | ||
| 'backtrace.cpp', | ||
| 'operators.cpp', | ||
| 'ast2c.cpp', | ||
| 'c2ast.cpp', | ||
| 'to_value.cpp', | ||
| 'source_map.cpp', | ||
| 'error_handling.cpp', | ||
| 'memory/allocator.cpp', | ||
| 'memory/shared_ptr.cpp', | ||
| 'utf8_string.cpp', | ||
| 'base64vlq.cpp', | ||
| ] | ||
|
|
||
| c_sources = [ | ||
| 'cencode.c', | ||
| ] | ||
|
|
||
| sass_sources = cpp_sources + c_sources | ||
|
|
||
| if host_machine.system() == 'windows' | ||
| windows = import('windows') | ||
| sass_sources += [windows.compile_resources(winres_path)] | ||
| endif | ||
|
|
||
| if host_machine.system() != 'windows' | ||
| if meson.version().version_compare('>= 0.62') | ||
| dl_dep = dependency('dl') | ||
| else | ||
| dl_dep = cc.find_library('dl', required : false) | ||
| endif | ||
| else | ||
| dl_dep = declare_dependency() | ||
| endif | ||
|
|
||
| lib_args = [] | ||
| if host_machine.system() == 'windows' and get_option('default_library') != 'static' | ||
| lib_args += ['-DADD_EXPORTS'] | ||
| endif | ||
|
|
||
| libsass = library( | ||
| 'sass', | ||
| sass_sources, | ||
| dependencies: [dl_dep], | ||
| c_args: lib_args, | ||
| cpp_args: lib_args, | ||
| include_directories: inc, | ||
| soversion: '1', | ||
| install: true) | ||
|
|
||
| libsass_dep = declare_dependency( | ||
| link_with: libsass, | ||
| include_directories: [inc]) | ||
|
|
||
| pkg = import('pkgconfig') | ||
| pkg.generate( | ||
| libsass, | ||
| name: 'libsass', | ||
| description: 'A C implementation of a Sass compiler', | ||
| url: 'https://github.com/sass/libsass', | ||
| ) | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.