Tue, 06 Jan 2015 21:39:09 +0100
Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.
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 |
michael@0 | 3 | # file, You can obtain one at http://mozilla.org/MPL/2.0/. |
michael@0 | 4 | |
michael@0 | 5 | ifndef INCLUDED_VERSION_MK |
michael@0 | 6 | INCLUDED_VERSION_MK=1 |
michael@0 | 7 | |
michael@0 | 8 | # Windows gmake build: |
michael@0 | 9 | # Build default .rc file if $(RESFILE) isn't defined. |
michael@0 | 10 | # TODO: |
michael@0 | 11 | # PBI : Private build info. Not used currently. |
michael@0 | 12 | # Guessing the best way would be to set an env var. |
michael@0 | 13 | # BINARY : Binary name. Not used currently. |
michael@0 | 14 | ifeq ($(MOZ_WIDGET_TOOLKIT),windows) |
michael@0 | 15 | ifndef RESFILE |
michael@0 | 16 | RCFILE=./module.rc |
michael@0 | 17 | RESFILE=./module.res |
michael@0 | 18 | _RC_STRING = -QUIET 1 -DEPTH $(DEPTH) -TOPSRCDIR $(topsrcdir) -OBJDIR . -SRCDIR $(srcdir) -DISPNAME "$(MOZ_APP_DISPLAYNAME)" -APPVERSION "$(MOZ_APP_VERSION)" |
michael@0 | 19 | ifdef MOZILLA_OFFICIAL |
michael@0 | 20 | _RC_STRING += -OFFICIAL 1 |
michael@0 | 21 | endif |
michael@0 | 22 | ifdef MOZ_DEBUG |
michael@0 | 23 | _RC_STRING += -DEBUG 1 |
michael@0 | 24 | endif |
michael@0 | 25 | ifdef PROGRAM |
michael@0 | 26 | _RC_STRING += -BINARY $(PROGRAM) |
michael@0 | 27 | else |
michael@0 | 28 | ifdef _PROGRAM |
michael@0 | 29 | _RC_STRING += -BINARY $(_PROGRAM) |
michael@0 | 30 | else |
michael@0 | 31 | ifdef SHARED_LIBRARY |
michael@0 | 32 | _RC_STRING += -BINARY $(SHARED_LIBRARY) |
michael@0 | 33 | endif |
michael@0 | 34 | endif |
michael@0 | 35 | endif |
michael@0 | 36 | ifdef RCINCLUDE |
michael@0 | 37 | _RC_STRING += -RCINCLUDE $(srcdir)/$(RCINCLUDE) |
michael@0 | 38 | endif |
michael@0 | 39 | |
michael@0 | 40 | GARBAGE += $(RESFILE) $(RCFILE) |
michael@0 | 41 | |
michael@0 | 42 | #dummy target so $(RCFILE) doesn't become the default =P |
michael@0 | 43 | all:: |
michael@0 | 44 | |
michael@0 | 45 | $(RCFILE): $(RCINCLUDE) $(topsrcdir)/config/version_win.pl |
michael@0 | 46 | $(PERL) $(topsrcdir)/config/version_win.pl $(_RC_STRING) |
michael@0 | 47 | |
michael@0 | 48 | endif # RESFILE |
michael@0 | 49 | endif # Windows |
michael@0 | 50 | |
michael@0 | 51 | endif |