| 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 25 matching lines...) Expand all Loading... |
| 36 'conditions': [ | 36 'conditions': [ |
| 37 ['want_separate_host_toolset==1', { | 37 ['want_separate_host_toolset==1', { |
| 38 'toolsets': ['host', 'target'], | 38 'toolsets': ['host', 'target'], |
| 39 }, { | 39 }, { |
| 40 'toolsets': ['target'], | 40 'toolsets': ['target'], |
| 41 }], | 41 }], |
| 42 ['v8_use_snapshot=="true"', { | 42 ['v8_use_snapshot=="true"', { |
| 43 # The dependency on v8_base should come from a transitive | 43 # The dependency on v8_base should come from a transitive |
| 44 # dependency however the Android toolchain requires libv8_base.a | 44 # dependency however the Android toolchain requires libv8_base.a |
| 45 # to appear before libv8_snapshot.a so it's listed explicitly. | 45 # to appear before libv8_snapshot.a so it's listed explicitly. |
| 46 'dependencies': ['v8_base', 'v8_snapshot'], | 46 'dependencies': ['v8_base.<(v8_target_arch)', 'v8_snapshot'], |
| 47 }, | 47 }, |
| 48 { | 48 { |
| 49 # The dependency on v8_base should come from a transitive | 49 # The dependency on v8_base should come from a transitive |
| 50 # dependency however the Android toolchain requires libv8_base.a | 50 # dependency however the Android toolchain requires libv8_base.a |
| 51 # to appear before libv8_snapshot.a so it's listed explicitly. | 51 # to appear before libv8_snapshot.a so it's listed explicitly. |
| 52 'dependencies': ['v8_base', 'v8_nosnapshot'], | 52 'dependencies': [ |
| 53 'v8_base.<(v8_target_arch)', |
| 54 'v8_nosnapshot.<(v8_target_arch)', |
| 55 ], |
| 53 }], | 56 }], |
| 54 ['component=="shared_library"', { | 57 ['component=="shared_library"', { |
| 55 'type': '<(component)', | 58 'type': '<(component)', |
| 56 'sources': [ | 59 'sources': [ |
| 57 # 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 |
| 58 # has some sources to link into the component. | 61 # has some sources to link into the component. |
| 59 '../../src/v8dll-main.cc', | 62 '../../src/v8dll-main.cc', |
| 60 ], | 63 ], |
| 61 'defines': [ | 64 'defines': [ |
| 62 'V8_SHARED', | 65 'V8_SHARED', |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 '../../include', | 101 '../../include', |
| 99 ], | 102 ], |
| 100 }, | 103 }, |
| 101 }, | 104 }, |
| 102 { | 105 { |
| 103 'target_name': 'v8_snapshot', | 106 'target_name': 'v8_snapshot', |
| 104 'type': 'static_library', | 107 'type': 'static_library', |
| 105 'conditions': [ | 108 'conditions': [ |
| 106 ['want_separate_host_toolset==1', { | 109 ['want_separate_host_toolset==1', { |
| 107 'toolsets': ['host', 'target'], | 110 'toolsets': ['host', 'target'], |
| 108 'dependencies': ['mksnapshot#host', 'js2c#host'], | 111 'dependencies': [ |
| 112 'mksnapshot.<(v8_target_arch)#host', |
| 113 'js2c#host', |
| 114 ], |
| 109 }, { | 115 }, { |
| 110 'toolsets': ['target'], | 116 'toolsets': ['target'], |
| 111 'dependencies': ['mksnapshot', 'js2c'], | 117 'dependencies': ['mksnapshot.<(v8_target_arch)', 'js2c'], |
| 112 }], | 118 }], |
| 113 ['component=="shared_library"', { | 119 ['component=="shared_library"', { |
| 114 'defines': [ | 120 'defines': [ |
| 115 'V8_SHARED', | 121 'V8_SHARED', |
| 116 'BUILDING_V8_SHARED', | 122 'BUILDING_V8_SHARED', |
| 117 ], | 123 ], |
| 118 'direct_dependent_settings': { | 124 'direct_dependent_settings': { |
| 119 'defines': [ | 125 'defines': [ |
| 120 'V8_SHARED', | 126 'V8_SHARED', |
| 121 'USING_V8_SHARED', | 127 'USING_V8_SHARED', |
| 122 ], | 128 ], |
| 123 }, | 129 }, |
| 124 }], | 130 }], |
| 125 ], | 131 ], |
| 126 'dependencies': [ | 132 'dependencies': [ |
| 127 'v8_base', | 133 'v8_base.<(v8_target_arch)', |
| 128 ], | 134 ], |
| 129 'include_dirs+': [ | 135 'include_dirs+': [ |
| 130 '../../src', | 136 '../../src', |
| 131 ], | 137 ], |
| 132 'sources': [ | 138 'sources': [ |
| 133 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc', | 139 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc', |
| 134 '<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc', | 140 '<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc', |
| 135 '<(INTERMEDIATE_DIR)/snapshot.cc', | 141 '<(INTERMEDIATE_DIR)/snapshot.cc', |
| 136 ], | 142 ], |
| 137 'actions': [ | 143 'actions': [ |
| 138 { | 144 { |
| 139 'action_name': 'run_mksnapshot', | 145 'action_name': 'run_mksnapshot', |
| 140 'inputs': [ | 146 'inputs': [ |
| 141 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)mksnapshot<(EXECUTABLE_SUFFI
X)', | 147 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)mksnapshot.<(v8_target_arch)
<(EXECUTABLE_SUFFIX)', |
| 142 ], | 148 ], |
| 143 'outputs': [ | 149 'outputs': [ |
| 144 '<(INTERMEDIATE_DIR)/snapshot.cc', | 150 '<(INTERMEDIATE_DIR)/snapshot.cc', |
| 145 ], | 151 ], |
| 146 'variables': { | 152 'variables': { |
| 147 'mksnapshot_flags': [ | 153 'mksnapshot_flags': [ |
| 148 '--log-snapshot-positions', | 154 '--log-snapshot-positions', |
| 149 '--logfile', '<(INTERMEDIATE_DIR)/snapshot.log', | 155 '--logfile', '<(INTERMEDIATE_DIR)/snapshot.log', |
| 150 ], | 156 ], |
| 151 }, | 157 }, |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 ], | 191 ], |
| 186 'action': [ | 192 'action': [ |
| 187 '<@(_inputs)', | 193 '<@(_inputs)', |
| 188 '<@(mksnapshot_flags)', | 194 '<@(mksnapshot_flags)', |
| 189 '<@(_outputs)' | 195 '<@(_outputs)' |
| 190 ], | 196 ], |
| 191 }, | 197 }, |
| 192 ], | 198 ], |
| 193 }, | 199 }, |
| 194 { | 200 { |
| 195 'target_name': 'v8_nosnapshot', | 201 'target_name': 'v8_nosnapshot.<(v8_target_arch)', |
| 196 'type': 'static_library', | 202 'type': 'static_library', |
| 197 'dependencies': [ | 203 'dependencies': [ |
| 198 'v8_base', | 204 'v8_base.<(v8_target_arch)', |
| 199 ], | 205 ], |
| 200 'include_dirs+': [ | 206 'include_dirs+': [ |
| 201 '../../src', | 207 '../../src', |
| 202 ], | 208 ], |
| 203 'sources': [ | 209 'sources': [ |
| 204 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc', | 210 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc', |
| 205 '<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc', | 211 '<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc', |
| 206 '../../src/snapshot-empty.cc', | 212 '../../src/snapshot-empty.cc', |
| 207 ], | 213 ], |
| 208 'conditions': [ | 214 'conditions': [ |
| 209 ['want_separate_host_toolset==1', { | 215 ['want_separate_host_toolset==1', { |
| 210 'toolsets': ['host', 'target'], | 216 'toolsets': ['host', 'target'], |
| 211 'dependencies': ['js2c#host'], | 217 'dependencies': ['js2c#host'], |
| 212 }, { | 218 }, { |
| 213 'toolsets': ['target'], | 219 'toolsets': ['target'], |
| 214 'dependencies': ['js2c'], | 220 'dependencies': ['js2c'], |
| 215 }], | 221 }], |
| 216 ['component=="shared_library"', { | 222 ['component=="shared_library"', { |
| 217 'defines': [ | 223 'defines': [ |
| 218 'BUILDING_V8_SHARED', | 224 'BUILDING_V8_SHARED', |
| 219 'V8_SHARED', | 225 'V8_SHARED', |
| 220 ], | 226 ], |
| 221 }], | 227 }], |
| 222 ] | 228 ] |
| 223 }, | 229 }, |
| 224 { | 230 { |
| 225 'target_name': 'v8_base', | 231 'target_name': 'v8_base.<(v8_target_arch)', |
| 226 'type': 'static_library', | 232 'type': 'static_library', |
| 227 'variables': { | 233 'variables': { |
| 228 'optimize': 'max', | 234 'optimize': 'max', |
| 229 }, | 235 }, |
| 230 'include_dirs+': [ | 236 'include_dirs+': [ |
| 231 '../../src', | 237 '../../src', |
| 232 ], | 238 ], |
| 233 'sources': [ | 239 'sources': [ |
| 234 '../../src/accessors.cc', | 240 '../../src/accessors.cc', |
| 235 '../../src/accessors.h', | 241 '../../src/accessors.h', |
| (...skipping 625 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 861 'action': [ | 867 'action': [ |
| 862 'python', | 868 'python', |
| 863 '../../tools/gen-postmortem-metadata.py', | 869 '../../tools/gen-postmortem-metadata.py', |
| 864 '<@(_outputs)', | 870 '<@(_outputs)', |
| 865 '<@(heapobject_files)' | 871 '<@(heapobject_files)' |
| 866 ] | 872 ] |
| 867 } | 873 } |
| 868 ] | 874 ] |
| 869 }, | 875 }, |
| 870 { | 876 { |
| 871 'target_name': 'mksnapshot', | 877 'target_name': 'mksnapshot.<(v8_target_arch)', |
| 872 'type': 'executable', | 878 'type': 'executable', |
| 873 'dependencies': [ | 879 'dependencies': [ |
| 874 'v8_base', | 880 'v8_base.<(v8_target_arch)', |
| 875 'v8_nosnapshot', | 881 'v8_nosnapshot.<(v8_target_arch)', |
| 876 ], | 882 ], |
| 877 'include_dirs+': [ | 883 'include_dirs+': [ |
| 878 '../../src', | 884 '../../src', |
| 879 ], | 885 ], |
| 880 'sources': [ | 886 'sources': [ |
| 881 '../../src/mksnapshot.cc', | 887 '../../src/mksnapshot.cc', |
| 882 ], | 888 ], |
| 883 'conditions': [ | 889 'conditions': [ |
| 884 ['want_separate_host_toolset==1', { | 890 ['want_separate_host_toolset==1', { |
| 885 'toolsets': ['host'], | 891 'toolsets': ['host'], |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1057 }], | 1063 }], |
| 1058 ], | 1064 ], |
| 1059 'dependencies': [ | 1065 'dependencies': [ |
| 1060 'v8' | 1066 'v8' |
| 1061 ], | 1067 ], |
| 1062 }, | 1068 }, |
| 1063 ], | 1069 ], |
| 1064 }], | 1070 }], |
| 1065 ], | 1071 ], |
| 1066 } | 1072 } |
| OLD | NEW |