blob: 0d0624705797036608660565fe859f1585eae364 [file] [log] [blame]
Chung-Cheng Lou9bf59422012-03-02 15:53:23 -08001# This file is generated by gyp; do not edit.
2
3TOOLSET := target
4TARGET := libyuv
5DEFS_Debug := '-DNO_HEAPCHECKER' \
6 '-DCHROMIUM_BUILD' \
7 '-DUSE_NSS=1' \
8 '-DTOOLKIT_USES_GTK=1' \
9 '-DGTK_DISABLE_SINGLE_INCLUDES=1' \
10 '-DWEBUI_TASK_MANAGER=1' \
11 '-DENABLE_REMOTING=1' \
12 '-DENABLE_P2P_APIS=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_REGISTER_PROTOCOL_HANDLER=1' \
20 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
21 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
22 '-D_DEBUG'
23
24# Flags passed to all source files.
25CFLAGS_Debug := -pthread \
26 -fno-exceptions \
27 -Wno-unused-parameter \
28 -Wno-missing-field-initializers \
29 -D_FILE_OFFSET_BITS=64 \
30 -fvisibility=hidden \
31 -pipe \
32 -fPIC \
33 -fno-strict-aliasing \
34 -Wno-format \
35 -Wno-unused-result \
36 -O0 \
37 -g
38
39# Flags passed to only C files.
40CFLAGS_C_Debug :=
41
42# Flags passed to only C++ files.
43CFLAGS_CC_Debug := -fno-rtti \
44 -fno-threadsafe-statics \
45 -fvisibility-inlines-hidden \
46 -Wno-deprecated
47
48INCS_Debug := -Ithird_party/libyuv/include \
49 -Ithird_party/libyuv
50
51DEFS_Release := '-DNO_HEAPCHECKER' \
52 '-DCHROMIUM_BUILD' \
53 '-DUSE_NSS=1' \
54 '-DTOOLKIT_USES_GTK=1' \
55 '-DGTK_DISABLE_SINGLE_INCLUDES=1' \
56 '-DWEBUI_TASK_MANAGER=1' \
57 '-DENABLE_REMOTING=1' \
58 '-DENABLE_P2P_APIS=1' \
59 '-DENABLE_CONFIGURATION_POLICY' \
60 '-DENABLE_INPUT_SPEECH' \
61 '-DENABLE_NOTIFICATIONS' \
62 '-DENABLE_GPU=1' \
63 '-DENABLE_EGLIMAGE=1' \
64 '-DUSE_SKIA=1' \
65 '-DENABLE_REGISTER_PROTOCOL_HANDLER=1' \
66 '-DNDEBUG' \
67 '-DNVALGRIND' \
68 '-DDYNAMIC_ANNOTATIONS_ENABLED=0'
69
70# Flags passed to all source files.
71CFLAGS_Release := -pthread \
72 -fno-exceptions \
73 -Wno-unused-parameter \
74 -Wno-missing-field-initializers \
75 -D_FILE_OFFSET_BITS=64 \
76 -fvisibility=hidden \
77 -pipe \
78 -fPIC \
79 -fno-strict-aliasing \
80 -Wno-format \
81 -Wno-unused-result \
82 -O2 \
83 -fno-ident \
84 -fdata-sections \
85 -ffunction-sections
86
87# Flags passed to only C files.
88CFLAGS_C_Release :=
89
90# Flags passed to only C++ files.
91CFLAGS_CC_Release := -fno-rtti \
92 -fno-threadsafe-statics \
93 -fvisibility-inlines-hidden \
94 -Wno-deprecated
95
96INCS_Release := -Ithird_party/libyuv/include \
97 -Ithird_party/libyuv
98
99OBJS := $(obj).target/$(TARGET)/third_party/libyuv/source/compare.o \
100 $(obj).target/$(TARGET)/third_party/libyuv/source/convert.o \
101 $(obj).target/$(TARGET)/third_party/libyuv/source/convertfrom.o \
102 $(obj).target/$(TARGET)/third_party/libyuv/source/cpu_id.o \
103 $(obj).target/$(TARGET)/third_party/libyuv/source/format_conversion.o \
104 $(obj).target/$(TARGET)/third_party/libyuv/source/planar_functions.o \
105 $(obj).target/$(TARGET)/third_party/libyuv/source/rotate.o \
106 $(obj).target/$(TARGET)/third_party/libyuv/source/row_common.o \
107 $(obj).target/$(TARGET)/third_party/libyuv/source/scale.o \
108 $(obj).target/$(TARGET)/third_party/libyuv/source/video_common.o \
109 $(obj).target/$(TARGET)/third_party/libyuv/source/row_posix.o
110
111# Add to the list of files we specially track dependencies for.
112all_deps += $(OBJS)
113
114# CFLAGS et al overrides must be target-local.
115# See "Target-specific Variable Values" in the GNU Make manual.
116$(OBJS): TOOLSET := $(TOOLSET)
117$(OBJS): GYP_CFLAGS := $(DEFS_$(BUILDTYPE)) $(INCS_$(BUILDTYPE)) $(CFLAGS_$(BUILDTYPE)) $(CFLAGS_C_$(BUILDTYPE))
118$(OBJS): GYP_CXXFLAGS := $(DEFS_$(BUILDTYPE)) $(INCS_$(BUILDTYPE)) $(CFLAGS_$(BUILDTYPE)) $(CFLAGS_CC_$(BUILDTYPE))
119
120# Suffix rules, putting all outputs into $(obj).
121
122$(obj).$(TOOLSET)/$(TARGET)/%.o: $(srcdir)/%.cc FORCE_DO_CMD
123 @$(call do_cmd,cxx,1)
124
125# Try building from generated source, too.
126
127$(obj).$(TOOLSET)/$(TARGET)/%.o: $(obj).$(TOOLSET)/%.cc FORCE_DO_CMD
128 @$(call do_cmd,cxx,1)
129
130$(obj).$(TOOLSET)/$(TARGET)/%.o: $(obj)/%.cc FORCE_DO_CMD
131 @$(call do_cmd,cxx,1)
132
133# End of this set of suffix rules
134### Rules for final target.
135LDFLAGS_Debug := -pthread \
136 -Wl,-z,noexecstack \
137 -fPIC
138
139LDFLAGS_Release := -pthread \
140 -Wl,-z,noexecstack \
141 -fPIC \
142 -Wl,-O1 \
143 -Wl,--as-needed \
144 -Wl,--gc-sections
145
146LIBS :=
147
148$(obj).target/third_party/libyuv/libyuv.a: GYP_LDFLAGS := $(LDFLAGS_$(BUILDTYPE))
149$(obj).target/third_party/libyuv/libyuv.a: LIBS := $(LIBS)
150$(obj).target/third_party/libyuv/libyuv.a: TOOLSET := $(TOOLSET)
151$(obj).target/third_party/libyuv/libyuv.a: $(OBJS) FORCE_DO_CMD
152 $(call do_cmd,alink)
153
154all_deps += $(obj).target/third_party/libyuv/libyuv.a
155# Add target alias
156.PHONY: libyuv
157libyuv: $(obj).target/third_party/libyuv/libyuv.a
158
159# Add target alias to "all" target.
160.PHONY: all
161all: libyuv
162