| OLD | NEW |
| 1 # Copyright 2008 the V8 project authors. All rights reserved. | 1 # Copyright 2008 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 'CCFLAGS': ['-O3', '-fomit-frame-pointer', '-fdata-sections', | 101 'CCFLAGS': ['-O3', '-fomit-frame-pointer', '-fdata-sections', |
| 102 '-ffunction-sections'], | 102 '-ffunction-sections'], |
| 103 'os:android': { | 103 'os:android': { |
| 104 'CCFLAGS': ['-mthumb', '-Os'], | 104 'CCFLAGS': ['-mthumb', '-Os'], |
| 105 'CPPDEFINES': ['SK_RELEASE', 'NDEBUG'] | 105 'CPPDEFINES': ['SK_RELEASE', 'NDEBUG'] |
| 106 } | 106 } |
| 107 }, | 107 }, |
| 108 'os:linux': { | 108 'os:linux': { |
| 109 'CCFLAGS': ['-ansi'], | 109 'CCFLAGS': ['-ansi'], |
| 110 'library:shared': { | 110 'library:shared': { |
| 111 'LIBS': ['pthread', 'rt'] | 111 'LIBS': ['pthread'] |
| 112 } | 112 } |
| 113 }, | 113 }, |
| 114 'os:macos': { | 114 'os:macos': { |
| 115 'CCFLAGS': ['-ansi'], | 115 'CCFLAGS': ['-ansi'], |
| 116 }, | 116 }, |
| 117 'os:freebsd': { | 117 'os:freebsd': { |
| 118 'CCFLAGS': ['-ansi'], | 118 'CCFLAGS': ['-ansi'], |
| 119 }, | 119 }, |
| 120 'os:win32': { | 120 'os:win32': { |
| 121 'CCFLAGS': ['-DWIN32'], | 121 'CCFLAGS': ['-DWIN32'], |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 'disassembler:on': { | 217 'disassembler:on': { |
| 218 'CPPDEFINES': ['ENABLE_DISASSEMBLER'] | 218 'CPPDEFINES': ['ENABLE_DISASSEMBLER'] |
| 219 } | 219 } |
| 220 } | 220 } |
| 221 } | 221 } |
| 222 | 222 |
| 223 | 223 |
| 224 MKSNAPSHOT_EXTRA_FLAGS = { | 224 MKSNAPSHOT_EXTRA_FLAGS = { |
| 225 'gcc': { | 225 'gcc': { |
| 226 'os:linux': { | 226 'os:linux': { |
| 227 'LIBS': ['pthread', 'rt'], | 227 'LIBS': ['pthread'], |
| 228 }, | 228 }, |
| 229 'os:macos': { | 229 'os:macos': { |
| 230 'LIBS': ['pthread'], | 230 'LIBS': ['pthread'], |
| 231 }, | 231 }, |
| 232 'os:freebsd': { | 232 'os:freebsd': { |
| 233 'LIBS': ['pthread'], | 233 'LIBS': ['pthread'], |
| 234 }, | 234 }, |
| 235 'os:win32': { | 235 'os:win32': { |
| 236 'LIBS': ['winmm', 'ws2_32'], | 236 'LIBS': ['winmm', 'ws2_32'], |
| 237 }, | 237 }, |
| (...skipping 23 matching lines...) Expand all Loading... |
| 261 CCTEST_EXTRA_FLAGS = { | 261 CCTEST_EXTRA_FLAGS = { |
| 262 'all': { | 262 'all': { |
| 263 'CPPPATH': [join(root_dir, 'src')], | 263 'CPPPATH': [join(root_dir, 'src')], |
| 264 'LIBS': ['$LIBRARY'] | 264 'LIBS': ['$LIBRARY'] |
| 265 }, | 265 }, |
| 266 'gcc': { | 266 'gcc': { |
| 267 'all': { | 267 'all': { |
| 268 'LIBPATH': [abspath('.')] | 268 'LIBPATH': [abspath('.')] |
| 269 }, | 269 }, |
| 270 'os:linux': { | 270 'os:linux': { |
| 271 'LIBS': ['pthread', 'rt'], | 271 'LIBS': ['pthread'], |
| 272 }, | 272 }, |
| 273 'os:macos': { | 273 'os:macos': { |
| 274 'LIBS': ['pthread'], | 274 'LIBS': ['pthread'], |
| 275 }, | 275 }, |
| 276 'os:freebsd': { | 276 'os:freebsd': { |
| 277 'LIBS': ['execinfo', 'pthread'] | 277 'LIBS': ['execinfo', 'pthread'] |
| 278 }, | 278 }, |
| 279 'os:win32': { | 279 'os:win32': { |
| 280 'LIBS': ['winmm', 'ws2_32'] | 280 'LIBS': ['winmm', 'ws2_32'] |
| 281 }, | 281 }, |
| (...skipping 18 matching lines...) Expand all Loading... |
| 300 'all': { | 300 'all': { |
| 301 'CPPPATH': [join(abspath('.'), 'include')], | 301 'CPPPATH': [join(abspath('.'), 'include')], |
| 302 'LIBS': ['$LIBRARY'], | 302 'LIBS': ['$LIBRARY'], |
| 303 }, | 303 }, |
| 304 'gcc': { | 304 'gcc': { |
| 305 'all': { | 305 'all': { |
| 306 'LIBPATH': ['.'], | 306 'LIBPATH': ['.'], |
| 307 'CCFLAGS': ['-fno-rtti', '-fno-exceptions'] | 307 'CCFLAGS': ['-fno-rtti', '-fno-exceptions'] |
| 308 }, | 308 }, |
| 309 'os:linux': { | 309 'os:linux': { |
| 310 'LIBS': ['pthread', 'rt'], | 310 'LIBS': ['pthread'], |
| 311 }, | 311 }, |
| 312 'os:macos': { | 312 'os:macos': { |
| 313 'LIBS': ['pthread'], | 313 'LIBS': ['pthread'], |
| 314 }, | 314 }, |
| 315 'os:freebsd': { | 315 'os:freebsd': { |
| 316 'LIBS': ['execinfo', 'pthread'] | 316 'LIBS': ['execinfo', 'pthread'] |
| 317 }, | 317 }, |
| 318 'os:win32': { | 318 'os:win32': { |
| 319 'LIBS': ['winmm', 'ws2_32'] | 319 'LIBS': ['winmm', 'ws2_32'] |
| 320 }, | 320 }, |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 380 } | 380 } |
| 381 } | 381 } |
| 382 | 382 |
| 383 | 383 |
| 384 D8_FLAGS = { | 384 D8_FLAGS = { |
| 385 'gcc': { | 385 'gcc': { |
| 386 'console:readline': { | 386 'console:readline': { |
| 387 'LIBS': ['readline'] | 387 'LIBS': ['readline'] |
| 388 }, | 388 }, |
| 389 'os:linux': { | 389 'os:linux': { |
| 390 'LIBS': ['pthread', 'rt'], | 390 'LIBS': ['pthread'], |
| 391 }, | 391 }, |
| 392 'os:macos': { | 392 'os:macos': { |
| 393 'LIBS': ['pthread'], | 393 'LIBS': ['pthread'], |
| 394 }, | 394 }, |
| 395 'os:freebsd': { | 395 'os:freebsd': { |
| 396 'LIBS': ['pthread'], | 396 'LIBS': ['pthread'], |
| 397 }, | 397 }, |
| 398 'os:android': { | 398 'os:android': { |
| 399 'LIBPATH': [ANDROID_TOP + '/out/target/product/generic/obj/lib'], | 399 'LIBPATH': [ANDROID_TOP + '/out/target/product/generic/obj/lib'], |
| 400 'LINKFLAGS': ANDROID_LINKFLAGS, | 400 'LINKFLAGS': ANDROID_LINKFLAGS, |
| (...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 766 # version of scons. Also, there's a bug in some revisions that | 766 # version of scons. Also, there's a bug in some revisions that |
| 767 # doesn't allow this flag to be set, so we swallow any exceptions. | 767 # doesn't allow this flag to be set, so we swallow any exceptions. |
| 768 # Lovely. | 768 # Lovely. |
| 769 try: | 769 try: |
| 770 SetOption('warn', 'no-deprecated') | 770 SetOption('warn', 'no-deprecated') |
| 771 except: | 771 except: |
| 772 pass | 772 pass |
| 773 | 773 |
| 774 | 774 |
| 775 Build() | 775 Build() |
| OLD | NEW |