forked from sass/node-sass
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use environment variables to control how libsass is linked: LIBSASS_EXT variable empty or unset Build a bundled libsass source (from src/libsass). This is the default. LIBSASS_EXT=auto libsass is located using pkg-config and linked dynamically LIBSASS_EXT=yes LIBSASS_CFLAGS= compiler flags LIBSASS_LDFLAGS= linker flags LIBSASS_LIBRARY= library to link Link libsass manually, by adding compiler and linker flags. For example this way libsass can be linked in statically (on Unix): LIBSASS_EXT=yes LIBSASS_CFLAGS=-I/usr/local/include LIBSASS_LIBRARY=/usr/local/lib/libsass.a When using LIBSASS_EXT there is no need to checkout the libsass source into src/libsass submodule and the library from the package management system can be used. PR: sass#139 PR: sass#389 PR: sass#744
- Loading branch information
Showing
4 changed files
with
138 additions
and
49 deletions.
There are no files selected for viewing
This file contains 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 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,94 @@ | ||
{ | ||
'targets': [ | ||
{ | ||
'target_name': 'libsass', | ||
'type': 'static_library', | ||
'sources': [ | ||
'src/libsass/ast.cpp', | ||
'src/libsass/base64vlq.cpp', | ||
'src/libsass/bind.cpp', | ||
'src/libsass/cencode.c', | ||
'src/libsass/constants.cpp', | ||
'src/libsass/context.cpp', | ||
'src/libsass/contextualize.cpp', | ||
'src/libsass/copy_c_str.cpp', | ||
'src/libsass/error_handling.cpp', | ||
'src/libsass/eval.cpp', | ||
'src/libsass/expand.cpp', | ||
'src/libsass/extend.cpp', | ||
'src/libsass/file.cpp', | ||
'src/libsass/functions.cpp', | ||
'src/libsass/inspect.cpp', | ||
'src/libsass/json.cpp', | ||
'src/libsass/node.cpp', | ||
'src/libsass/output_compressed.cpp', | ||
'src/libsass/output_nested.cpp', | ||
'src/libsass/parser.cpp', | ||
'src/libsass/prelexer.cpp', | ||
'src/libsass/remove_placeholders.cpp', | ||
'src/libsass/sass.cpp', | ||
'src/libsass/sass2scss.cpp', | ||
'src/libsass/sass_context.cpp', | ||
'src/libsass/sass_functions.cpp', | ||
'src/libsass/sass_util.cpp', | ||
'src/libsass/sass_values.cpp', | ||
'src/libsass/source_map.cpp', | ||
'src/libsass/to_c.cpp', | ||
'src/libsass/to_string.cpp', | ||
'src/libsass/units.cpp', | ||
'src/libsass/utf8_string.cpp', | ||
'src/libsass/util.cpp' | ||
], | ||
'cflags!': [ | ||
'-fno-exceptions' | ||
], | ||
'cflags_cc!': [ | ||
'-fno-exceptions' | ||
], | ||
'cflags_cc': [ | ||
'-fexceptions', | ||
'-frtti' | ||
], | ||
'direct_dependent_settings': { | ||
'include_dirs': [ 'src/libsass' ], | ||
}, | ||
'conditions': [ | ||
['OS=="mac"', { | ||
'xcode_settings': { | ||
'OTHER_CPLUSPLUSFLAGS': [ | ||
'-std=c++11', | ||
'-stdlib=libc++' | ||
], | ||
'OTHER_LDFLAGS': [ | ||
'-stdlib=libc++' | ||
], | ||
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES', | ||
'GCC_ENABLE_CPP_RTTI': 'YES', | ||
'MACOSX_DEPLOYMENT_TARGET': '10.7' | ||
} | ||
}], | ||
['OS=="win"', { | ||
'msvs_settings': { | ||
'VCCLCompilerTool': { | ||
'AdditionalOptions': [ | ||
'/GR', | ||
'/EHsc' | ||
] | ||
} | ||
}, | ||
'msvs_disabled_warnings': [ | ||
# conversion from `double` to `size_t`, possible loss of data | ||
4244, | ||
# decorated name length exceeded | ||
4503 | ||
] | ||
}], | ||
['OS!="win"', { | ||
'cflags_cc+': [ | ||
'-std=c++0x' | ||
] | ||
}] | ||
] | ||
} | ||
] | ||
} |
This file contains 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 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
1 comment
on commit b5075f0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed!
process.env[subject.toUpperCase() || '']
orprocess.env[subject.toUpperCase()] || ''
?