config/Makefile.in

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/config/Makefile.in	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,131 @@
     1.4 +# -*- Makefile -*-
     1.5 +#
     1.6 +# This Source Code Form is subject to the terms of the Mozilla Public
     1.7 +# License, v. 2.0. If a copy of the MPL was not distributed with this
     1.8 +# file, You can obtain one at http://mozilla.org/MPL/2.0/.
     1.9 +
    1.10 +# STDCXX_COMPAT is not needed here, and will actually fail because
    1.11 +# libstdc++-compat is not built yet.
    1.12 +MOZ_LIBSTDCXX_HOST_VERSION =
    1.13 +
    1.14 +# IMPORTANT: Disable NSBUILDROOT for this directory only, otherwise we have
    1.15 +# a recursive rule for finding nsinstall and the Perl scripts.
    1.16 +ifdef NSBUILDROOT
    1.17 +override NSBUILDROOT :=
    1.18 +endif
    1.19 +
    1.20 +ifdef GNU_CC
    1.21 +MODULE_OPTIMIZE_FLAGS = -O3
    1.22 +endif
    1.23 +
    1.24 +include $(topsrcdir)/config/config.mk
    1.25 +
    1.26 +ifneq (WINNT,$(HOST_OS_ARCH))
    1.27 +ifdef COMPILE_ENVIRONMENT
    1.28 +# Ensure nsinstall is atomically created
    1.29 +nsinstall$(HOST_BIN_SUFFIX): $(HOST_PROGRAM)
    1.30 +	cp $^ $@.tmp
    1.31 +	mv $@.tmp $@
    1.32 +
    1.33 +NSINSTALL_EXECUTABLES := nsinstall$(HOST_BIN_SUFFIX)
    1.34 +NSINSTALL_DEST := $(DIST)/bin
    1.35 +NSINSTALL_TARGET := export
    1.36 +INSTALL_TARGETS += NSINSTALL
    1.37 +endif
    1.38 +endif
    1.39 +
    1.40 +ifndef JS_STANDALONE
    1.41 +HEADERS_FILES = \
    1.42 +	$(DEPTH)/mozilla-config.h \
    1.43 +	$(NULL)
    1.44 +HEADERS_DEST := $(DIST)/include
    1.45 +HEADERS_TARGET := export
    1.46 +INSTALL_TARGETS += HEADERS
    1.47 +endif
    1.48 +
    1.49 +PYTHON_UNIT_TESTS := $(wildcard $(srcdir)/tests/unit-*.py)
    1.50 +
    1.51 +include $(topsrcdir)/config/rules.mk
    1.52 +
    1.53 +HOST_CFLAGS += -DUNICODE -D_UNICODE
    1.54 +
    1.55 +ifndef JS_STANDALONE
    1.56 +# Generate a new buildid every time we "export" in config... that's only
    1.57 +# supposed to be once per-build!
    1.58 +export::
    1.59 +ifdef MOZ_BUILD_DATE
    1.60 +	printf '%s' $(MOZ_BUILD_DATE) > buildid
    1.61 +else
    1.62 +	$(PYTHON) $(topsrcdir)/toolkit/xre/make-platformini.py --print-buildid > buildid
    1.63 +endif
    1.64 +endif
    1.65 +
    1.66 +ifdef WRAP_SYSTEM_INCLUDES
    1.67 +export-preqs = \
    1.68 +  $(call mkdir_deps,system_wrappers) \
    1.69 +  $(NULL)
    1.70 +
    1.71 +export:: $(export-preqs)
    1.72 +	$(PYTHON) -m mozbuild.action.preprocessor $(DEFINES) $(ACDEFINES) \
    1.73 +		-DMOZ_TREE_CAIRO=$(MOZ_TREE_CAIRO) \
    1.74 +		-DMOZ_TREE_PIXMAN=$(MOZ_TREE_PIXMAN) \
    1.75 +		-DMOZ_NATIVE_HUNSPELL=$(MOZ_NATIVE_HUNSPELL) \
    1.76 +		-DMOZ_NATIVE_BZ2=$(MOZ_NATIVE_BZ2) \
    1.77 +		-DMOZ_NATIVE_ZLIB=$(MOZ_NATIVE_ZLIB) \
    1.78 +		-DMOZ_NATIVE_PNG=$(MOZ_NATIVE_PNG) \
    1.79 +		-DMOZ_NATIVE_JPEG=$(MOZ_NATIVE_JPEG) \
    1.80 +		-DMOZ_NATIVE_LIBEVENT=$(MOZ_NATIVE_LIBEVENT) \
    1.81 +		-DMOZ_NATIVE_LIBVPX=$(MOZ_NATIVE_LIBVPX) \
    1.82 +		-DMOZ_NATIVE_ICU=$(MOZ_NATIVE_ICU) \
    1.83 +		$(srcdir)/system-headers | $(PERL) $(topsrcdir)/nsprpub/config/make-system-wrappers.pl system_wrappers
    1.84 +	$(INSTALL) system_wrappers $(DIST)
    1.85 +
    1.86 +GARBAGE_DIRS += system_wrappers
    1.87 +endif
    1.88 +
    1.89 +ifdef WRAP_STL_INCLUDES
    1.90 +ifdef GNU_CXX
    1.91 +stl_compiler = gcc
    1.92 +else
    1.93 +ifdef _MSC_VER
    1.94 +stl_compiler = msvc
    1.95 +endif
    1.96 +endif
    1.97 +endif
    1.98 +
    1.99 +ifdef stl_compiler
   1.100 +STL_WRAPPERS_SENTINEL = $(DIST)/stl_wrappers/sentinel
   1.101 +
   1.102 +$(STL_WRAPPERS_SENTINEL): $(srcdir)/make-stl-wrappers.py $(srcdir)/$(stl_compiler)-stl-wrapper.template.h $(srcdir)/stl-headers $(GLOBAL_DEPS)
   1.103 +	$(PYTHON) $(srcdir)/make-stl-wrappers.py stl_wrappers $(stl_compiler) $(srcdir)/$(stl_compiler)-stl-wrapper.template.h $(srcdir)/stl-headers
   1.104 +	$(PYTHON) $(srcdir)/nsinstall.py -t stl_wrappers $(DIST)
   1.105 +	touch $(STL_WRAPPERS_SENTINEL)
   1.106 +
   1.107 +export:: $(STL_WRAPPERS_SENTINEL)
   1.108 +
   1.109 +GARBAGE += $(STL_WRAPPERS_SENTINEL)
   1.110 +GARBAGE_DIRS += stl_wrappers
   1.111 +endif
   1.112 +
   1.113 +GARBAGE += \
   1.114 +  $(FINAL_LINK_COMPS) $(FINAL_LINK_LIBS) $(FINAL_LINK_COMP_NAMES) buildid $(srcdir)/*.pyc *.pyc
   1.115 +
   1.116 +FORCE:
   1.117 +
   1.118 +ifndef JS_STANDALONE
   1.119 +check-preqs += check-jar-mn
   1.120 +endif
   1.121 +check-preqs += check-makefiles
   1.122 +
   1.123 +check:: $(check-preqs)
   1.124 +
   1.125 +check-jar-mn::
   1.126 +	$(MAKE) -C tests/src-simple check-jar
   1.127 +	$(MAKE) -C tests/src-simple check-flat
   1.128 +	$(MAKE) -C tests/src-simple check-flat USE_EXTENSION_MANIFEST=1
   1.129 +ifneq (,$(filter-out WINNT,$(OS_ARCH)))
   1.130 +	$(MAKE) -C tests/src-simple check-symlink
   1.131 +endif
   1.132 +
   1.133 +check-makefiles:
   1.134 +	$(MAKE) -C tests/makefiles/autodeps check

mercurial