Chromium Code Reviews| 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'], |
|
Jakob Kummerow
2013/03/21 16:28:32
I would have assumed that v8_snapshot needs the <(
Torne
2013/03/21 17:00:25
v8_snapshot is not actually built for host in a no
| |
| 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': ['v8_base.<(v8_target_arch)', 'v8_nosnapshot.<(v8_ target_arch)'], |
|
Jakob Kummerow
2013/03/21 16:28:32
nit: please respect 80-col lines where possible (b
Torne
2013/03/21 17:00:25
Oops, yes. I shall reformat to 80 cols where reaso
| |
| 53 }], | 53 }], |
| 54 ['component=="shared_library"', { | 54 ['component=="shared_library"', { |
| 55 'type': '<(component)', | 55 'type': '<(component)', |
| 56 'sources': [ | 56 'sources': [ |
| 57 # Note: on non-Windows we still build this file so that gyp | 57 # Note: on non-Windows we still build this file so that gyp |
| 58 # has some sources to link into the component. | 58 # has some sources to link into the component. |
| 59 '../../src/v8dll-main.cc', | 59 '../../src/v8dll-main.cc', |
| 60 ], | 60 ], |
| 61 'defines': [ | 61 'defines': [ |
| 62 'V8_SHARED', | 62 'V8_SHARED', |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 98 '../../include', | 98 '../../include', |
| 99 ], | 99 ], |
| 100 }, | 100 }, |
| 101 }, | 101 }, |
| 102 { | 102 { |
| 103 'target_name': 'v8_snapshot', | 103 'target_name': 'v8_snapshot', |
| 104 'type': 'static_library', | 104 'type': 'static_library', |
| 105 'conditions': [ | 105 'conditions': [ |
| 106 ['want_separate_host_toolset==1', { | 106 ['want_separate_host_toolset==1', { |
| 107 'toolsets': ['host', 'target'], | 107 'toolsets': ['host', 'target'], |
| 108 'dependencies': ['mksnapshot#host', 'js2c#host'], | 108 'dependencies': ['mksnapshot.<(v8_target_arch)#host', 'js2c#host'] , |
| 109 }, { | 109 }, { |
| 110 'toolsets': ['target'], | 110 'toolsets': ['target'], |
| 111 'dependencies': ['mksnapshot', 'js2c'], | 111 'dependencies': ['mksnapshot.<(v8_target_arch)', 'js2c'], |
| 112 }], | 112 }], |
| 113 ['component=="shared_library"', { | 113 ['component=="shared_library"', { |
| 114 'defines': [ | 114 'defines': [ |
| 115 'V8_SHARED', | 115 'V8_SHARED', |
| 116 'BUILDING_V8_SHARED', | 116 'BUILDING_V8_SHARED', |
| 117 ], | 117 ], |
| 118 'direct_dependent_settings': { | 118 'direct_dependent_settings': { |
| 119 'defines': [ | 119 'defines': [ |
| 120 'V8_SHARED', | 120 'V8_SHARED', |
| 121 'USING_V8_SHARED', | 121 'USING_V8_SHARED', |
| 122 ], | 122 ], |
| 123 }, | 123 }, |
| 124 }], | 124 }], |
| 125 ], | 125 ], |
| 126 'dependencies': [ | 126 'dependencies': [ |
| 127 'v8_base', | 127 'v8_base.<(v8_target_arch)', |
| 128 ], | 128 ], |
| 129 'include_dirs+': [ | 129 'include_dirs+': [ |
| 130 '../../src', | 130 '../../src', |
| 131 ], | 131 ], |
| 132 'sources': [ | 132 'sources': [ |
| 133 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc', | 133 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc', |
| 134 '<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc', | 134 '<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc', |
| 135 '<(INTERMEDIATE_DIR)/snapshot.cc', | 135 '<(INTERMEDIATE_DIR)/snapshot.cc', |
| 136 ], | 136 ], |
| 137 'actions': [ | 137 'actions': [ |
| 138 { | 138 { |
| 139 'action_name': 'run_mksnapshot', | 139 'action_name': 'run_mksnapshot', |
| 140 'inputs': [ | 140 'inputs': [ |
| 141 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)mksnapshot<(EXECUTABLE_SUFFI X)', | 141 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)mksnapshot.<(v8_target_arch) <(EXECUTABLE_SUFFIX)', |
| 142 ], | 142 ], |
| 143 'outputs': [ | 143 'outputs': [ |
| 144 '<(INTERMEDIATE_DIR)/snapshot.cc', | 144 '<(INTERMEDIATE_DIR)/snapshot.cc', |
| 145 ], | 145 ], |
| 146 'variables': { | 146 'variables': { |
| 147 'mksnapshot_flags': [ | 147 'mksnapshot_flags': [ |
| 148 '--log-snapshot-positions', | 148 '--log-snapshot-positions', |
| 149 '--logfile', '<(INTERMEDIATE_DIR)/snapshot.log', | 149 '--logfile', '<(INTERMEDIATE_DIR)/snapshot.log', |
| 150 ], | 150 ], |
| 151 }, | 151 }, |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 185 ], | 185 ], |
| 186 'action': [ | 186 'action': [ |
| 187 '<@(_inputs)', | 187 '<@(_inputs)', |
| 188 '<@(mksnapshot_flags)', | 188 '<@(mksnapshot_flags)', |
| 189 '<@(_outputs)' | 189 '<@(_outputs)' |
| 190 ], | 190 ], |
| 191 }, | 191 }, |
| 192 ], | 192 ], |
| 193 }, | 193 }, |
| 194 { | 194 { |
| 195 'target_name': 'v8_nosnapshot', | 195 'target_name': 'v8_nosnapshot.<(v8_target_arch)', |
| 196 'type': 'static_library', | 196 'type': 'static_library', |
| 197 'dependencies': [ | 197 'dependencies': [ |
| 198 'v8_base', | 198 'v8_base.<(v8_target_arch)', |
| 199 ], | 199 ], |
| 200 'include_dirs+': [ | 200 'include_dirs+': [ |
| 201 '../../src', | 201 '../../src', |
| 202 ], | 202 ], |
| 203 'sources': [ | 203 'sources': [ |
| 204 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc', | 204 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc', |
| 205 '<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc', | 205 '<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc', |
| 206 '../../src/snapshot-empty.cc', | 206 '../../src/snapshot-empty.cc', |
| 207 ], | 207 ], |
| 208 'conditions': [ | 208 'conditions': [ |
| 209 ['want_separate_host_toolset==1', { | 209 ['want_separate_host_toolset==1', { |
| 210 'toolsets': ['host', 'target'], | 210 'toolsets': ['host', 'target'], |
| 211 'dependencies': ['js2c#host'], | 211 'dependencies': ['js2c#host'], |
| 212 }, { | 212 }, { |
| 213 'toolsets': ['target'], | 213 'toolsets': ['target'], |
| 214 'dependencies': ['js2c'], | 214 'dependencies': ['js2c'], |
| 215 }], | 215 }], |
| 216 ['component=="shared_library"', { | 216 ['component=="shared_library"', { |
| 217 'defines': [ | 217 'defines': [ |
| 218 'BUILDING_V8_SHARED', | 218 'BUILDING_V8_SHARED', |
| 219 'V8_SHARED', | 219 'V8_SHARED', |
| 220 ], | 220 ], |
| 221 }], | 221 }], |
| 222 ] | 222 ] |
| 223 }, | 223 }, |
| 224 { | 224 { |
| 225 'target_name': 'v8_base', | 225 'target_name': 'v8_base.<(v8_target_arch)', |
| 226 'type': 'static_library', | 226 'type': 'static_library', |
| 227 'variables': { | 227 'variables': { |
| 228 'optimize': 'max', | 228 'optimize': 'max', |
| 229 }, | 229 }, |
| 230 'include_dirs+': [ | 230 'include_dirs+': [ |
| 231 '../../src', | 231 '../../src', |
| 232 ], | 232 ], |
| 233 'sources': [ | 233 'sources': [ |
| 234 '../../src/accessors.cc', | 234 '../../src/accessors.cc', |
| 235 '../../src/accessors.h', | 235 '../../src/accessors.h', |
| (...skipping 625 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 861 'action': [ | 861 'action': [ |
| 862 'python', | 862 'python', |
| 863 '../../tools/gen-postmortem-metadata.py', | 863 '../../tools/gen-postmortem-metadata.py', |
| 864 '<@(_outputs)', | 864 '<@(_outputs)', |
| 865 '<@(heapobject_files)' | 865 '<@(heapobject_files)' |
| 866 ] | 866 ] |
| 867 } | 867 } |
| 868 ] | 868 ] |
| 869 }, | 869 }, |
| 870 { | 870 { |
| 871 'target_name': 'mksnapshot', | 871 'target_name': 'mksnapshot.<(v8_target_arch)', |
| 872 'type': 'executable', | 872 'type': 'executable', |
| 873 'dependencies': [ | 873 'dependencies': [ |
| 874 'v8_base', | 874 'v8_base.<(v8_target_arch)', |
| 875 'v8_nosnapshot', | 875 'v8_nosnapshot.<(v8_target_arch)', |
| 876 ], | 876 ], |
| 877 'include_dirs+': [ | 877 'include_dirs+': [ |
| 878 '../../src', | 878 '../../src', |
| 879 ], | 879 ], |
| 880 'sources': [ | 880 'sources': [ |
| 881 '../../src/mksnapshot.cc', | 881 '../../src/mksnapshot.cc', |
| 882 ], | 882 ], |
| 883 'conditions': [ | 883 'conditions': [ |
| 884 ['want_separate_host_toolset==1', { | 884 ['want_separate_host_toolset==1', { |
| 885 'toolsets': ['host'], | 885 'toolsets': ['host'], |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1057 }], | 1057 }], |
| 1058 ], | 1058 ], |
| 1059 'dependencies': [ | 1059 'dependencies': [ |
| 1060 'v8' | 1060 'v8' |
| 1061 ], | 1061 ], |
| 1062 }, | 1062 }, |
| 1063 ], | 1063 ], |
| 1064 }], | 1064 }], |
| 1065 ], | 1065 ], |
| 1066 } | 1066 } |
| OLD | NEW |