Build bmalloc on Mac
authorggaren@apple.com <ggaren@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 8 Apr 2014 05:31:41 +0000 (05:31 +0000)
committerggaren@apple.com <ggaren@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 8 Apr 2014 05:31:41 +0000 (05:31 +0000)
commit0c680c4d1f2230801c3732d0220527872281ed25
tree810bf9c74e377b7c6065f22e788382dc7e22471a
parentded533d8a49bf2a1324de63b33944de42b890eae
Build bmalloc on Mac
https://bugs.webkit.org/show_bug.cgi?id=131333

Reviewed by Mark Rowe.

.:

* Source/Makefile:
* WebKitBuild: Added.
* WebKitBuild/Debug: Added.

Source/bmalloc:

* Makefile: Added. For make clients.

These files are required for building any project in WebKit. I copied
them from WTF:
* Configurations: Added.
* Configurations/Base.xcconfig: Added.
* Configurations/DebugRelease.xcconfig: Added.
* Configurations/bmalloc.xcconfig: Added.
* Configurations/iOS.xcconfig: Added.
* Configurations/mbmalloc.xcconfig: Added.

* bmalloc.xcodeproj/project.pbxproj: I removed per-project-file stuff
from here because everything is in .xcconfig files now.

I had to fix a bunch of minor warnings, since they're enabled in our
.xcconfig files:

* bmalloc/AsyncTask.h:
(bmalloc::Function>::AsyncTask):
* bmalloc/BAssert.h:
* bmalloc/BoundaryTagInlines.h:
(bmalloc::validate):
* bmalloc/Heap.cpp:
(bmalloc::Heap::Heap):
(bmalloc::Heap::allocateLarge):
(bmalloc::Heap::deallocateLarge):
* bmalloc/Mutex.h:
(bmalloc::Mutex::Mutex): Deleted.
* bmalloc/VMAllocate.h:
(bmalloc::vmValidate):
* bmalloc/mbmalloc.cpp:

Tools:

* Scripts/build-webkit: Add the bmalloc target if we're on Mac.
(Note: Just testing Mac is not good enough because in this
script 'Mac' means 'Mac or iOS'.)

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@166910 268f45cc-cd09-0410-ab3c-d52691b4dbfc
20 files changed:
ChangeLog
Source/Makefile
Source/bmalloc/ChangeLog
Source/bmalloc/Configurations/Base.xcconfig [new file with mode: 0644]
Source/bmalloc/Configurations/DebugRelease.xcconfig [new file with mode: 0644]
Source/bmalloc/Configurations/bmalloc.xcconfig [new file with mode: 0644]
Source/bmalloc/Configurations/iOS.xcconfig [new file with mode: 0644]
Source/bmalloc/Configurations/mbmalloc.xcconfig [new file with mode: 0644]
Source/bmalloc/Makefile [new file with mode: 0644]
Source/bmalloc/bmalloc.xcodeproj/project.pbxproj
Source/bmalloc/bmalloc/AsyncTask.h
Source/bmalloc/bmalloc/BAssert.h
Source/bmalloc/bmalloc/BoundaryTagInlines.h
Source/bmalloc/bmalloc/Heap.cpp
Source/bmalloc/bmalloc/Mutex.h
Source/bmalloc/bmalloc/SegregatedFreeList.cpp
Source/bmalloc/bmalloc/VMAllocate.h
Source/bmalloc/bmalloc/mbmalloc.cpp
Tools/ChangeLog
Tools/Scripts/build-webkit