Index: tools/gyp/v8.gyp |
diff --git a/tools/gyp/v8.gyp b/tools/gyp/v8.gyp |
index b1b9019e16a6e69fd299c0f55680e63926830dc1..65d5fb89a9303fdee8865feaf6727e59c6303cea 100644 |
--- a/tools/gyp/v8.gyp |
+++ b/tools/gyp/v8.gyp |
@@ -140,6 +140,7 @@ |
'sources': [ |
'<(SHARED_INTERMEDIATE_DIR)/libraries.cc', |
'<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc', |
+ '<(SHARED_INTERMEDIATE_DIR)/trig-table.cc', |
'<(INTERMEDIATE_DIR)/snapshot.cc', |
], |
'actions': [ |
@@ -182,6 +183,7 @@ |
'sources': [ |
'<(SHARED_INTERMEDIATE_DIR)/libraries.cc', |
'<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc', |
+ '<(SHARED_INTERMEDIATE_DIR)/trig-table.cc', |
'../../src/snapshot-empty.cc', |
], |
'conditions': [ |
@@ -200,9 +202,38 @@ |
}], |
] |
}, |
+ { 'target_name': 'generate_trig_table', |
+ 'type': 'none', |
+ 'conditions': [ |
+ ['want_separate_host_toolset==1', { |
+ 'toolsets': ['host', 'target'], |
Torne
2013/11/25 16:04:54
Defining this target for both host and target caus
|
+ }, { |
+ 'toolsets': ['target'], |
+ }], |
+ ], |
+ 'actions': [ |
+ { |
+ 'action_name': 'generate', |
+ 'inputs': [ |
+ '../../tools/generate-trig-table.py', |
+ ], |
+ 'outputs': [ |
+ '<(SHARED_INTERMEDIATE_DIR)/trig-table.cc', |
+ ], |
+ 'action': [ |
+ 'python', |
+ '../../tools/generate-trig-table.py', |
+ '<@(_outputs)', |
+ ], |
+ }, |
+ ] |
+ }, |
{ |
'target_name': 'v8_base.<(v8_target_arch)', |
'type': 'static_library', |
+ 'dependencies': [ |
+ 'generate_trig_table', |
+ ], |
'variables': { |
'optimize': 'max', |
}, |