OLD | NEW |
1 # Copyright 2011 the V8 project authors. All rights reserved. | 1 # Copyright 2011 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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 }, | 225 }, |
226 }, | 226 }, |
227 }], | 227 }], |
228 ], | 228 ], |
229 }, | 229 }, |
230 }, | 230 }, |
231 }, | 231 }, |
232 'targets': [ | 232 'targets': [ |
233 { | 233 { |
234 'target_name': 'v8', | 234 'target_name': 'v8', |
| 235 'toolsets': ['host', 'target'], |
235 'conditions': [ | 236 'conditions': [ |
236 ['v8_use_snapshot=="true"', { | 237 ['v8_use_snapshot=="true"', { |
237 'dependencies': ['v8_snapshot'], | 238 'dependencies': ['v8_snapshot'], |
238 }, | 239 }, |
239 { | 240 { |
240 'dependencies': ['v8_nosnapshot'], | 241 'dependencies': ['v8_nosnapshot'], |
241 }], | 242 }], |
242 ['component=="shared_library"', { | 243 ['component=="shared_library"', { |
243 'type': '<(component)', | 244 'type': '<(component)', |
244 'sources': [ | 245 'sources': [ |
(...skipping 29 matching lines...) Expand all Loading... |
274 ], | 275 ], |
275 'direct_dependent_settings': { | 276 'direct_dependent_settings': { |
276 'include_dirs': [ | 277 'include_dirs': [ |
277 '../../include', | 278 '../../include', |
278 ], | 279 ], |
279 }, | 280 }, |
280 }, | 281 }, |
281 { | 282 { |
282 'target_name': 'v8_snapshot', | 283 'target_name': 'v8_snapshot', |
283 'type': '<(library)', | 284 'type': '<(library)', |
| 285 'toolsets': ['host', 'target'], |
284 'conditions': [ | 286 'conditions': [ |
285 ['component=="shared_library"', { | 287 ['component=="shared_library"', { |
286 'conditions': [ | 288 'conditions': [ |
287 ['OS=="win"', { | 289 ['OS=="win"', { |
288 'defines': [ | 290 'defines': [ |
289 'BUILDING_V8_SHARED', | 291 'BUILDING_V8_SHARED', |
290 ], | 292 ], |
291 'direct_dependent_settings': { | 293 'direct_dependent_settings': { |
292 'defines': [ | 294 'defines': [ |
293 'USING_V8_SHARED', | 295 'USING_V8_SHARED', |
(...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
947 }], | 949 }], |
948 ['v8_compress_startup_data=="bz2"', { | 950 ['v8_compress_startup_data=="bz2"', { |
949 'libraries': [ | 951 'libraries': [ |
950 '-lbz2', | 952 '-lbz2', |
951 ]}], | 953 ]}], |
952 ] | 954 ] |
953 }, | 955 }, |
954 { | 956 { |
955 'target_name': 'v8_shell', | 957 'target_name': 'v8_shell', |
956 'type': 'executable', | 958 'type': 'executable', |
| 959 'toolsets': ['host'], |
957 'dependencies': [ | 960 'dependencies': [ |
958 'v8' | 961 'v8' |
959 ], | 962 ], |
960 'sources': [ | 963 'sources': [ |
961 '../../samples/shell.cc', | 964 '../../samples/shell.cc', |
962 ], | 965 ], |
963 'conditions': [ | 966 'conditions': [ |
964 ['OS=="win"', { | 967 ['OS=="win"', { |
965 # This could be gotten by not setting chromium_code, if that's OK. | 968 # This could be gotten by not setting chromium_code, if that's OK. |
966 'defines': ['_CRT_SECURE_NO_WARNINGS'], | 969 'defines': ['_CRT_SECURE_NO_WARNINGS'], |
967 }], | 970 }], |
968 ['v8_compress_startup_data=="bz2"', { | 971 ['v8_compress_startup_data=="bz2"', { |
969 'libraries': [ | 972 'libraries': [ |
970 '-lbz2', | 973 '-lbz2', |
971 ]}], | 974 ]}], |
972 ], | 975 ], |
973 }, | 976 }, |
974 ], | 977 ], |
975 }, { # use_system_v8 != 0 | 978 }, { # use_system_v8 != 0 |
976 'targets': [ | 979 'targets': [ |
977 { | 980 { |
978 'target_name': 'v8', | 981 'target_name': 'v8', |
979 'type': 'settings', | 982 'type': 'settings', |
| 983 'toolsets': ['host', 'target'], |
980 'link_settings': { | 984 'link_settings': { |
981 'libraries': [ | 985 'libraries': [ |
982 '-lv8', | 986 '-lv8', |
983 ], | 987 ], |
984 }, | 988 }, |
985 }, | 989 }, |
986 { | 990 { |
987 'target_name': 'v8_shell', | 991 'target_name': 'v8_shell', |
988 'type': 'none', | 992 'type': 'none', |
| 993 'toolsets': ['host'], |
989 'dependencies': [ | 994 'dependencies': [ |
990 'v8' | 995 'v8' |
991 ], | 996 ], |
992 }, | 997 }, |
993 ], | 998 ], |
994 }], | 999 }], |
995 ], | 1000 ], |
996 } | 1001 } |
OLD | NEW |