From dffbb673eabb134ce05839221d46580c43be0216 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20Ka=CC=88fer?= Date: Thu, 22 May 2014 15:10:10 +0200 Subject: [PATCH] read style filename from gyp file --- bin/build-style.js | 5 ++++- llmr.gyp | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/bin/build-style.js b/bin/build-style.js index 380c13434..bd86d5bda 100755 --- a/bin/build-style.js +++ b/bin/build-style.js @@ -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; diff --git a/llmr.gyp b/llmr.gyp index 369a21658..4c2086242 100644 --- a/llmr.gyp +++ b/llmr.gyp @@ -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': {