diff options
author | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
---|---|---|
committer | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
commit | 5f8de423f190bbb79a62f804151bc24824fa32d8 (patch) | |
tree | 10027f336435511475e392454359edea8e25895d /security/nss/gtests/common/gtest.mk | |
parent | 49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff) | |
download | UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip |
Add m-esr52 at 52.6.0
Diffstat (limited to 'security/nss/gtests/common/gtest.mk')
-rw-r--r-- | security/nss/gtests/common/gtest.mk | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/security/nss/gtests/common/gtest.mk b/security/nss/gtests/common/gtest.mk new file mode 100644 index 000000000..ecb324e67 --- /dev/null +++ b/security/nss/gtests/common/gtest.mk @@ -0,0 +1,36 @@ +#! gmake +# +# 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/. + +include $(CORE_DEPTH)/cmd/platlibs.mk + +MKPROG = $(CCC) +MKSHLIB = $(CCC) $(DSO_LDOPTS) $(DARWIN_SDK_SHLIBFLAGS) + +# gtests pick up errors with signed/unsigned comparisons on some platforms +# even though we disabled -Wsign-compare. +# This catches that by enabling the warning. +# Only add -Wsign-compare if -Werror is enabled, lest we add it on the wrong +# platform. +ifeq (-Werror,$(filter -Werror -Wsign-compare,$(WARNING_CFLAGS))) +WARNING_CFLAGS += -Wsign-compare +endif +WARNING_CFLAGS := $(filter-out -w44018,$(WARNING_CFLAGS)) + +ifeq (WINNT,$(OS_ARCH)) + # -EHsc because gtest has exception handlers + OS_CFLAGS += -EHsc -nologo + # http://www.suodenjoki.dk/us/archive/2010/min-max.htm + OS_CFLAGS += -DNOMINMAX + + # Linking to winsock to get htonl + OS_LIBS += Ws2_32.lib + + # On windows, we need to create the parent directory + # Needed because we include files from a subdirectory + MAKE_OBJDIR = $(INSTALL) -D $(dir $@) +else + CXXFLAGS += -std=c++0x +endif |