Commit b3585bda by Kevin Martensson

Move source files to src/ and sass-spec to test/fixtures/spec

parent ba62ddae
[submodule "libsass"] [submodule "libsass"]
path = libsass path = src/libsass
url = git://github.com/hcatlin/libsass.git url = git://github.com/hcatlin/libsass.git
[submodule "test/sass-spec"] [submodule "test/sass-spec"]
path = test/sass-spec path = test/fixtures/spec
url = https://github.com/sass/sass-spec.git url = https://github.com/sass/sass-spec.git
...@@ -3,50 +3,62 @@ ...@@ -3,50 +3,62 @@
{ {
'target_name': 'binding', 'target_name': 'binding',
'sources': [ 'sources': [
'binding.cpp', 'src/binding.cpp',
'sass_context_wrapper.cpp', 'src/sass_context_wrapper.cpp',
'libsass/ast.cpp', 'src/libsass/ast.cpp',
'libsass/base64vlq.cpp', 'src/libsass/base64vlq.cpp',
'libsass/bind.cpp', 'src/libsass/bind.cpp',
'libsass/constants.cpp', 'src/libsass/constants.cpp',
'libsass/context.cpp', 'src/libsass/context.cpp',
'libsass/contextualize.cpp', 'src/libsass/contextualize.cpp',
'libsass/copy_c_str.cpp', 'src/libsass/copy_c_str.cpp',
'libsass/error_handling.cpp', 'src/libsass/error_handling.cpp',
'libsass/eval.cpp', 'src/libsass/eval.cpp',
'libsass/expand.cpp', 'src/libsass/expand.cpp',
'libsass/extend.cpp', 'src/libsass/extend.cpp',
'libsass/file.cpp', 'src/libsass/file.cpp',
'libsass/functions.cpp', 'src/libsass/functions.cpp',
'libsass/inspect.cpp', 'src/libsass/inspect.cpp',
'libsass/node.cpp', 'src/libsass/node.cpp',
'libsass/output_compressed.cpp', 'src/libsass/output_compressed.cpp',
'libsass/output_nested.cpp', 'src/libsass/output_nested.cpp',
'libsass/parser.cpp', 'src/libsass/parser.cpp',
'libsass/prelexer.cpp', 'src/libsass/prelexer.cpp',
'libsass/remove_placeholders.cpp', 'src/libsass/remove_placeholders.cpp',
'libsass/sass.cpp', 'src/libsass/sass.cpp',
'libsass/sass2scss.cpp', 'src/libsass/sass2scss.cpp',
'libsass/sass_interface.cpp', 'src/libsass/sass_interface.cpp',
'libsass/sass_util.cpp', 'src/libsass/sass_util.cpp',
'libsass/source_map.cpp', 'src/libsass/source_map.cpp',
'libsass/to_c.cpp', 'src/libsass/to_c.cpp',
'libsass/to_string.cpp', 'src/libsass/to_string.cpp',
'libsass/units.cpp', 'src/libsass/units.cpp',
'libsass/utf8_string.cpp', 'src/libsass/utf8_string.cpp',
'libsass/util.cpp' 'src/libsass/util.cpp'
], ],
'include_dirs': [ 'include_dirs': [
'<!(node -e "require(\'nan\')")' '<!(node -e "require(\'nan\')")'
], ],
'cflags!' : [ '-fno-exceptions' ], 'cflags!': [
'cflags_cc!': [ '-fno-exceptions' ], '-fno-exceptions'
'cflags_cc' : [ '-fexceptions', '-frtti' ], ],
'cflags_cc!': [
'-fno-exceptions'
],
'cflags_cc': [
'-fexceptions',
'-frtti'
],
'conditions': [ 'conditions': [
['OS=="mac"', { ['OS=="mac"', {
'xcode_settings': { 'xcode_settings': {
'OTHER_CPLUSPLUSFLAGS' : [ '-std=c++11', '-stdlib=libc++' ], 'OTHER_CPLUSPLUSFLAGS': [
'OTHER_LDFLAGS': [ '-stdlib=libc++' ], '-std=c++11',
'-stdlib=libc++'
],
'OTHER_LDFLAGS': [
'-stdlib=libc++'
],
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES', 'GCC_ENABLE_CPP_EXCEPTIONS': 'YES',
'GCC_ENABLE_CPP_RTTI': 'YES', 'GCC_ENABLE_CPP_RTTI': 'YES',
'MACOSX_DEPLOYMENT_TARGET': '10.7' 'MACOSX_DEPLOYMENT_TARGET': '10.7'
...@@ -68,10 +80,16 @@ ...@@ -68,10 +80,16 @@
4503 4503
] ]
}], }],
[ 'OS!="win"', { ['OS!="win"', {
'cflags+': [ '-std=c++11' ], 'cflags+': [
'cflags_c+': [ '-std=c++11' ], '-std=c++11'
'cflags_cc+': [ '-std=c++11' ], ],
'cflags_c+': [
'-std=c++11'
],
'cflags_cc+': [
'-std=c++11'
]
}] }]
] ]
} }
......
Subproject commit ca5f271883db61ccd1d1e1b84dd4830a2564896f
Subproject commit ca5f271883db61ccd1d1e1b84dd4830a2564896f
Subproject commit f01abbf6d47ec62f3248ef0aa5bd5609e2223c8a
Subproject commit f01abbf6d47ec62f3248ef0aa5bd5609e2223c8a
...@@ -11,11 +11,11 @@ describe('spec', function () { ...@@ -11,11 +11,11 @@ describe('spec', function () {
describe('test/sass-spec directory', function() { describe('test/sass-spec directory', function() {
it('should be a cloned into place', function(done) { it('should be a cloned into place', function(done) {
fs.exists(path.join(__dirname, 'sass-spec'), function (exists) { fs.exists(path.join(__dirname, 'fixtures', 'spec'), function (exists) {
if (!exists) { if (!exists) {
throw new Error([ throw new Error([
'test/sass-spec directory missing. Please clone it into place by', 'test/fixtures/spec directory missing. Please clone it into place by',
'executing `git submodule update --init --recursive test/sass-spec`', 'executing `git submodule update --init --recursive test/fixtures/spec`',
'from the project\'s root directory.' 'from the project\'s root directory.'
].join(' ')); ].join(' '));
} }
......
var fs = require('fs'), var fs = require('fs'),
join = require('path').join, join = require('path').join,
spec = join(__dirname, '..', 'sass-spec', 'spec'); spec = join(__dirname, '..', 'fixtures', 'spec', 'spec');
/** /**
* Normalize CSS * Normalize CSS
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment