leveldatabase.target.linux-mips.mk revision e31802ad5b5d9fdf7daba665b671e9ecee368cb8
1# This file is generated by gyp; do not edit.
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_CLASS := STATIC_LIBRARIES
6LOCAL_MODULE := third_party_leveldatabase_leveldatabase_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_CPP_EXTENSION := .cc
21LOCAL_GENERATED_SOURCES :=
22
23GYP_COPIED_SOURCE_ORIGIN_DIRS :=
24
25LOCAL_SRC_FILES := \
26	third_party/leveldatabase/env_chromium.cc \
27	third_party/leveldatabase/port/port_chromium.cc \
28	third_party/leveldatabase/src/db/builder.cc \
29	third_party/leveldatabase/src/db/db_impl.cc \
30	third_party/leveldatabase/src/db/db_iter.cc \
31	third_party/leveldatabase/src/db/filename.cc \
32	third_party/leveldatabase/src/db/dbformat.cc \
33	third_party/leveldatabase/src/db/log_reader.cc \
34	third_party/leveldatabase/src/db/log_writer.cc \
35	third_party/leveldatabase/src/db/memtable.cc \
36	third_party/leveldatabase/src/db/repair.cc \
37	third_party/leveldatabase/src/db/table_cache.cc \
38	third_party/leveldatabase/src/db/version_edit.cc \
39	third_party/leveldatabase/src/db/version_set.cc \
40	third_party/leveldatabase/src/db/write_batch.cc \
41	third_party/leveldatabase/src/helpers/memenv/memenv.cc \
42	third_party/leveldatabase/src/table/block.cc \
43	third_party/leveldatabase/src/table/block_builder.cc \
44	third_party/leveldatabase/src/table/filter_block.cc \
45	third_party/leveldatabase/src/table/format.cc \
46	third_party/leveldatabase/src/table/iterator.cc \
47	third_party/leveldatabase/src/table/merger.cc \
48	third_party/leveldatabase/src/table/table.cc \
49	third_party/leveldatabase/src/table/table_builder.cc \
50	third_party/leveldatabase/src/table/two_level_iterator.cc \
51	third_party/leveldatabase/src/util/arena.cc \
52	third_party/leveldatabase/src/util/bloom.cc \
53	third_party/leveldatabase/src/util/cache.cc \
54	third_party/leveldatabase/src/util/coding.cc \
55	third_party/leveldatabase/src/util/comparator.cc \
56	third_party/leveldatabase/src/util/crc32c.cc \
57	third_party/leveldatabase/src/util/env.cc \
58	third_party/leveldatabase/src/util/filter_policy.cc \
59	third_party/leveldatabase/src/util/hash.cc \
60	third_party/leveldatabase/src/util/logging.cc \
61	third_party/leveldatabase/src/util/options.cc \
62	third_party/leveldatabase/src/util/status.cc
63
64
65# Flags passed to both C and C++ files.
66MY_CFLAGS := \
67	-fstack-protector \
68	--param=ssp-buffer-size=4 \
69	 \
70	-fno-exceptions \
71	-fno-strict-aliasing \
72	-Wno-unused-parameter \
73	-Wno-missing-field-initializers \
74	-fvisibility=hidden \
75	-pipe \
76	-fPIC \
77	-Wno-format \
78	-EL \
79	-mhard-float \
80	--sysroot=/usr/local/google2/src/clank/webview/external/chromium_org/mipsel-sysroot/sysroot \
81	-ffunction-sections \
82	-funwind-tables \
83	-g \
84	-fstack-protector \
85	-fno-short-enums \
86	-finline-limit=64 \
87	-Wa,--noexecstack \
88	-U_FORTIFY_SOURCE \
89	-Wno-extra \
90	-Wno-ignored-qualifiers \
91	-Wno-type-limits \
92	-Wno-address \
93	-Wno-format-security \
94	-Wno-return-type \
95	-Wno-sequence-point \
96	-Os \
97	-g \
98	-fomit-frame-pointer \
99	-fdata-sections \
100	-ffunction-sections
101
102MY_CFLAGS_C :=
103
104MY_DEFS := \
105	'-DLEVELDB_PLATFORM_CHROMIUM=1' \
106	'-DANGLE_DX11' \
107	'-D_FILE_OFFSET_BITS=64' \
108	'-DNO_TCMALLOC' \
109	'-DDISABLE_NACL' \
110	'-DCHROMIUM_BUILD' \
111	'-DUSE_LIBJPEG_TURBO=1' \
112	'-DUSE_PROPRIETARY_CODECS' \
113	'-DENABLE_GPU=1' \
114	'-DUSE_OPENSSL=1' \
115	'-DENABLE_EGLIMAGE=1' \
116	'-DENABLE_LANGUAGE_DETECTION=1' \
117	'-DANDROID' \
118	'-D__GNU_SOURCE=1' \
119	'-DUSE_STLPORT=1' \
120	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
121	'-DCHROME_BUILD_ID=""' \
122	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
123	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
124	'-D_DEBUG'
125
126LOCAL_CFLAGS := $(MY_CFLAGS_C) $(MY_CFLAGS) $(MY_DEFS)
127
128# Include paths placed before CFLAGS/CPPFLAGS
129LOCAL_C_INCLUDES := \
130	$(LOCAL_PATH)/third_party/leveldatabase \
131	$(LOCAL_PATH)/third_party/leveldatabase/src \
132	$(LOCAL_PATH)/third_party/leveldatabase/src/include \
133	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
134	$(LOCAL_PATH) \
135	$(LOCAL_PATH)/third_party/re2 \
136	$(PWD)/frameworks/wilhelm/include \
137	$(PWD)/bionic \
138	$(PWD)/external/stlport/stlport
139
140LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES)
141
142# Flags passed to only C++ (and not C) files.
143LOCAL_CPPFLAGS := \
144	-fno-rtti \
145	-fno-threadsafe-statics \
146	-fvisibility-inlines-hidden \
147	-Wno-deprecated \
148	-Wno-uninitialized \
149	-Wno-error=c++0x-compat \
150	-Wno-non-virtual-dtor \
151	-Wno-sign-promo \
152	-Wno-non-virtual-dtor
153
154### Rules for final target.
155
156LOCAL_LDFLAGS := \
157	-Wl,-z,now \
158	-Wl,-z,relro \
159	-Wl,-z,noexecstack \
160	-fPIC \
161	-EL \
162	-Wl,--no-keep-memory \
163	--sysroot=/usr/local/google2/src/clank/webview/external/chromium_org/mipsel-sysroot/sysroot \
164	 \
165	-nostdlib \
166	-Wl,--no-undefined \
167	-Wl,--exclude-libs=ALL \
168	-Wl,--gc-sections \
169	-Wl,-O1 \
170	-Wl,--as-needed
171
172
173LOCAL_STATIC_LIBRARIES :=
174
175# Enable grouping to fix circular references
176LOCAL_GROUP_STATIC_LIBRARIES := true
177
178LOCAL_SHARED_LIBRARIES := \
179	libstlport \
180	libdl
181
182# Add target alias to "gyp_all_modules" target.
183.PHONY: gyp_all_modules
184gyp_all_modules: third_party_leveldatabase_leveldatabase_gyp
185
186# Alias gyp target name.
187.PHONY: leveldatabase
188leveldatabase: third_party_leveldatabase_leveldatabase_gyp
189
190include $(BUILD_STATIC_LIBRARY)
191