Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | # This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 2 | # License, v. 2.0. If a copy of the MPL was not distributed with this file, |
michael@0 | 3 | # You can obtain one at http://mozilla.org/MPL/2.0/. |
michael@0 | 4 | |
michael@0 | 5 | # Enforce that the clean/distclean rules removes everything that needs |
michael@0 | 6 | # to be removed from this directory. |
michael@0 | 7 | ifneq (,$(filter clean distclean,$(MAKECMDGOALS))) |
michael@0 | 8 | LINK_GTEST = 1 |
michael@0 | 9 | endif |
michael@0 | 10 | |
michael@0 | 11 | ifndef LINK_GTEST |
michael@0 | 12 | # Force to not include backend.mk unless LINK_GTEST is defined. |
michael@0 | 13 | # Not including backend.mk makes traversing this directory do nothing. |
michael@0 | 14 | STANDALONE_MAKEFILE = 1 |
michael@0 | 15 | |
michael@0 | 16 | else |
michael@0 | 17 | |
michael@0 | 18 | include $(topsrcdir)/toolkit/library/libxul.mk |
michael@0 | 19 | |
michael@0 | 20 | ifdef COMPILE_ENVIRONMENT |
michael@0 | 21 | libs:: $(DIST)/bin/dependentlibs.list.gtest |
michael@0 | 22 | endif |
michael@0 | 23 | |
michael@0 | 24 | $(DIST)/bin/dependentlibs.list.gtest: $(DIST)/bin/dependentlibs.list |
michael@0 | 25 | sed -e 's|$(SHARED_LIBRARY)|gtest/$(SHARED_LIBRARY)|' $< > $@ |
michael@0 | 26 | |
michael@0 | 27 | LINK_PDBFILE = xul-gtest.pdb |
michael@0 | 28 | |
michael@0 | 29 | endif |