read style filename from gyp file

This commit is contained in:
Konstantin Käfer
2014-05-22 15:10:10 +02:00
parent 04e70b240e
commit dffbb673ea
2 changed files with 6 additions and 3 deletions

View File

@@ -1,10 +1,13 @@
#!/usr/bin/env node
'use strict';
var path = require('path');
var lazy_update = require('./lazy-update');
var name = 'style';
var data = JSON.stringify(require('./style'));
var data = JSON.stringify(require(path.join(process.cwd(), process.argv[2])));
var length = data.length;

View File

@@ -31,13 +31,13 @@
{
'action_name': 'Build Stylesheet',
'inputs': [
'bin/style.js'
'bin/style.js',
],
'outputs': [
'include/llmr/style/resources.hpp',
'src/style/resources.cpp'
],
'action': ['<@(node)', 'bin/build-style.js']
'action': ['<@(node)', 'bin/build-style.js', '<@(_inputs)']
}
],
'direct_dependent_settings': {