mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 828317 - Require pymake to build on Windows; r=ted
This commit is contained in:
parent
82a66ac097
commit
8d30d5aabf
@ -2,22 +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/.
|
||||
|
||||
################################################
|
||||
# Parallel build on Windows with GNU make check
|
||||
|
||||
default::
|
||||
ifeq (,$(findstring pymake,$(MAKE)))
|
||||
ifeq ($(HOST_OS_ARCH),WINNT)
|
||||
ifneq (1,$(NUMBER_OF_PROCESSORS))
|
||||
@echo $(if $(findstring -j,$(value MAKEFLAGS)), \
|
||||
$(error You are using GNU make to build Firefox with -jN on Windows. \
|
||||
This will randomly deadlock. To compile a parallel build on Windows \
|
||||
run "python -OO build/pymake/make.py -f client.mk build". \
|
||||
See https://developer.mozilla.org/en/pymake for more details.))
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
installer:
|
||||
@$(MAKE) -C browser/installer installer
|
||||
|
||||
|
@ -82,7 +82,16 @@ endif
|
||||
####################################
|
||||
# Sanity checks
|
||||
|
||||
# Windows checks.
|
||||
ifneq (,$(findstring mingw,$(CONFIG_GUESS)))
|
||||
|
||||
# Require pymake (as opposed to GNU make).
|
||||
ifndef .PYMAKE
|
||||
$(error Pymake is required to build on Windows. Run |./mach build| to \
|
||||
automatically use pymake. Or, invoke pymake directly via \
|
||||
|python build/pymake/make.py|.)
|
||||
endif
|
||||
|
||||
# check for CRLF line endings
|
||||
ifneq (0,$(shell $(PERL) -e 'binmode(STDIN); while (<STDIN>) { if (/\r/) { print "1"; exit } } print "0"' < $(TOPSRCDIR)/client.mk))
|
||||
$(error This source tree appears to have Windows-style line endings. To \
|
||||
|
@ -66,6 +66,17 @@ endif
|
||||
USE_AUTOTARGETS_MK = 1
|
||||
include $(topsrcdir)/config/makefiles/makeutils.mk
|
||||
|
||||
# Only build with Pymake (not GNU make) on Windows.
|
||||
ifeq ($(HOST_OS_ARCH),WINNT)
|
||||
ifndef L10NBASEDIR
|
||||
ifndef .PYMAKE
|
||||
$(error Pymake is required to build on Windows. Run |./mach build| to \
|
||||
automatically use pymake or invoke pymake directly via \
|
||||
|python build/pymake/make.py|.)
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
ifdef SDK_HEADERS
|
||||
_EXTRA_EXPORTS := $(filter-out $(EXPORTS),$(SDK_HEADERS))
|
||||
EXPORTS += $(_EXTRA_EXPORTS)
|
||||
|
@ -66,6 +66,17 @@ endif
|
||||
USE_AUTOTARGETS_MK = 1
|
||||
include $(topsrcdir)/config/makefiles/makeutils.mk
|
||||
|
||||
# Only build with Pymake (not GNU make) on Windows.
|
||||
ifeq ($(HOST_OS_ARCH),WINNT)
|
||||
ifndef L10NBASEDIR
|
||||
ifndef .PYMAKE
|
||||
$(error Pymake is required to build on Windows. Run |./mach build| to \
|
||||
automatically use pymake or invoke pymake directly via \
|
||||
|python build/pymake/make.py|.)
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
ifdef SDK_HEADERS
|
||||
_EXTRA_EXPORTS := $(filter-out $(EXPORTS),$(SDK_HEADERS))
|
||||
EXPORTS += $(_EXTRA_EXPORTS)
|
||||
|
Loading…
Reference in New Issue
Block a user