Index: Source/build/scripts/name_macros.py |
diff --git a/Source/build/scripts/name_macros.py b/Source/build/scripts/name_macros.py |
index a4f69a942dfe6125dce23d96a1a003e84d2bd42e..9af05b4131cee5d74c79b57c0de0d12ce7aded4a 100644 |
--- a/Source/build/scripts/name_macros.py |
+++ b/Source/build/scripts/name_macros.py |
@@ -131,8 +131,13 @@ class Writer(in_generator.Writer): |
# Avoid duplicate includes. |
if cpp_name in includes: |
continue |
- include = '#include "%(path)s"\n#include "V8%(script_name)s.h"' % { |
+ if self.suffix == "Modules": |
Nils Barth (inactive)
2014/06/30 02:19:52
nit: single quotes
c.shu
2014/06/30 19:46:07
Done.
|
+ subdir_name = 'modules' |
+ else: |
+ subdir_name = 'core' |
+ include = '#include "%(path)s"\n#include "bindings/%(subdir_name)s/v8/V8%(script_name)s.h"' % { |
'path': self._headers_header_include_path(entry), |
+ 'subdir_name': subdir_name, |
Nils Barth (inactive)
2014/06/30 02:19:52
nit: alpha
c.shu
2014/06/30 19:46:07
Done.
|
'script_name': name_utilities.script_name(entry), |
} |
includes[cpp_name] = self.wrap_with_condition(include, entry['Conditional']) |