Bug 797671: Import Webrtc.org code from stable branch 3.12 (rev 2820) rs=jesup
[gecko.git] / media / webrtc / trunk / third_party / libyuv / libyuv.target.mk
blobcb97c62719cb58854314110ce931b39753b59ab5
1 # This file is generated by gyp; do not edit.
3 TOOLSET := target
4 TARGET := libyuv
5 DEFS_Debug := \
6 '-D_FILE_OFFSET_BITS=64' \
7 '-DCHROMIUM_BUILD' \
8 '-DUSE_NSS=1' \
9 '-DENABLE_ONE_CLICK_SIGNIN' \
10 '-DGTK_DISABLE_SINGLE_INCLUDES=1' \
11 '-DENABLE_REMOTING=1' \
12 '-DENABLE_WEBRTC=1' \
13 '-DENABLE_CONFIGURATION_POLICY' \
14 '-DENABLE_INPUT_SPEECH' \
15 '-DENABLE_NOTIFICATIONS' \
16 '-DENABLE_GPU=1' \
17 '-DENABLE_EGLIMAGE=1' \
18 '-DUSE_SKIA=1' \
19 '-DENABLE_TASK_MANAGER=1' \
20 '-DENABLE_WEB_INTENTS=1' \
21 '-DENABLE_EXTENSIONS=1' \
22 '-DENABLE_PLUGIN_INSTALLATION=1' \
23 '-DENABLE_PROTECTOR_SERVICE=1' \
24 '-DENABLE_SESSION_SERVICE=1' \
25 '-DENABLE_THEMES=1' \
26 '-DENABLE_BACKGROUND=1' \
27 '-DENABLE_AUTOMATION=1' \
28 '-DENABLE_PRINTING=1' \
29 '-DENABLE_CAPTIVE_PORTAL_DETECTION=1' \
30 '-DHAVE_JPEG' \
31 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
32 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
33 '-D_DEBUG'
35 # Flags passed to all source files.
36 CFLAGS_Debug := \
37 -pthread \
38 -fno-exceptions \
39 -fno-strict-aliasing \
40 -Wno-unused-parameter \
41 -Wno-missing-field-initializers \
42 -fvisibility=hidden \
43 -pipe \
44 -fPIC \
45 -Wno-format \
46 -Wno-unused-result \
47 -O0 \
50 # Flags passed to only C files.
51 CFLAGS_C_Debug :=
53 # Flags passed to only C++ files.
54 CFLAGS_CC_Debug := \
55 -fno-rtti \
56 -fno-threadsafe-statics \
57 -fvisibility-inlines-hidden \
58 -Wno-deprecated
60 INCS_Debug := \
61 -Ithird_party/libyuv/include \
62 -Ithird_party/libyuv \
63 -Ithird_party/libjpeg_turbo
65 DEFS_Release := \
66 '-D_FILE_OFFSET_BITS=64' \
67 '-DCHROMIUM_BUILD' \
68 '-DUSE_NSS=1' \
69 '-DENABLE_ONE_CLICK_SIGNIN' \
70 '-DGTK_DISABLE_SINGLE_INCLUDES=1' \
71 '-DENABLE_REMOTING=1' \
72 '-DENABLE_WEBRTC=1' \
73 '-DENABLE_CONFIGURATION_POLICY' \
74 '-DENABLE_INPUT_SPEECH' \
75 '-DENABLE_NOTIFICATIONS' \
76 '-DENABLE_GPU=1' \
77 '-DENABLE_EGLIMAGE=1' \
78 '-DUSE_SKIA=1' \
79 '-DENABLE_TASK_MANAGER=1' \
80 '-DENABLE_WEB_INTENTS=1' \
81 '-DENABLE_EXTENSIONS=1' \
82 '-DENABLE_PLUGIN_INSTALLATION=1' \
83 '-DENABLE_PROTECTOR_SERVICE=1' \
84 '-DENABLE_SESSION_SERVICE=1' \
85 '-DENABLE_THEMES=1' \
86 '-DENABLE_BACKGROUND=1' \
87 '-DENABLE_AUTOMATION=1' \
88 '-DENABLE_PRINTING=1' \
89 '-DENABLE_CAPTIVE_PORTAL_DETECTION=1' \
90 '-DHAVE_JPEG' \
91 '-DNDEBUG' \
92 '-DNVALGRIND' \
93 '-DDYNAMIC_ANNOTATIONS_ENABLED=0'
95 # Flags passed to all source files.
96 CFLAGS_Release := \
97 -pthread \
98 -fno-exceptions \
99 -fno-strict-aliasing \
100 -Wno-unused-parameter \
101 -Wno-missing-field-initializers \
102 -fvisibility=hidden \
103 -pipe \
104 -fPIC \
105 -Wno-format \
106 -Wno-unused-result \
107 -O2 \
108 -fno-ident \
109 -fdata-sections \
110 -ffunction-sections
112 # Flags passed to only C files.
113 CFLAGS_C_Release :=
115 # Flags passed to only C++ files.
116 CFLAGS_CC_Release := \
117 -fno-rtti \
118 -fno-threadsafe-statics \
119 -fvisibility-inlines-hidden \
120 -Wno-deprecated
122 INCS_Release := \
123 -Ithird_party/libyuv/include \
124 -Ithird_party/libyuv \
125 -Ithird_party/libjpeg_turbo
127 OBJS := \
128 $(obj).target/$(TARGET)/third_party/libyuv/source/compare.o \
129 $(obj).target/$(TARGET)/third_party/libyuv/source/convert.o \
130 $(obj).target/$(TARGET)/third_party/libyuv/source/convert_argb.o \
131 $(obj).target/$(TARGET)/third_party/libyuv/source/convert_from.o \
132 $(obj).target/$(TARGET)/third_party/libyuv/source/cpu_id.o \
133 $(obj).target/$(TARGET)/third_party/libyuv/source/format_conversion.o \
134 $(obj).target/$(TARGET)/third_party/libyuv/source/mjpeg_decoder.o \
135 $(obj).target/$(TARGET)/third_party/libyuv/source/planar_functions.o \
136 $(obj).target/$(TARGET)/third_party/libyuv/source/rotate.o \
137 $(obj).target/$(TARGET)/third_party/libyuv/source/rotate_argb.o \
138 $(obj).target/$(TARGET)/third_party/libyuv/source/rotate_neon.o \
139 $(obj).target/$(TARGET)/third_party/libyuv/source/row_common.o \
140 $(obj).target/$(TARGET)/third_party/libyuv/source/row_neon.o \
141 $(obj).target/$(TARGET)/third_party/libyuv/source/row_posix.o \
142 $(obj).target/$(TARGET)/third_party/libyuv/source/row_win.o \
143 $(obj).target/$(TARGET)/third_party/libyuv/source/scale.o \
144 $(obj).target/$(TARGET)/third_party/libyuv/source/scale_argb.o \
145 $(obj).target/$(TARGET)/third_party/libyuv/source/video_common.o
147 # Add to the list of files we specially track dependencies for.
148 all_deps += $(OBJS)
150 # CFLAGS et al overrides must be target-local.
151 # See "Target-specific Variable Values" in the GNU Make manual.
152 $(OBJS): TOOLSET := $(TOOLSET)
153 $(OBJS): GYP_CFLAGS := $(DEFS_$(BUILDTYPE)) $(INCS_$(BUILDTYPE)) $(CFLAGS_$(BUILDTYPE)) $(CFLAGS_C_$(BUILDTYPE))
154 $(OBJS): GYP_CXXFLAGS := $(DEFS_$(BUILDTYPE)) $(INCS_$(BUILDTYPE)) $(CFLAGS_$(BUILDTYPE)) $(CFLAGS_CC_$(BUILDTYPE))
156 # Suffix rules, putting all outputs into $(obj).
158 $(obj).$(TOOLSET)/$(TARGET)/%.o: $(srcdir)/%.cc FORCE_DO_CMD
159 @$(call do_cmd,cxx,1)
161 # Try building from generated source, too.
163 $(obj).$(TOOLSET)/$(TARGET)/%.o: $(obj).$(TOOLSET)/%.cc FORCE_DO_CMD
164 @$(call do_cmd,cxx,1)
166 $(obj).$(TOOLSET)/$(TARGET)/%.o: $(obj)/%.cc FORCE_DO_CMD
167 @$(call do_cmd,cxx,1)
169 # End of this set of suffix rules
170 ### Rules for final target.
171 LDFLAGS_Debug := \
172 -pthread \
173 -Wl,-z,noexecstack \
174 -fPIC \
175 -Wl,--threads \
176 -Wl,--thread-count=4 \
177 -B$(builddir)/../../third_party/gold \
178 -Wl,--icf=none
180 LDFLAGS_Release := \
181 -pthread \
182 -Wl,-z,noexecstack \
183 -fPIC \
184 -Wl,--threads \
185 -Wl,--thread-count=4 \
186 -B$(builddir)/../../third_party/gold \
187 -Wl,--icf=none \
188 -Wl,-O1 \
189 -Wl,--as-needed \
190 -Wl,--gc-sections
192 LIBS := \
195 $(obj).target/third_party/libyuv/libyuv.a: GYP_LDFLAGS := $(LDFLAGS_$(BUILDTYPE))
196 $(obj).target/third_party/libyuv/libyuv.a: LIBS := $(LIBS)
197 $(obj).target/third_party/libyuv/libyuv.a: TOOLSET := $(TOOLSET)
198 $(obj).target/third_party/libyuv/libyuv.a: $(OBJS) FORCE_DO_CMD
199 $(call do_cmd,alink)
201 all_deps += $(obj).target/third_party/libyuv/libyuv.a
202 # Add target alias
203 .PHONY: libyuv
204 libyuv: $(obj).target/third_party/libyuv/libyuv.a
206 # Add target alias to "all" target.
207 .PHONY: all
208 all: libyuv