libwebp_demux.target.linux-mips.mk revision 5e3f23d412006dc4db4e659864679f29341e113f
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_demux_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/demux/demux.c
26
27
28# Flags passed to both C and C++ files.
29MY_CFLAGS := \
30	-fstack-protector \
31	--param=ssp-buffer-size=4 \
32	 \
33	-fno-exceptions \
34	-fno-strict-aliasing \
35	-Wno-unused-parameter \
36	-Wno-missing-field-initializers \
37	-fvisibility=hidden \
38	-pipe \
39	-fPIC \
40	-Wno-format \
41	-EL \
42	-mhard-float \
43	-mips32r2 \
44	-Wa,-mips32r2 \
45	--sysroot=/automerger/android-src/external/chromium_org/mipsel-sysroot/sysroot \
46	-ffunction-sections \
47	-funwind-tables \
48	-g \
49	-fstack-protector \
50	-fno-short-enums \
51	-finline-limit=64 \
52	-Wa,--noexecstack \
53	-U_FORTIFY_SOURCE \
54	-Wno-extra \
55	-Wno-ignored-qualifiers \
56	-Wno-type-limits \
57	-Wno-address \
58	-Wno-format-security \
59	-Wno-return-type \
60	-Wno-sequence-point \
61	-Os \
62	-g \
63	-fomit-frame-pointer \
64	-fdata-sections \
65	-ffunction-sections
66
67MY_CFLAGS_C :=
68
69MY_DEFS := \
70	'-D_FILE_OFFSET_BITS=64' \
71	'-DNO_TCMALLOC' \
72	'-DDISABLE_NACL' \
73	'-DCHROMIUM_BUILD' \
74	'-DUSE_LIBJPEG_TURBO=1' \
75	'-DUSE_PROPRIETARY_CODECS' \
76	'-DENABLE_GPU=1' \
77	'-DUSE_OPENSSL=1' \
78	'-DENABLE_EGLIMAGE=1' \
79	'-DENABLE_LANGUAGE_DETECTION=1' \
80	'-DANDROID' \
81	'-D__GNU_SOURCE=1' \
82	'-DUSE_STLPORT=1' \
83	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
84	'-DCHROME_BUILD_ID=""' \
85	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
86	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
87	'-D_DEBUG'
88
89LOCAL_CFLAGS := $(MY_CFLAGS_C) $(MY_CFLAGS) $(MY_DEFS)
90
91# Include paths placed before CFLAGS/CPPFLAGS
92LOCAL_C_INCLUDES := \
93	$(LOCAL_PATH)/third_party/libwebp \
94	$(PWD)/frameworks/wilhelm/include \
95	$(PWD)/bionic \
96	$(PWD)/external/stlport/stlport
97
98LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES)
99
100# Flags passed to only C++ (and not C) files.
101LOCAL_CPPFLAGS := \
102	-fno-rtti \
103	-fno-threadsafe-statics \
104	-fvisibility-inlines-hidden \
105	-Wno-deprecated \
106	-Wno-uninitialized \
107	-Wno-error=c++0x-compat \
108	-Wno-non-virtual-dtor \
109	-Wno-sign-promo \
110	-Wno-non-virtual-dtor
111
112### Rules for final target.
113
114LOCAL_LDFLAGS := \
115	-Wl,-z,now \
116	-Wl,-z,relro \
117	-Wl,-z,noexecstack \
118	-fPIC \
119	-EL \
120	-Wl,--no-keep-memory \
121	--sysroot=/automerger/android-src/external/chromium_org/mipsel-sysroot/sysroot \
122	 \
123	-nostdlib \
124	-Wl,--no-undefined \
125	-Wl,--exclude-libs=ALL \
126	-Wl,--gc-sections \
127	-Wl,-O1 \
128	-Wl,--as-needed
129
130
131LOCAL_STATIC_LIBRARIES :=
132
133# Enable grouping to fix circular references
134LOCAL_GROUP_STATIC_LIBRARIES := true
135
136LOCAL_SHARED_LIBRARIES := \
137	libstlport \
138	libdl
139
140# Add target alias to "gyp_all_modules" target.
141.PHONY: gyp_all_modules
142gyp_all_modules: third_party_libwebp_libwebp_demux_gyp
143
144# Alias gyp target name.
145.PHONY: libwebp_demux
146libwebp_demux: third_party_libwebp_libwebp_demux_gyp
147
148include $(BUILD_STATIC_LIBRARY)
149