1 | {
|
2 | 'variables': {
|
3 | 'libsass_ext%': '',
|
4 | },
|
5 | 'targets': [
|
6 | {
|
7 | 'target_name': 'binding',
|
8 | 'win_delay_load_hook': 'true',
|
9 | 'sources': [
|
10 | 'src/binding.cpp',
|
11 | 'src/create_string.cpp',
|
12 | 'src/custom_function_bridge.cpp',
|
13 | 'src/custom_importer_bridge.cpp',
|
14 | 'src/sass_context_wrapper.cpp',
|
15 | 'src/sass_types/boolean.cpp',
|
16 | 'src/sass_types/color.cpp',
|
17 | 'src/sass_types/error.cpp',
|
18 | 'src/sass_types/factory.cpp',
|
19 | 'src/sass_types/list.cpp',
|
20 | 'src/sass_types/map.cpp',
|
21 | 'src/sass_types/null.cpp',
|
22 | 'src/sass_types/number.cpp',
|
23 | 'src/sass_types/string.cpp'
|
24 | ],
|
25 | 'msvs_settings': {
|
26 | 'VCLinkerTool': {
|
27 | 'SetChecksum': 'true'
|
28 | }
|
29 | },
|
30 | 'xcode_settings': {
|
31 | 'CLANG_CXX_LIBRARY': 'libc++',
|
32 | 'OTHER_LDFLAGS': [],
|
33 | 'GCC_ENABLE_CPP_EXCEPTIONS': 'NO',
|
34 | 'MACOSX_DEPLOYMENT_TARGET': '10.11'
|
35 | },
|
36 | 'include_dirs': [
|
37 | '<!(node -e "require(\'nan\')")',
|
38 | ],
|
39 | 'conditions': [
|
40 | ['libsass_ext == "" or libsass_ext == "no"', {
|
41 | 'dependencies': [
|
42 | 'src/libsass.gyp:libsass',
|
43 | ]
|
44 | }],
|
45 | ['libsass_ext == "auto"', {
|
46 | 'cflags_cc': [
|
47 | '<!(pkg-config --cflags libsass)',
|
48 | ],
|
49 | 'link_settings': {
|
50 | 'ldflags': [
|
51 | '<!(pkg-config --libs-only-other --libs-only-L libsass)',
|
52 | ],
|
53 | 'libraries': [
|
54 | '<!(pkg-config --libs-only-l libsass)',
|
55 | ],
|
56 | }
|
57 | }],
|
58 | ['libsass_ext == "yes"', {
|
59 | 'cflags_cc': [
|
60 | '<(libsass_cflags)',
|
61 | ],
|
62 | 'link_settings': {
|
63 | 'ldflags': [
|
64 | '<(libsass_ldflags)',
|
65 | ],
|
66 | 'libraries': [
|
67 | '<(libsass_library)',
|
68 | ],
|
69 | }
|
70 | }]
|
71 | ]
|
72 | }
|
73 | ]
|
74 | }
|