Index: test/cctest/cctest.gyp |
diff --git a/test/cctest/cctest.gyp b/test/cctest/cctest.gyp |
index 0a74ce3ca8698307dd7d8c27f92362ca3c197b5c..9cbcb9cfa49b8e0b1434ea39fc5e10187602ffe1 100644 |
--- a/test/cctest/cctest.gyp |
+++ b/test/cctest/cctest.gyp |
@@ -26,6 +26,9 @@ |
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
{ |
+ 'variables': { |
+ 'generated_file': '<(SHARED_INTERMEDIATE_DIR)/resources.cc', |
+ }, |
'includes': [ '../../build/v8-features.gypi' ], |
'targets': [ |
{ |
@@ -33,11 +36,13 @@ |
'type': 'executable', |
'dependencies': [ |
'../../tools/gyp/v8.gyp:v8', |
+ 'resources', |
], |
'include_dirs': [ |
'../../src', |
], |
'sources': [ |
+ '<(generated_file)', |
'cctest.cc', |
'gay-fixed.cc', |
'gay-precision.cc', |
@@ -131,5 +136,41 @@ |
}], |
], |
}, |
+ { |
+ 'target_name': 'resources', |
+ 'type': 'none', |
+ 'variables': { |
+ 'file_list': [ |
+ '../../tools/splaytree.js', |
+ '../../tools/codemap.js', |
+ '../../tools/csvparser.js', |
+ '../../tools/consarray.js', |
+ '../../tools/profile.js', |
+ '../../tools/profile_view.js', |
+ '../../tools/logreader.js', |
+ 'log-eq-of-logging-and-traversal.js', |
+ ], |
+ }, |
+ 'actions': [ |
+ { |
+ 'action_name': 'js2c', |
+ 'inputs': [ |
+ '../../tools/js2c.py', |
+ '<@(file_list)', |
+ ], |
+ 'outputs': [ |
+ '<(generated_file)', |
+ ], |
+ 'action': [ |
+ 'python', |
+ '../../tools/js2c.py', |
+ '<@(_outputs)', |
+ 'TEST', # type |
+ 'off', # compression |
+ '<@(file_list)', |
+ ], |
+ } |
+ ], |
+ }, |
], |
} |