Skip to content

Commit 9693ae7

Browse files
committed
[WIP] Add meson.build for project
1 parent 8f59b01 commit 9693ae7

File tree

6 files changed

+99
-0
lines changed

6 files changed

+99
-0
lines changed

contrib/meson.build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
plugin = shared_library('plugin', 'plugin.cpp', dependencies: [sass_dep])

include/meson.build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
sass_inc = include_directories('.')

meson.build

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
project('libsass', 'c', 'cpp', version: '3.6.4', default_options: ['cpp_std=c++11'])
2+
3+
if target_machine.system() == 'windows'
4+
add_project_arguments('-D_WIN32', language: 'cpp')
5+
endif
6+
7+
deps = [
8+
meson.get_compiler('cpp').find_library('dl', required:true)
9+
]
10+
11+
subdir('include')
12+
subdir('src')
13+
subdir('contrib')

src/memory/meson.build

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
src_memory = files(
2+
'allocator.cpp',
3+
'shared_ptr.cpp'
4+
)
5+
6+
memory_lib = static_library('memory', src_memory, include_directories: sass_inc)

src/meson.build

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
src_cpp = files(
2+
'ast.cpp',
3+
'ast2c.cpp',
4+
'ast_fwd_decl.cpp',
5+
'ast_sel_cmp.cpp',
6+
'ast_sel_super.cpp',
7+
'ast_sel_unify.cpp',
8+
'ast_sel_weave.cpp',
9+
'ast_selectors.cpp',
10+
'ast_supports.cpp',
11+
'ast_values.cpp',
12+
'backtrace.cpp',
13+
'base64vlq.cpp',
14+
'bind.cpp',
15+
'c2ast.cpp',
16+
'check_nesting.cpp',
17+
'color_maps.cpp',
18+
'constants.cpp',
19+
'context.cpp',
20+
'cssize.cpp',
21+
'emitter.cpp',
22+
'environment.cpp',
23+
'error_handling.cpp',
24+
'eval.cpp',
25+
'eval_selectors.cpp',
26+
'expand.cpp',
27+
'extender.cpp',
28+
'extension.cpp',
29+
'file.cpp',
30+
'fn_colors.cpp',
31+
'fn_lists.cpp',
32+
'fn_maps.cpp',
33+
'fn_miscs.cpp',
34+
'fn_numbers.cpp',
35+
'fn_selectors.cpp',
36+
'fn_strings.cpp',
37+
'fn_utils.cpp',
38+
'inspect.cpp',
39+
'json.cpp',
40+
'lexer.cpp',
41+
'listize.cpp',
42+
'operators.cpp',
43+
'output.cpp',
44+
'parser.cpp',
45+
'parser_selectors.cpp',
46+
'plugins.cpp',
47+
'position.cpp',
48+
'prelexer.cpp',
49+
'remove_placeholders.cpp',
50+
'sass.cpp',
51+
'sass2scss.cpp',
52+
'sass_context.cpp',
53+
'sass_functions.cpp',
54+
'sass_values.cpp',
55+
'source.cpp',
56+
'source_map.cpp',
57+
'stylesheet.cpp',
58+
'to_value.cpp',
59+
'units.cpp',
60+
'utf8_string.cpp',
61+
'util.cpp',
62+
'util_string.cpp',
63+
'values.cpp'
64+
)
65+
src_c = files(
66+
'c99func.c',
67+
'cencode.c'
68+
)
69+
70+
subdir('memory')
71+
72+
sass_lib = library('sass', src_cpp, src_c, include_directories: sass_inc, dependencies: deps)
73+
74+
sass_dep = declare_dependency(link_with: sass_lib, include_directories: sass_inc)
75+
76+
import('pkgconfig').generate(sass_lib,
77+
description: 'A C implementation of a Sass compiler'
78+
)

src/support/meson.build

Whitespace-only changes.

0 commit comments

Comments
 (0)