mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-07 12:15:51 +00:00
490ed7cdd4
--HG-- rename : toolkit/library/Makefile.in => toolkit/library/libxul.mk rename : toolkit/library/moz.build => toolkit/library/libxul.mozbuild
26 lines
1.0 KiB
Makefile
26 lines
1.0 KiB
Makefile
# 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 $(topsrcdir)/toolkit/library/libxul.mk
|
|
|
|
ifeq (WINNT_1,$(OS_TARGET)_$(MOZ_PROFILE_USE))
|
|
# Wrap linker to measure peak virtual memory usage.
|
|
LD := $(PYTHON) $(topsrcdir)/build/link.py $(DEPTH)/toolkit/library/linker-vsize $(LD)
|
|
endif
|
|
|
|
ifneq (,$(filter WINNT,$(OS_ARCH)))
|
|
SDK_LIBRARY = $(IMPORT_LIBRARY)
|
|
else
|
|
SDK_LIBRARY = $(SHARED_LIBRARY)
|
|
endif
|
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
ifdef COMPILE_ENVIRONMENT
|
|
libs:: $(FINAL_TARGET)/dependentlibs.list
|
|
endif
|
|
|
|
$(FINAL_TARGET)/dependentlibs.list: $(topsrcdir)/toolkit/library/dependentlibs.py $(SHARED_LIBRARY) $(wildcard $(if $(wildcard $(FINAL_TARGET)/dependentlibs.list),$(addprefix $(FINAL_TARGET)/,$(shell cat $(FINAL_TARGET)/dependentlibs.list))))
|
|
$(PYTHON) $< $(SHARED_LIBRARY) -L $(FINAL_TARGET) $(if $(TOOLCHAIN_PREFIX),$(addprefix -p ,$(TOOLCHAIN_PREFIX))) > $@
|