Skip to content

Commit

Permalink
Bug 976896 - Port STL_FLAGS to moz.build; r=mshal
Browse files Browse the repository at this point in the history
  • Loading branch information
ehsan committed Mar 5, 2014
1 parent f886d07 commit 243d01c
Show file tree
Hide file tree
Showing 124 changed files with 144 additions and 192 deletions.
2 changes: 0 additions & 2 deletions b2g/app/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ LIBS += \
endif
endif

STL_FLAGS=

LIBS += $(JEMALLOC_LIBS)

LIBS += \
Expand Down
2 changes: 2 additions & 0 deletions b2g/app/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,5 @@ if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
]

LDFLAGS += ['-Wl,--export-dynamic']

DISABLE_STL_WRAPPING = True
2 changes: 0 additions & 2 deletions browser/app/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ endif #} LIBXUL_SDK

# Build a binary bootstrapping with XRE_main

STL_FLAGS=

LIBS += \
$(XPCOM_STANDALONE_GLUE_LDOPTS) \
$(NULL)
Expand Down
2 changes: 2 additions & 0 deletions browser/app/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,5 @@ if CONFIG['OS_ARCH'] == 'WINNT':
# Set it to 256k. See bug 127069.
if CONFIG['OS_ARCH'] == 'WINNT' and not CONFIG['GNU_CC']:
LDFLAGS += ['/HEAP:0x40000']

DISABLE_STL_WRAPPING = True
1 change: 0 additions & 1 deletion build/stlport/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
# You can obtain one at http://mozilla.org/MPL/2.0/.

MODULES = stlport
STL_FLAGS =

# Force to build a static library, instead of a fake library, without
# installing it in dist/lib.
Expand Down
1 change: 1 addition & 0 deletions build/stlport/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,4 @@ LOCAL_INCLUDES += [
'stlport',
]

DISABLE_STL_WRAPPING = True
1 change: 0 additions & 1 deletion build/unix/stdc++compat/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# 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/.

STL_FLAGS =
NO_EXPAND_LIBS = 1

include $(topsrcdir)/config/rules.mk
Expand Down
2 changes: 2 additions & 0 deletions build/unix/stdc++compat/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,5 @@ if CONFIG['MOZ_LIBSTDCXX_HOST_VERSION']:
FORCE_STATIC_LIB = True

NO_PGO = True

DISABLE_STL_WRAPPING = True
4 changes: 2 additions & 2 deletions config/config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ endif
endif

COMPILE_CFLAGS = $(VISIBILITY_FLAGS) $(DEFINES) $(INCLUDES) $(DSO_CFLAGS) $(DSO_PIC_CFLAGS) $(RTL_FLAGS) $(OS_CPPFLAGS) $(OS_COMPILE_CFLAGS) $(CFLAGS) $(MOZBUILD_CFLAGS) $(EXTRA_COMPILE_FLAGS)
COMPILE_CXXFLAGS = $(STL_FLAGS) $(VISIBILITY_FLAGS) $(DEFINES) $(INCLUDES) $(DSO_CFLAGS) $(DSO_PIC_CFLAGS) $(RTL_FLAGS) $(OS_CPPFLAGS) $(OS_COMPILE_CXXFLAGS) $(CXXFLAGS) $(MOZBUILD_CXXFLAGS) $(EXTRA_COMPILE_FLAGS)
COMPILE_CXXFLAGS = $(if $(DISABLE_STL_WRAPPING),,$(STL_FLAGS)) $(VISIBILITY_FLAGS) $(DEFINES) $(INCLUDES) $(DSO_CFLAGS) $(DSO_PIC_CFLAGS) $(RTL_FLAGS) $(OS_CPPFLAGS) $(OS_COMPILE_CXXFLAGS) $(CXXFLAGS) $(MOZBUILD_CXXFLAGS) $(EXTRA_COMPILE_FLAGS)
COMPILE_CMFLAGS = $(OS_COMPILE_CMFLAGS) $(MOZBUILD_CMFLAGS) $(EXTRA_COMPILE_FLAGS)
COMPILE_CMMFLAGS = $(OS_COMPILE_CMMFLAGS) $(MOZBUILD_CMMFLAGS) $(EXTRA_COMPILE_FLAGS)
ASFLAGS += $(EXTRA_ASSEMBLER_FLAGS)
Expand Down Expand Up @@ -900,7 +900,7 @@ DEFINES += -DUNICODE -D_UNICODE
LOCAL_INCLUDES += -I'$(MOZ_DIRECTX_SDK_PATH)/include'
endif

STL_FLAGS=
DISABLE_STL_WRAPPING := 1
# Skip most Mozilla-specific include locations.
INCLUDES = -I. $(LOCAL_INCLUDES) -I$(DEPTH)/dist/include
endif
4 changes: 0 additions & 4 deletions dom/plugins/ipc/hangui/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@

OS_LIBS = $(call EXPAND_LIBNAME,comctl32)

STL_FLAGS = \
-D_HAS_EXCEPTIONS=0 \
$(NULL)

MOZ_GLUE_LDFLAGS =

include $(topsrcdir)/config/rules.mk
3 changes: 3 additions & 0 deletions dom/plugins/ipc/hangui/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ UNIFIED_SOURCES += [
include('/ipc/chromium/chromium-config.mozbuild')

DEFINES['NS_NO_XPCOM'] = True
DEFINES['_HAS_EXCEPTIONS'] = 0

DISABLE_STL_WRAPPING = True

if CONFIG['GNU_CC']:
WIN32_EXE_LDFLAGS += ['-municode']
Expand Down
3 changes: 0 additions & 3 deletions dom/plugins/test/testplugin/testplugin.mk
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
# 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/.

# Don't use STL wrappers; nptest isn't Gecko code
STL_FLAGS =

ifeq ($(MOZ_WIDGET_TOOLKIT),qt)
include $(topsrcdir)/config/config.mk
CXXFLAGS += $(MOZ_QT_CFLAGS)
Expand Down
3 changes: 3 additions & 0 deletions dom/plugins/test/testplugin/testplugin.mozbuild
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ FORCE_SHARED_LIB = True
# must link statically with the CRT; nptest isn't Gecko code
USE_STATIC_LIBS = True

# Don't use STL wrappers; nptest isn't Gecko code
DISABLE_STL_WRAPPING = True

if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
RCFILE = 'nptest.rc'
RESFILE = 'nptest.res'
Expand Down
2 changes: 0 additions & 2 deletions embedding/tests/winEmbed/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ LIBS = \
$(XPCOM_STANDALONE_GLUE_LDOPTS) \
$(NULL)

STL_FLAGS=

OS_LIBS += $(call EXPAND_LIBNAME,ole32 comdlg32 shell32 version)

include $(topsrcdir)/config/rules.mk
2 changes: 2 additions & 0 deletions embedding/tests/winEmbed/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,5 @@ else:
#
# Set it to 256k. See bug 127069.
LDFLAGS += ['/HEAP:0x40000']

DISABLE_STL_WRAPPING = True
3 changes: 0 additions & 3 deletions gfx/angle/src/libEGL/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
# 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/.

# ANGLE uses the STL, so we can't use our derpy STL wrappers.
STL_FLAGS =

ifndef GNU_CC
# Enable unwind semantics for exception handlers in response to warning C4530.
OS_CPPFLAGS += -EHsc
Expand Down
3 changes: 3 additions & 0 deletions gfx/angle/src/libEGL/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,6 @@ DEFINES['ANGLE_COMPILE_OPTIMIZATION_LEVEL'] = 'D3DCOMPILE_OPTIMIZATION_LEVEL1'

RCFILE = SRCDIR + '/libEGL.rc'
DEFFILE = SRCDIR + '/libEGL.def'

# ANGLE uses the STL, so we can't use our derpy STL wrappers.
DISABLE_STL_WRAPPING = True
3 changes: 0 additions & 3 deletions gfx/angle/src/libGLESv2/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
# 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/.

# ANGLE uses the STL, so we can't use our derpy STL wrappers.
STL_FLAGS =

ifndef GNU_CC
# Enable unwind semantics for exception handlers in response to warning C4530.
OS_CPPFLAGS += -EHsc
Expand Down
3 changes: 3 additions & 0 deletions gfx/angle/src/libGLESv2/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -199,3 +199,6 @@ DEFINES['ANGLE_COMPILE_OPTIMIZATION_LEVEL'] = 'D3DCOMPILE_OPTIMIZATION_LEVEL1'

RCFILE = SRCDIR + '/libGLESv2.rc'
DEFFILE = SRCDIR + '/libGLESv2.def'

# ANGLE uses the STL, so we can't use our derpy STL wrappers.
DISABLE_STL_WRAPPING = True
3 changes: 0 additions & 3 deletions media/omx-plugin/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Don't use STL wrappers; this isn't Gecko code
STL_FLAGS =

include $(topsrcdir)/config/rules.mk

ifeq ($(MOZ_WIDGET_TOOLKIT),gonk)
Expand Down
3 changes: 0 additions & 3 deletions media/omx-plugin/froyo/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Don't use STL wrappers; this isn't Gecko code
STL_FLAGS =

include $(topsrcdir)/config/rules.mk

EXTRA_DSO_LDOPTS += \
Expand Down
2 changes: 2 additions & 0 deletions media/omx-plugin/froyo/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ LOCAL_INCLUDES += [
'../include/froyo/media/stagefright/openmax',
]

# Don't use STL wrappers; this isn't Gecko code
DISABLE_STL_WRAPPING = True
3 changes: 0 additions & 3 deletions media/omx-plugin/gb/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Don't use STL wrappers; this isn't Gecko code
STL_FLAGS =

include $(topsrcdir)/config/rules.mk

EXTRA_DSO_LDOPTS += \
Expand Down
2 changes: 2 additions & 0 deletions media/omx-plugin/gb/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ LOCAL_INCLUDES += [
'../include/gb/media/stagefright/openmax',
]

# Don't use STL wrappers; this isn't Gecko code
DISABLE_STL_WRAPPING = True
3 changes: 0 additions & 3 deletions media/omx-plugin/gb235/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Don't use STL wrappers; this isn't Gecko code
STL_FLAGS =

include $(topsrcdir)/config/rules.mk

EXTRA_DSO_LDOPTS += \
Expand Down
2 changes: 2 additions & 0 deletions media/omx-plugin/gb235/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ LOCAL_INCLUDES += [
'../include/gb/media/stagefright/openmax',
]

# Don't use STL wrappers; this isn't Gecko code
DISABLE_STL_WRAPPING = True
3 changes: 0 additions & 3 deletions media/omx-plugin/hc/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Don't use STL wrappers; this isn't Gecko code
STL_FLAGS =

include $(topsrcdir)/config/rules.mk

EXTRA_DSO_LDOPTS += \
Expand Down
2 changes: 2 additions & 0 deletions media/omx-plugin/hc/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ LOCAL_INCLUDES += [
'../include/gb/media/stagefright/openmax',
]

# Don't use STL wrappers; this isn't Gecko code
DISABLE_STL_WRAPPING = True
3 changes: 0 additions & 3 deletions media/omx-plugin/kk/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Don't use STL wrappers; this isn't Gecko code
STL_FLAGS =

include $(topsrcdir)/config/rules.mk

EXTRA_DSO_LDOPTS += \
Expand Down
2 changes: 2 additions & 0 deletions media/omx-plugin/kk/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ LOCAL_INCLUDES += [
'../include/ics/media/stagefright/openmax',
]

# Don't use STL wrappers; this isn't Gecko code
DISABLE_STL_WRAPPING = True
3 changes: 0 additions & 3 deletions media/omx-plugin/lib/froyo/libstagefright/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Don't use STL wrappers; this isn't Gecko code
STL_FLAGS =

include $(topsrcdir)/config/rules.mk

EXTRA_DSO_LDOPTS += \
Expand Down
2 changes: 2 additions & 0 deletions media/omx-plugin/lib/froyo/libstagefright/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ LOCAL_INCLUDES += [
'/media/omx-plugin/include/froyo/media/stagefright/openmax',
]

# Don't use STL wrappers; this isn't Gecko code
DISABLE_STL_WRAPPING = True
3 changes: 0 additions & 3 deletions media/omx-plugin/lib/gb/libstagefright/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Don't use STL wrappers; this isn't Gecko code
STL_FLAGS =

include $(topsrcdir)/config/rules.mk

EXTRA_DSO_LDOPTS += \
Expand Down
2 changes: 2 additions & 0 deletions media/omx-plugin/lib/gb/libstagefright/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ LOCAL_INCLUDES += [
'/media/omx-plugin/include/gb/media/stagefright/openmax',
]

# Don't use STL wrappers; this isn't Gecko code
DISABLE_STL_WRAPPING = True
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Don't use STL wrappers; this isn't Gecko code
STL_FLAGS =

include $(topsrcdir)/config/rules.mk

# EXTRA_DSO_LDOPTS += \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ LOCAL_INCLUDES += [
'/media/omx-plugin/include/gb/media/stagefright/openmax',
]

# Don't use STL wrappers; this isn't Gecko code
DISABLE_STL_WRAPPING = True
16 changes: 0 additions & 16 deletions media/omx-plugin/lib/gb/libutils/Makefile.in

This file was deleted.

2 changes: 2 additions & 0 deletions media/omx-plugin/lib/gb/libutils/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ LOCAL_INCLUDES += [
'/media/omx-plugin/include/gb/media/stagefright/openmax',
]

# Don't use STL wrappers; this isn't Gecko code
DISABLE_STL_WRAPPING = True
3 changes: 0 additions & 3 deletions media/omx-plugin/lib/gb235/libstagefright/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Don't use STL wrappers; this isn't Gecko code
STL_FLAGS =

include $(topsrcdir)/config/rules.mk

EXTRA_DSO_LDOPTS += \
Expand Down
2 changes: 2 additions & 0 deletions media/omx-plugin/lib/gb235/libstagefright/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ LOCAL_INCLUDES += [
'/media/omx-plugin/include/gb/media/stagefright/openmax',
]

# Don't use STL wrappers; this isn't Gecko code
DISABLE_STL_WRAPPING = True
3 changes: 0 additions & 3 deletions media/omx-plugin/lib/hc/libstagefright/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Don't use STL wrappers; this isn't Gecko code
STL_FLAGS =

include $(topsrcdir)/config/rules.mk

EXTRA_DSO_LDOPTS += \
Expand Down
2 changes: 2 additions & 0 deletions media/omx-plugin/lib/hc/libstagefright/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ LOCAL_INCLUDES += [
'/media/omx-plugin/include/gb/media/stagefright/openmax',
]

# Don't use STL wrappers; this isn't Gecko code
DISABLE_STL_WRAPPING = True
3 changes: 0 additions & 3 deletions media/omx-plugin/lib/ics/libstagefright/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Don't use STL wrappers; this isn't Gecko code
STL_FLAGS =

include $(topsrcdir)/config/rules.mk

EXTRA_DSO_LDOPTS += \
Expand Down
2 changes: 2 additions & 0 deletions media/omx-plugin/lib/ics/libstagefright/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ LOCAL_INCLUDES += [
'/media/omx-plugin/include/ics/media/stagefright/openmax',
]

# Don't use STL wrappers; this isn't Gecko code
DISABLE_STL_WRAPPING = True
16 changes: 0 additions & 16 deletions media/omx-plugin/lib/ics/libutils/Makefile.in

This file was deleted.

2 changes: 2 additions & 0 deletions media/omx-plugin/lib/ics/libutils/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ LOCAL_INCLUDES += [
'/media/omx-plugin/include/ics/media/stagefright/openmax',
]

# Don't use STL wrappers; this isn't Gecko code
DISABLE_STL_WRAPPING = True
Loading

0 comments on commit 243d01c

Please sign in to comment.