Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(371)

Side by Side Diff: SConstruct

Issue 465002: Initial OpenBSD support... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/SConscript » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 } 142 }
143 }, 143 },
144 'os:macos': { 144 'os:macos': {
145 'CCFLAGS': ['-ansi', '-mmacosx-version-min=10.4'], 145 'CCFLAGS': ['-ansi', '-mmacosx-version-min=10.4'],
146 }, 146 },
147 'os:freebsd': { 147 'os:freebsd': {
148 'CPPPATH' : ['/usr/local/include'], 148 'CPPPATH' : ['/usr/local/include'],
149 'LIBPATH' : ['/usr/local/lib'], 149 'LIBPATH' : ['/usr/local/lib'],
150 'CCFLAGS': ['-ansi'], 150 'CCFLAGS': ['-ansi'],
151 }, 151 },
152 'os:openbsd': {
153 'CPPPATH' : ['/usr/local/include'],
154 'LIBPATH' : ['/usr/local/lib'],
155 'CCFLAGS': ['-ansi'],
156 },
152 'os:win32': { 157 'os:win32': {
153 'CCFLAGS': ['-DWIN32'], 158 'CCFLAGS': ['-DWIN32'],
154 'CXXFLAGS': ['-DWIN32'], 159 'CXXFLAGS': ['-DWIN32'],
155 }, 160 },
156 'os:android': { 161 'os:android': {
157 'CPPDEFINES': ['ANDROID', '__ARM_ARCH_5__', '__ARM_ARCH_5T__', 162 'CPPDEFINES': ['ANDROID', '__ARM_ARCH_5__', '__ARM_ARCH_5T__',
158 '__ARM_ARCH_5E__', '__ARM_ARCH_5TE__'], 163 '__ARM_ARCH_5E__', '__ARM_ARCH_5TE__'],
159 'CCFLAGS': ANDROID_FLAGS, 164 'CCFLAGS': ANDROID_FLAGS,
160 'WARNINGFLAGS': ['-Wall', '-Wno-unused', '-Werror=return-type', 165 'WARNINGFLAGS': ['-Wall', '-Wno-unused', '-Werror=return-type',
161 '-Wstrict-aliasing=2'], 166 '-Wstrict-aliasing=2'],
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 'gcc': { 297 'gcc': {
293 'os:linux': { 298 'os:linux': {
294 'LIBS': ['pthread'], 299 'LIBS': ['pthread'],
295 }, 300 },
296 'os:macos': { 301 'os:macos': {
297 'LIBS': ['pthread'], 302 'LIBS': ['pthread'],
298 }, 303 },
299 'os:freebsd': { 304 'os:freebsd': {
300 'LIBS': ['execinfo', 'pthread'] 305 'LIBS': ['execinfo', 'pthread']
301 }, 306 },
307 'os:openbsd': {
308 'LIBS': ['execinfo', 'pthread']
309 },
302 'os:win32': { 310 'os:win32': {
303 'LIBS': ['winmm', 'ws2_32'], 311 'LIBS': ['winmm', 'ws2_32'],
304 }, 312 },
305 }, 313 },
306 'msvc': { 314 'msvc': {
307 'all': { 315 'all': {
308 'CPPDEFINES': ['_HAS_EXCEPTIONS=0'], 316 'CPPDEFINES': ['_HAS_EXCEPTIONS=0'],
309 'LIBS': ['winmm', 'ws2_32'] 317 'LIBS': ['winmm', 'ws2_32']
310 } 318 }
311 } 319 }
(...skipping 26 matching lines...) Expand all
338 }, 346 },
339 'os:linux': { 347 'os:linux': {
340 'LIBS': ['pthread'], 348 'LIBS': ['pthread'],
341 }, 349 },
342 'os:macos': { 350 'os:macos': {
343 'LIBS': ['pthread'], 351 'LIBS': ['pthread'],
344 }, 352 },
345 'os:freebsd': { 353 'os:freebsd': {
346 'LIBS': ['execinfo', 'pthread'] 354 'LIBS': ['execinfo', 'pthread']
347 }, 355 },
356 'os:openbsd': {
357 'LIBS': ['execinfo', 'pthread']
358 },
348 'os:win32': { 359 'os:win32': {
349 'LIBS': ['winmm', 'ws2_32'] 360 'LIBS': ['winmm', 'ws2_32']
350 }, 361 },
351 'os:android': { 362 'os:android': {
352 'CPPDEFINES': ['ANDROID', '__ARM_ARCH_5__', '__ARM_ARCH_5T__', 363 'CPPDEFINES': ['ANDROID', '__ARM_ARCH_5__', '__ARM_ARCH_5T__',
353 '__ARM_ARCH_5E__', '__ARM_ARCH_5TE__'], 364 '__ARM_ARCH_5E__', '__ARM_ARCH_5TE__'],
354 'CCFLAGS': ANDROID_FLAGS, 365 'CCFLAGS': ANDROID_FLAGS,
355 'CPPPATH': ANDROID_INCLUDES, 366 'CPPPATH': ANDROID_INCLUDES,
356 'LIBPATH': [ANDROID_TOP + '/out/target/product/generic/obj/lib'], 367 'LIBPATH': [ANDROID_TOP + '/out/target/product/generic/obj/lib'],
357 'LINKFLAGS': ANDROID_LINKFLAGS, 368 'LINKFLAGS': ANDROID_LINKFLAGS,
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 'CCFLAGS': ['-fno-rtti', '-fno-exceptions'] 402 'CCFLAGS': ['-fno-rtti', '-fno-exceptions']
392 }, 403 },
393 'os:linux': { 404 'os:linux': {
394 'LIBS': ['pthread'], 405 'LIBS': ['pthread'],
395 }, 406 },
396 'os:macos': { 407 'os:macos': {
397 'LIBS': ['pthread'], 408 'LIBS': ['pthread'],
398 }, 409 },
399 'os:freebsd': { 410 'os:freebsd': {
400 'LIBPATH' : ['/usr/local/lib'], 411 'LIBPATH' : ['/usr/local/lib'],
401 'LIBS': ['execinfo', 'pthread'] 412 'LIBS': ['execinfo', 'pthread']
413 },
414 'os:openbsd': {
415 'LIBPATH' : ['/usr/local/lib'],
416 'LIBS': ['execinfo', 'pthread']
402 }, 417 },
403 'os:win32': { 418 'os:win32': {
404 'LIBS': ['winmm', 'ws2_32'] 419 'LIBS': ['winmm', 'ws2_32']
405 }, 420 },
406 'os:android': { 421 'os:android': {
407 'CPPDEFINES': ['ANDROID', '__ARM_ARCH_5__', '__ARM_ARCH_5T__', 422 'CPPDEFINES': ['ANDROID', '__ARM_ARCH_5__', '__ARM_ARCH_5T__',
408 '__ARM_ARCH_5E__', '__ARM_ARCH_5TE__'], 423 '__ARM_ARCH_5E__', '__ARM_ARCH_5TE__'],
409 'CCFLAGS': ANDROID_FLAGS, 424 'CCFLAGS': ANDROID_FLAGS,
410 'CPPPATH': ANDROID_INCLUDES, 425 'CPPPATH': ANDROID_INCLUDES,
411 'LIBPATH': [ANDROID_TOP + '/out/target/product/generic/obj/lib'], 426 'LIBPATH': [ANDROID_TOP + '/out/target/product/generic/obj/lib'],
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 }, 513 },
499 'os:linux': { 514 'os:linux': {
500 'LIBS': ['pthread'], 515 'LIBS': ['pthread'],
501 }, 516 },
502 'os:macos': { 517 'os:macos': {
503 'LIBS': ['pthread'], 518 'LIBS': ['pthread'],
504 }, 519 },
505 'os:freebsd': { 520 'os:freebsd': {
506 'LIBS': ['pthread'], 521 'LIBS': ['pthread'],
507 }, 522 },
523 'os:openbsd': {
524 'LIBS': ['pthread'],
525 },
508 'os:android': { 526 'os:android': {
509 'LIBPATH': [ANDROID_TOP + '/out/target/product/generic/obj/lib'], 527 'LIBPATH': [ANDROID_TOP + '/out/target/product/generic/obj/lib'],
510 'LINKFLAGS': ANDROID_LINKFLAGS, 528 'LINKFLAGS': ANDROID_LINKFLAGS,
511 'LIBS': ['log', 'c', 'stdc++', 'm'], 529 'LIBS': ['log', 'c', 'stdc++', 'm'],
512 }, 530 },
513 'os:win32': { 531 'os:win32': {
514 'LIBS': ['winmm', 'ws2_32'], 532 'LIBS': ['winmm', 'ws2_32'],
515 }, 533 },
516 }, 534 },
517 'msvc': { 535 'msvc': {
(...skipping 30 matching lines...) Expand all
548 ARCH_GUESS = utils.GuessArchitecture() 566 ARCH_GUESS = utils.GuessArchitecture()
549 567
550 568
551 SIMPLE_OPTIONS = { 569 SIMPLE_OPTIONS = {
552 'toolchain': { 570 'toolchain': {
553 'values': ['gcc', 'msvc'], 571 'values': ['gcc', 'msvc'],
554 'default': TOOLCHAIN_GUESS, 572 'default': TOOLCHAIN_GUESS,
555 'help': 'the toolchain to use (' + TOOLCHAIN_GUESS + ')' 573 'help': 'the toolchain to use (' + TOOLCHAIN_GUESS + ')'
556 }, 574 },
557 'os': { 575 'os': {
558 'values': ['freebsd', 'linux', 'macos', 'win32', 'android'], 576 'values': ['freebsd', 'linux', 'macos', 'win32', 'android', 'openbsd'],
559 'default': OS_GUESS, 577 'default': OS_GUESS,
560 'help': 'the os to build for (' + OS_GUESS + ')' 578 'help': 'the os to build for (' + OS_GUESS + ')'
561 }, 579 },
562 'arch': { 580 'arch': {
563 'values':['arm', 'ia32', 'x64'], 581 'values':['arm', 'ia32', 'x64'],
564 'default': ARCH_GUESS, 582 'default': ARCH_GUESS,
565 'help': 'the architecture to build for (' + ARCH_GUESS + ')' 583 'help': 'the architecture to build for (' + ARCH_GUESS + ')'
566 }, 584 },
567 'regexp': { 585 'regexp': {
568 'values': ['native', 'interpreted'], 586 'values': ['native', 'interpreted'],
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
982 # version of scons. Also, there's a bug in some revisions that 1000 # version of scons. Also, there's a bug in some revisions that
983 # doesn't allow this flag to be set, so we swallow any exceptions. 1001 # doesn't allow this flag to be set, so we swallow any exceptions.
984 # Lovely. 1002 # Lovely.
985 try: 1003 try:
986 SetOption('warn', 'no-deprecated') 1004 SetOption('warn', 'no-deprecated')
987 except: 1005 except:
988 pass 1006 pass
989 1007
990 1008
991 Build() 1009 Build()
OLDNEW
« no previous file with comments | « no previous file | src/SConscript » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698