Thu, 15 Jan 2015 15:59:08 +0100
Implement a real Private Browsing Mode condition by changing the API/ABI;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.
1 # This file is generated by gyp; do not edit.
3 TOOLSET := target
4 TARGET := gmock_main
5 DEFS_Debug := '-D_FILE_OFFSET_BITS=64' \
6 '-DCHROMIUM_BUILD' \
7 '-DUSE_NSS=1' \
8 '-DTOOLKIT_USES_GTK=1' \
9 '-DGTK_DISABLE_SINGLE_INCLUDES=1' \
10 '-DENABLE_REMOTING=1' \
11 '-DENABLE_P2P_APIS=1' \
12 '-DENABLE_CONFIGURATION_POLICY' \
13 '-DENABLE_INPUT_SPEECH' \
14 '-DENABLE_NOTIFICATIONS' \
15 '-DENABLE_GPU=1' \
16 '-DENABLE_EGLIMAGE=1' \
17 '-DUSE_SKIA=1' \
18 '-DENABLE_REGISTER_PROTOCOL_HANDLER=1' \
19 '-DENABLE_WEB_INTENTS=1' \
20 '-DENABLE_PLUGIN_INSTALLATION=1' \
21 '-DUNIT_TEST' \
22 '-DGTEST_HAS_RTTI=0' \
23 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
24 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
25 '-D_DEBUG'
27 # Flags passed to all source files.
28 CFLAGS_Debug := -pthread \
29 -fno-exceptions \
30 -fno-strict-aliasing \
31 -Wno-unused-parameter \
32 -Wno-missing-field-initializers \
33 -fvisibility=hidden \
34 -pipe \
35 -fPIC \
36 -Wno-format \
37 -Wno-unused-result \
38 -O0 \
39 -g
41 # Flags passed to only C files.
42 CFLAGS_C_Debug :=
44 # Flags passed to only C++ files.
45 CFLAGS_CC_Debug := -fno-rtti \
46 -fno-threadsafe-statics \
47 -fvisibility-inlines-hidden \
48 -Wno-deprecated
50 INCS_Debug := -Itesting/gmock/include \
51 -Itesting/gtest/include
53 DEFS_Release := '-D_FILE_OFFSET_BITS=64' \
54 '-DCHROMIUM_BUILD' \
55 '-DUSE_NSS=1' \
56 '-DTOOLKIT_USES_GTK=1' \
57 '-DGTK_DISABLE_SINGLE_INCLUDES=1' \
58 '-DENABLE_REMOTING=1' \
59 '-DENABLE_P2P_APIS=1' \
60 '-DENABLE_CONFIGURATION_POLICY' \
61 '-DENABLE_INPUT_SPEECH' \
62 '-DENABLE_NOTIFICATIONS' \
63 '-DENABLE_GPU=1' \
64 '-DENABLE_EGLIMAGE=1' \
65 '-DUSE_SKIA=1' \
66 '-DENABLE_REGISTER_PROTOCOL_HANDLER=1' \
67 '-DENABLE_WEB_INTENTS=1' \
68 '-DENABLE_PLUGIN_INSTALLATION=1' \
69 '-DUNIT_TEST' \
70 '-DGTEST_HAS_RTTI=0' \
71 '-DNDEBUG' \
72 '-DNVALGRIND' \
73 '-DDYNAMIC_ANNOTATIONS_ENABLED=0'
75 # Flags passed to all source files.
76 CFLAGS_Release := -pthread \
77 -fno-exceptions \
78 -fno-strict-aliasing \
79 -Wno-unused-parameter \
80 -Wno-missing-field-initializers \
81 -fvisibility=hidden \
82 -pipe \
83 -fPIC \
84 -Wno-format \
85 -Wno-unused-result \
86 -O2 \
87 -fno-ident \
88 -fdata-sections \
89 -ffunction-sections
91 # Flags passed to only C files.
92 CFLAGS_C_Release :=
94 # Flags passed to only C++ files.
95 CFLAGS_CC_Release := -fno-rtti \
96 -fno-threadsafe-statics \
97 -fvisibility-inlines-hidden \
98 -Wno-deprecated
100 INCS_Release := -Itesting/gmock/include \
101 -Itesting/gtest/include
103 OBJS := $(obj).target/$(TARGET)/testing/gmock/src/gmock_main.o
105 # Add to the list of files we specially track dependencies for.
106 all_deps += $(OBJS)
108 # CFLAGS et al overrides must be target-local.
109 # See "Target-specific Variable Values" in the GNU Make manual.
110 $(OBJS): TOOLSET := $(TOOLSET)
111 $(OBJS): GYP_CFLAGS := $(DEFS_$(BUILDTYPE)) $(INCS_$(BUILDTYPE)) $(CFLAGS_$(BUILDTYPE)) $(CFLAGS_C_$(BUILDTYPE))
112 $(OBJS): GYP_CXXFLAGS := $(DEFS_$(BUILDTYPE)) $(INCS_$(BUILDTYPE)) $(CFLAGS_$(BUILDTYPE)) $(CFLAGS_CC_$(BUILDTYPE))
114 # Suffix rules, putting all outputs into $(obj).
116 $(obj).$(TOOLSET)/$(TARGET)/%.o: $(srcdir)/%.cc FORCE_DO_CMD
117 @$(call do_cmd,cxx,1)
119 # Try building from generated source, too.
121 $(obj).$(TOOLSET)/$(TARGET)/%.o: $(obj).$(TOOLSET)/%.cc FORCE_DO_CMD
122 @$(call do_cmd,cxx,1)
124 $(obj).$(TOOLSET)/$(TARGET)/%.o: $(obj)/%.cc FORCE_DO_CMD
125 @$(call do_cmd,cxx,1)
127 # End of this set of suffix rules
128 ### Rules for final target.
129 LDFLAGS_Debug := -pthread \
130 -Wl,-z,noexecstack \
131 -fPIC \
132 -B$(builddir)/../../third_party/gold
134 LDFLAGS_Release := -pthread \
135 -Wl,-z,noexecstack \
136 -fPIC \
137 -B$(builddir)/../../third_party/gold \
138 -Wl,-O1 \
139 -Wl,--as-needed \
140 -Wl,--gc-sections
142 LIBS :=
144 $(obj).target/testing/libgmock_main.a: GYP_LDFLAGS := $(LDFLAGS_$(BUILDTYPE))
145 $(obj).target/testing/libgmock_main.a: LIBS := $(LIBS)
146 $(obj).target/testing/libgmock_main.a: TOOLSET := $(TOOLSET)
147 $(obj).target/testing/libgmock_main.a: $(OBJS) FORCE_DO_CMD
148 $(call do_cmd,alink)
150 all_deps += $(obj).target/testing/libgmock_main.a
151 # Add target alias
152 .PHONY: gmock_main
153 gmock_main: $(obj).target/testing/libgmock_main.a