libwebp_utils.target.linux-x86.mk revision c2e0dbddbe15c98d52c4786dac06cb8952a8ae6d
1# This file is generated by gyp; do not edit.
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_CLASS := STATIC_LIBRARIES
6LOCAL_MODULE := third_party_libwebp_libwebp_utils_gyp
7LOCAL_MODULE_SUFFIX := .a
8LOCAL_MODULE_TAGS := optional
9gyp_intermediate_dir := $(call local-intermediates-dir)
10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared)
11
12# Make sure our deps are built first.
13GYP_TARGET_DEPENDENCIES :=
14
15GYP_GENERATED_OUTPUTS :=
16
17# Make sure our deps and generated files are built first.
18LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
19
20LOCAL_GENERATED_SOURCES :=
21
22GYP_COPIED_SOURCE_ORIGIN_DIRS :=
23
24LOCAL_SRC_FILES := \
25	third_party/libwebp/utils/bit_reader.c \
26	third_party/libwebp/utils/bit_writer.c \
27	third_party/libwebp/utils/color_cache.c \
28	third_party/libwebp/utils/filters.c \
29	third_party/libwebp/utils/huffman.c \
30	third_party/libwebp/utils/huffman_encode.c \
31	third_party/libwebp/utils/quant_levels.c \
32	third_party/libwebp/utils/quant_levels_dec.c \
33	third_party/libwebp/utils/rescaler.c \
34	third_party/libwebp/utils/thread.c \
35	third_party/libwebp/utils/utils.c
36
37
38# Flags passed to both C and C++ files.
39MY_CFLAGS := \
40	--param=ssp-buffer-size=4 \
41	-fno-exceptions \
42	-fno-strict-aliasing \
43	-Wno-unused-parameter \
44	-Wno-missing-field-initializers \
45	-fvisibility=hidden \
46	-pipe \
47	-fPIC \
48	-Wno-format \
49	-m32 \
50	-mmmx \
51	-march=pentium4 \
52	-msse2 \
53	-mfpmath=sse \
54	-fuse-ld=gold \
55	-ffunction-sections \
56	-funwind-tables \
57	-g \
58	-fno-short-enums \
59	-finline-limit=64 \
60	-Wa,--noexecstack \
61	-U_FORTIFY_SOURCE \
62	-Wno-extra \
63	-Wno-ignored-qualifiers \
64	-Wno-type-limits \
65	-Wno-address \
66	-Wno-format-security \
67	-Wno-return-type \
68	-Wno-sequence-point \
69	-fno-stack-protector \
70	-Os \
71	-g \
72	-fomit-frame-pointer \
73	-fdata-sections \
74	-ffunction-sections
75
76MY_CFLAGS_C :=
77
78MY_DEFS := \
79	'-D_FILE_OFFSET_BITS=64' \
80	'-DUSE_LINUX_BREAKPAD' \
81	'-DNO_TCMALLOC' \
82	'-DDISABLE_NACL' \
83	'-DCHROMIUM_BUILD' \
84	'-DUSE_LIBJPEG_TURBO=1' \
85	'-DUSE_PROPRIETARY_CODECS' \
86	'-DENABLE_GPU=1' \
87	'-DUSE_OPENSSL=1' \
88	'-DENABLE_EGLIMAGE=1' \
89	'-DENABLE_LANGUAGE_DETECTION=1' \
90	'-DANDROID' \
91	'-D__GNU_SOURCE=1' \
92	'-DUSE_STLPORT=1' \
93	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
94	'-DCHROME_BUILD_ID=""' \
95	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
96	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
97	'-D_DEBUG'
98
99LOCAL_CFLAGS := $(MY_CFLAGS_C) $(MY_CFLAGS) $(MY_DEFS)
100
101# Include paths placed before CFLAGS/CPPFLAGS
102LOCAL_C_INCLUDES := \
103	$(LOCAL_PATH)/third_party/libwebp \
104	$(GYP_ABS_ANDROID_TOP_DIR)/frameworks/wilhelm/include \
105	$(GYP_ABS_ANDROID_TOP_DIR)/bionic \
106	$(GYP_ABS_ANDROID_TOP_DIR)/external/stlport/stlport
107
108LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES)
109
110# Flags passed to only C++ (and not C) files.
111LOCAL_CPPFLAGS := \
112	-fno-rtti \
113	-fno-threadsafe-statics \
114	-fvisibility-inlines-hidden \
115	-Wno-deprecated \
116	-Wno-error=c++0x-compat \
117	-Wno-non-virtual-dtor \
118	-Wno-sign-promo \
119	-Wno-non-virtual-dtor
120
121### Rules for final target.
122
123LOCAL_LDFLAGS := \
124	-Wl,-z,now \
125	-Wl,-z,relro \
126	-Wl,-z,noexecstack \
127	-fPIC \
128	-m32 \
129	-fuse-ld=gold \
130	-nostdlib \
131	-Wl,--no-undefined \
132	-Wl,--exclude-libs=ALL \
133	-Wl,--gc-sections \
134	-Wl,-O1 \
135	-Wl,--as-needed
136
137
138LOCAL_STATIC_LIBRARIES :=
139
140# Enable grouping to fix circular references
141LOCAL_GROUP_STATIC_LIBRARIES := true
142
143LOCAL_SHARED_LIBRARIES := \
144	libstlport \
145	libdl
146
147# Add target alias to "gyp_all_modules" target.
148.PHONY: gyp_all_modules
149gyp_all_modules: third_party_libwebp_libwebp_utils_gyp
150
151# Alias gyp target name.
152.PHONY: libwebp_utils
153libwebp_utils: third_party_libwebp_libwebp_utils_gyp
154
155include $(BUILD_STATIC_LIBRARY)
156