OLD | NEW |
1 # Copyright 2010 the V8 project authors. All rights reserved. | 1 # Copyright 2010 the V8 project authors. All rights reserved. |
2 # Redistribution and use in source and binary forms, with or without | 2 # Redistribution and use in source and binary forms, with or without |
3 # modification, are permitted provided that the following conditions are | 3 # modification, are permitted provided that the following conditions are |
4 # met: | 4 # met: |
5 # | 5 # |
6 # * Redistributions of source code must retain the above copyright | 6 # * Redistributions of source code must retain the above copyright |
7 # notice, this list of conditions and the following disclaimer. | 7 # notice, this list of conditions and the following disclaimer. |
8 # * Redistributions in binary form must reproduce the above | 8 # * Redistributions in binary form must reproduce the above |
9 # copyright notice, this list of conditions and the following | 9 # copyright notice, this list of conditions and the following |
10 # disclaimer in the documentation and/or other materials provided | 10 # disclaimer in the documentation and/or other materials provided |
(...skipping 29 matching lines...) Expand all Loading... |
40 '../src', | 40 '../src', |
41 ], | 41 ], |
42 'defines': [ | 42 'defines': [ |
43 'ENABLE_DEBUGGER_SUPPORT', | 43 'ENABLE_DEBUGGER_SUPPORT', |
44 ], | 44 ], |
45 'sources': [ | 45 'sources': [ |
46 'd8.cc', | 46 'd8.cc', |
47 ], | 47 ], |
48 'conditions': [ | 48 'conditions': [ |
49 [ 'component!="shared_library"', { | 49 [ 'component!="shared_library"', { |
| 50 'dependencies': [ 'd8_js2c#host', ], |
50 'sources': [ 'd8-debug.cc', '<(SHARED_INTERMEDIATE_DIR)/d8-js.cc', ], | 51 'sources': [ 'd8-debug.cc', '<(SHARED_INTERMEDIATE_DIR)/d8-js.cc', ], |
51 'conditions': [ | 52 'conditions': [ |
52 [ 'want_separate_host_toolset==1', { | |
53 'dependencies': [ | |
54 'd8_js2c#host', | |
55 ], | |
56 }, { | |
57 'dependencies': [ | |
58 'd8_js2c', | |
59 ], | |
60 }], | |
61 [ 'console=="readline"', { | 53 [ 'console=="readline"', { |
62 'libraries': [ '-lreadline', ], | 54 'libraries': [ '-lreadline', ], |
63 'sources': [ 'd8-readline.cc' ], | 55 'sources': [ 'd8-readline.cc' ], |
64 }], | 56 }], |
65 [ '(OS=="linux" or OS=="mac" or OS=="freebsd" \ | 57 [ '(OS=="linux" or OS=="mac" or OS=="freebsd" \ |
66 or OS=="openbsd" or OS=="solaris")', { | 58 or OS=="openbsd" or OS=="solaris")', { |
67 'sources': [ 'd8-posix.cc', ] | 59 'sources': [ 'd8-posix.cc', ] |
68 }], | 60 }], |
69 [ 'OS=="win"', { | 61 [ 'OS=="win"', { |
70 'sources': [ 'd8-windows.cc', ] | 62 'sources': [ 'd8-windows.cc', ] |
71 }], | 63 }], |
72 ], | 64 ], |
73 }], | 65 }], |
74 ], | 66 ], |
75 }, | 67 }, |
76 { | 68 { |
77 'target_name': 'd8_js2c', | 69 'target_name': 'd8_js2c', |
78 'type': 'none', | 70 'type': 'none', |
| 71 'toolsets': ['host'], |
79 'variables': { | 72 'variables': { |
80 'js_files': [ | 73 'js_files': [ |
81 'd8.js', | 74 'd8.js', |
82 'macros.py', | 75 'macros.py', |
83 ], | 76 ], |
84 }, | 77 }, |
85 'conditions': [ | |
86 [ 'want_separate_host_toolset==1', { | |
87 'toolsets': ['host'], | |
88 }, { | |
89 'toolsets': ['target'], | |
90 }] | |
91 ], | |
92 'actions': [ | 78 'actions': [ |
93 { | 79 { |
94 'action_name': 'd8_js2c', | 80 'action_name': 'd8_js2c', |
95 'inputs': [ | 81 'inputs': [ |
96 '../tools/js2c.py', | 82 '../tools/js2c.py', |
97 '<@(js_files)', | 83 '<@(js_files)', |
98 ], | 84 ], |
99 'outputs': [ | 85 'outputs': [ |
100 '<(SHARED_INTERMEDIATE_DIR)/d8-js.cc', | 86 '<(SHARED_INTERMEDIATE_DIR)/d8-js.cc', |
101 ], | 87 ], |
102 'action': [ | 88 'action': [ |
103 'python', | 89 'python', |
104 '../tools/js2c.py', | 90 '../tools/js2c.py', |
105 '<@(_outputs)', | 91 '<@(_outputs)', |
106 'D8', | 92 'D8', |
107 'off', # compress startup data | |
108 '<@(js_files)' | 93 '<@(js_files)' |
109 ], | 94 ], |
110 }, | 95 }, |
111 ], | 96 ], |
112 } | 97 } |
113 ], | 98 ], |
114 } | 99 } |
OLD | NEW |