Skip to content

Commit

Permalink
Bug 784841 - Part 18c: Convert /memory, /mfbt, /mozglue; r=ted f=Ms2ger
Browse files Browse the repository at this point in the history
  • Loading branch information
indygreg committed Feb 25, 2013
1 parent 6ed07ee commit 282edab
Show file tree
Hide file tree
Showing 20 changed files with 104 additions and 38 deletions.
14 changes: 0 additions & 14 deletions memory/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,4 @@ VPATH = @srcdir@

include $(DEPTH)/config/autoconf.mk

DIRS += mozjemalloc

ifneq (,$(MOZ_JEMALLOC3)$(MOZ_REPLACE_MALLOC))
ifndef MOZ_NATIVE_JEMALLOC
DIRS += jemalloc
endif
endif

DIRS += build

ifeq ($(MOZ_REPLACE_MALLOC_LINKAGE),dummy library)
DIRS += replace/dummy
endif

include $(topsrcdir)/config/rules.mk
5 changes: 5 additions & 0 deletions memory/build/moz.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# vim: set filetype=python:
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

5 changes: 5 additions & 0 deletions memory/jemalloc/moz.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# vim: set filetype=python:
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

16 changes: 16 additions & 0 deletions memory/moz.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# vim: set filetype=python:
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

DIRS += ['mozjemalloc']

if CONFIG['MOZ_JEMALLOC3'] or CONFIG['MOZ_REPLACE_MALLOC']:
if not CONFIG['MOZ_NATIVE_JEMALLOC']:
DIRS += ['jemalloc']

DIRS += ['build']

if CONFIG['MOZ_REPLACE_MALLOC_LINKAGE'] == 'dummy library':
DIRS += ['replace/dummy']

5 changes: 5 additions & 0 deletions memory/mozalloc/moz.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# vim: set filetype=python:
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

5 changes: 5 additions & 0 deletions memory/mozjemalloc/moz.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# vim: set filetype=python:
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

5 changes: 0 additions & 5 deletions memory/replace/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,4 @@ VPATH = @srcdir@

include $(DEPTH)/config/autoconf.mk

# Build jemalloc3 as a replace-malloc lib when building with mozjemalloc
ifndef MOZ_JEMALLOC
DIRS += jemalloc
endif

include $(topsrcdir)/config/rules.mk
5 changes: 5 additions & 0 deletions memory/replace/dmd/moz.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# vim: set filetype=python:
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

5 changes: 5 additions & 0 deletions memory/replace/dummy/moz.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# vim: set filetype=python:
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

5 changes: 5 additions & 0 deletions memory/replace/jemalloc/moz.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# vim: set filetype=python:
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

8 changes: 8 additions & 0 deletions memory/replace/moz.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# vim: set filetype=python:
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

# Build jemalloc3 as a replace-malloc lib when building with mozjemalloc
if not CONFIG['MOZ_JEMALLOC']:
DIRS += ['jemalloc']
4 changes: 0 additions & 4 deletions mfbt/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ LIBRARY_NAME = mfbt
FORCE_STATIC_LIB = 1
STL_FLAGS =

TEST_DIRS = \
tests \
$(NULL)

# exported_headers.mk defines the headers exported by mfbt. It is included by
# mfbt itself and by the JS engine, which, when built standalone, must do the
# work to install mfbt's exported headers itself.
Expand Down
6 changes: 6 additions & 0 deletions mfbt/moz.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# vim: set filetype=python:
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

TEST_DIRS += ['tests']
5 changes: 5 additions & 0 deletions mfbt/tests/moz.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# vim: set filetype=python:
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

15 changes: 0 additions & 15 deletions mozglue/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,4 @@ srcdir = @srcdir@
VPATH = @srcdir@

include $(DEPTH)/config/autoconf.mk

DIRS =

ifdef MOZ_LINKER
DIRS += linker
endif

ifeq (android,$(MOZ_WIDGET_TOOLKIT))
DIRS += android
endif

DIRS += build

TEST_DIRS = tests

include $(topsrcdir)/config/rules.mk
5 changes: 5 additions & 0 deletions mozglue/android/moz.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# vim: set filetype=python:
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

5 changes: 5 additions & 0 deletions mozglue/build/moz.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# vim: set filetype=python:
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

5 changes: 5 additions & 0 deletions mozglue/linker/moz.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# vim: set filetype=python:
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

14 changes: 14 additions & 0 deletions mozglue/moz.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# vim: set filetype=python:
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

if CONFIG['MOZ_LINKER']:
DIRS += ['linker']

if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android':
DIRS += ['android']

DIRS += ['build']

TEST_DIRS += ['tests']
5 changes: 5 additions & 0 deletions mozglue/tests/moz.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# vim: set filetype=python:
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

0 comments on commit 282edab

Please sign in to comment.