| OLD | NEW |
| 1 # Copyright 2012 the V8 project authors. All rights reserved. | 1 # Copyright 2012 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 28 matching lines...) Expand all Loading... |
| 39 'conditions': [ | 39 'conditions': [ |
| 40 ['want_separate_host_toolset==1', { | 40 ['want_separate_host_toolset==1', { |
| 41 'toolsets': ['host', 'target'], | 41 'toolsets': ['host', 'target'], |
| 42 }, { | 42 }, { |
| 43 'toolsets': ['target'], | 43 'toolsets': ['target'], |
| 44 }], | 44 }], |
| 45 ['v8_use_snapshot=="true"', { | 45 ['v8_use_snapshot=="true"', { |
| 46 # The dependency on v8_base should come from a transitive | 46 # The dependency on v8_base should come from a transitive |
| 47 # dependency however the Android toolchain requires libv8_base.a | 47 # dependency however the Android toolchain requires libv8_base.a |
| 48 # to appear before libv8_snapshot.a so it's listed explicitly. | 48 # to appear before libv8_snapshot.a so it's listed explicitly. |
| 49 'dependencies': ['v8_base.<(v8_target_arch)', 'v8_snapshot'], | 49 'dependencies': ['v8_base', 'v8_snapshot'], |
| 50 }, | 50 }, |
| 51 { | 51 { |
| 52 # The dependency on v8_base should come from a transitive | 52 # The dependency on v8_base should come from a transitive |
| 53 # dependency however the Android toolchain requires libv8_base.a | 53 # dependency however the Android toolchain requires libv8_base.a |
| 54 # to appear before libv8_snapshot.a so it's listed explicitly. | 54 # to appear before libv8_snapshot.a so it's listed explicitly. |
| 55 'dependencies': [ | 55 'dependencies': ['v8_base', 'v8_nosnapshot'], |
| 56 'v8_base.<(v8_target_arch)', | |
| 57 'v8_nosnapshot.<(v8_target_arch)', | |
| 58 ], | |
| 59 }], | 56 }], |
| 60 ['component=="shared_library"', { | 57 ['component=="shared_library"', { |
| 61 'type': '<(component)', | 58 'type': '<(component)', |
| 62 'sources': [ | 59 'sources': [ |
| 63 # Note: on non-Windows we still build this file so that gyp | 60 # Note: on non-Windows we still build this file so that gyp |
| 64 # has some sources to link into the component. | 61 # has some sources to link into the component. |
| 65 '../../src/v8dll-main.cc', | 62 '../../src/v8dll-main.cc', |
| 66 ], | 63 ], |
| 67 'defines': [ | 64 'defines': [ |
| 68 'V8_SHARED', | 65 'V8_SHARED', |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 ], | 102 ], |
| 106 }, | 103 }, |
| 107 }, | 104 }, |
| 108 { | 105 { |
| 109 'target_name': 'v8_snapshot', | 106 'target_name': 'v8_snapshot', |
| 110 'type': 'static_library', | 107 'type': 'static_library', |
| 111 'conditions': [ | 108 'conditions': [ |
| 112 ['want_separate_host_toolset==1', { | 109 ['want_separate_host_toolset==1', { |
| 113 'toolsets': ['host', 'target'], | 110 'toolsets': ['host', 'target'], |
| 114 'dependencies': [ | 111 'dependencies': [ |
| 115 'mksnapshot.<(v8_target_arch)#host', | 112 'mksnapshot#host', |
| 116 'js2c#host', | 113 'js2c#host', |
| 117 'generate_trig_table#host', | 114 'generate_trig_table#host', |
| 118 ], | 115 ], |
| 119 }, { | 116 }, { |
| 120 'toolsets': ['target'], | 117 'toolsets': ['target'], |
| 121 'dependencies': [ | 118 'dependencies': [ |
| 122 'mksnapshot.<(v8_target_arch)', | 119 'mksnapshot', |
| 123 'js2c', | 120 'js2c', |
| 124 'generate_trig_table', | 121 'generate_trig_table', |
| 125 ], | 122 ], |
| 126 }], | 123 }], |
| 127 ['component=="shared_library"', { | 124 ['component=="shared_library"', { |
| 128 'defines': [ | 125 'defines': [ |
| 129 'V8_SHARED', | 126 'V8_SHARED', |
| 130 'BUILDING_V8_SHARED', | 127 'BUILDING_V8_SHARED', |
| 131 ], | 128 ], |
| 132 'direct_dependent_settings': { | 129 'direct_dependent_settings': { |
| 133 'defines': [ | 130 'defines': [ |
| 134 'V8_SHARED', | 131 'V8_SHARED', |
| 135 'USING_V8_SHARED', | 132 'USING_V8_SHARED', |
| 136 ], | 133 ], |
| 137 }, | 134 }, |
| 138 }], | 135 }], |
| 139 ], | 136 ], |
| 140 'dependencies': [ | 137 'dependencies': [ |
| 141 'v8_base.<(v8_target_arch)', | 138 'v8_base', |
| 142 ], | 139 ], |
| 143 'include_dirs+': [ | 140 'include_dirs+': [ |
| 144 '../../src', | 141 '../../src', |
| 145 ], | 142 ], |
| 146 'sources': [ | 143 'sources': [ |
| 147 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc', | 144 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc', |
| 148 '<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc', | 145 '<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc', |
| 149 '<(SHARED_INTERMEDIATE_DIR)/trig-table.cc', | 146 '<(SHARED_INTERMEDIATE_DIR)/trig-table.cc', |
| 150 '<(INTERMEDIATE_DIR)/snapshot.cc', | 147 '<(INTERMEDIATE_DIR)/snapshot.cc', |
| 151 ], | 148 ], |
| 152 'actions': [ | 149 'actions': [ |
| 153 { | 150 { |
| 154 'action_name': 'run_mksnapshot', | 151 'action_name': 'run_mksnapshot', |
| 155 'inputs': [ | 152 'inputs': [ |
| 156 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)mksnapshot.<(v8_target_arch)<(EX
ECUTABLE_SUFFIX)', | 153 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)mksnapshot<(EXECUTABLE_SUFFIX)', |
| 157 ], | 154 ], |
| 158 'outputs': [ | 155 'outputs': [ |
| 159 '<(INTERMEDIATE_DIR)/snapshot.cc', | 156 '<(INTERMEDIATE_DIR)/snapshot.cc', |
| 160 ], | 157 ], |
| 161 'variables': { | 158 'variables': { |
| 162 'mksnapshot_flags': [ | 159 'mksnapshot_flags': [ |
| 163 '--log-snapshot-positions', | 160 '--log-snapshot-positions', |
| 164 '--logfile', '<(INTERMEDIATE_DIR)/snapshot.log', | 161 '--logfile', '<(INTERMEDIATE_DIR)/snapshot.log', |
| 165 ], | 162 ], |
| 166 'conditions': [ | 163 'conditions': [ |
| 167 ['v8_random_seed!=0', { | 164 ['v8_random_seed!=0', { |
| 168 'mksnapshot_flags': ['--random-seed', '<(v8_random_seed)'], | 165 'mksnapshot_flags': ['--random-seed', '<(v8_random_seed)'], |
| 169 }], | 166 }], |
| 170 ], | 167 ], |
| 171 }, | 168 }, |
| 172 'action': [ | 169 'action': [ |
| 173 '<@(_inputs)', | 170 '<@(_inputs)', |
| 174 '<@(mksnapshot_flags)', | 171 '<@(mksnapshot_flags)', |
| 175 '<@(_outputs)' | 172 '<@(_outputs)' |
| 176 ], | 173 ], |
| 177 }, | 174 }, |
| 178 ], | 175 ], |
| 179 }, | 176 }, |
| 180 { | 177 { |
| 181 'target_name': 'v8_nosnapshot.<(v8_target_arch)', | 178 'target_name': 'v8_nosnapshot', |
| 182 'type': 'static_library', | 179 'type': 'static_library', |
| 183 'dependencies': [ | 180 'dependencies': [ |
| 184 'v8_base.<(v8_target_arch)', | 181 'v8_base', |
| 185 ], | 182 ], |
| 186 'include_dirs+': [ | 183 'include_dirs+': [ |
| 187 '../../src', | 184 '../../src', |
| 188 ], | 185 ], |
| 189 'sources': [ | 186 'sources': [ |
| 190 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc', | 187 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc', |
| 191 '<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc', | 188 '<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc', |
| 192 '<(SHARED_INTERMEDIATE_DIR)/trig-table.cc', | 189 '<(SHARED_INTERMEDIATE_DIR)/trig-table.cc', |
| 193 '../../src/snapshot-empty.cc', | 190 '../../src/snapshot-empty.cc', |
| 194 ], | 191 ], |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 ], | 225 ], |
| 229 'action': [ | 226 'action': [ |
| 230 'python', | 227 'python', |
| 231 '../../tools/generate-trig-table.py', | 228 '../../tools/generate-trig-table.py', |
| 232 '<@(_outputs)', | 229 '<@(_outputs)', |
| 233 ], | 230 ], |
| 234 }, | 231 }, |
| 235 ] | 232 ] |
| 236 }, | 233 }, |
| 237 { | 234 { |
| 238 'target_name': 'v8_base.<(v8_target_arch)', | 235 'target_name': 'v8_base', |
| 239 'type': 'static_library', | 236 'type': 'static_library', |
| 240 'variables': { | 237 'variables': { |
| 241 'optimize': 'max', | 238 'optimize': 'max', |
| 242 }, | 239 }, |
| 243 'include_dirs+': [ | 240 'include_dirs+': [ |
| 244 '../../src', | 241 '../../src', |
| 245 ], | 242 ], |
| 246 'sources': [ ### gcmole(all) ### | 243 'sources': [ ### gcmole(all) ### |
| 247 '../../src/accessors.cc', | 244 '../../src/accessors.cc', |
| 248 '../../src/accessors.h', | 245 '../../src/accessors.h', |
| (...skipping 906 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1155 'action': [ | 1152 'action': [ |
| 1156 'python', | 1153 'python', |
| 1157 '../../tools/gen-postmortem-metadata.py', | 1154 '../../tools/gen-postmortem-metadata.py', |
| 1158 '<@(_outputs)', | 1155 '<@(_outputs)', |
| 1159 '<@(heapobject_files)' | 1156 '<@(heapobject_files)' |
| 1160 ] | 1157 ] |
| 1161 } | 1158 } |
| 1162 ] | 1159 ] |
| 1163 }, | 1160 }, |
| 1164 { | 1161 { |
| 1165 'target_name': 'mksnapshot.<(v8_target_arch)', | 1162 'target_name': 'mksnapshot', |
| 1166 'type': 'executable', | 1163 'type': 'executable', |
| 1167 'dependencies': [ | 1164 'dependencies': ['v8_base', 'v8_nosnapshot'], |
| 1168 'v8_base.<(v8_target_arch)', | |
| 1169 'v8_nosnapshot.<(v8_target_arch)', | |
| 1170 ], | |
| 1171 'include_dirs+': [ | 1165 'include_dirs+': [ |
| 1172 '../../src', | 1166 '../../src', |
| 1173 ], | 1167 ], |
| 1174 'sources': [ | 1168 'sources': [ |
| 1175 '../../src/mksnapshot.cc', | 1169 '../../src/mksnapshot.cc', |
| 1176 ], | 1170 ], |
| 1177 'conditions': [ | 1171 'conditions': [ |
| 1178 ['want_separate_host_toolset==1', { | 1172 ['want_separate_host_toolset==1', { |
| 1179 'toolsets': ['host'], | 1173 'toolsets': ['host'], |
| 1180 }, { | 1174 }, { |
| 1181 'toolsets': ['target'], | 1175 'toolsets': ['target'], |
| 1182 }], | 1176 }], |
| 1183 ['v8_compress_startup_data=="bz2"', { | 1177 ['v8_compress_startup_data=="bz2"', { |
| 1184 'libraries': [ | 1178 'libraries': [ |
| 1185 '-lbz2', | 1179 '-lbz2', |
| 1186 ] | 1180 ] |
| 1187 }], | 1181 }], |
| 1188 ], | 1182 ], |
| 1189 }, | 1183 }, |
| 1190 ], | 1184 ], |
| 1191 } | 1185 } |
| OLD | NEW |