Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1221819 - Move common gtest setup to single file, r=jld
--HG-- extra : rebase_source : 288404bbd9a03446c559ad459016f7eebc725b88
- Loading branch information
1 parent
5047139
commit 0ad6b1f
Showing
4 changed files
with
30 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#! 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 ../../cmd/platlibs.mk | ||
include ../../cmd/platrules.mk | ||
|
||
MKPROG = $(CCC) | ||
MKSHLIB = $(CCC) $(DSO_LDOPTS) $(DARWIN_SDK_SHLIBFLAGS) | ||
|
||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters