visitedlink_common.target.linux-arm.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 := components_visitedlink_common_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	components/visitedlink/common/visitedlink_common.cc \
27	components/visitedlink/common/visitedlink_message_generator.cc
28
29
30# Flags passed to both C and C++ files.
31MY_CFLAGS := \
32	-fstack-protector \
33	--param=ssp-buffer-size=4 \
34	-Werror \
35	-fno-exceptions \
36	-fno-strict-aliasing \
37	-Wall \
38	-Wno-unused-parameter \
39	-Wno-missing-field-initializers \
40	-fvisibility=hidden \
41	-pipe \
42	-fPIC \
43	-fno-tree-sra \
44	-fuse-ld=gold \
45	-Wno-psabi \
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	-Os \
58	-g \
59	-fomit-frame-pointer \
60	-fdata-sections \
61	-ffunction-sections
62
63MY_CFLAGS_C :=
64
65MY_DEFS := \
66	'-D_FILE_OFFSET_BITS=64' \
67	'-DUSE_LINUX_BREAKPAD' \
68	'-DNO_TCMALLOC' \
69	'-DDISABLE_NACL' \
70	'-DCHROMIUM_BUILD' \
71	'-DUSE_LIBJPEG_TURBO=1' \
72	'-DUSE_PROPRIETARY_CODECS' \
73	'-DENABLE_GPU=1' \
74	'-DUSE_OPENSSL=1' \
75	'-DENABLE_EGLIMAGE=1' \
76	'-DENABLE_LANGUAGE_DETECTION=1' \
77	'-D__STDC_CONSTANT_MACROS' \
78	'-D__STDC_FORMAT_MACROS' \
79	'-DANDROID' \
80	'-D__GNU_SOURCE=1' \
81	'-DUSE_STLPORT=1' \
82	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
83	'-DCHROME_BUILD_ID=""' \
84	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
85	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
86	'-D_DEBUG'
87
88LOCAL_CFLAGS := $(MY_CFLAGS_C) $(MY_CFLAGS) $(MY_DEFS)
89
90# Include paths placed before CFLAGS/CPPFLAGS
91LOCAL_C_INCLUDES := \
92	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
93	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
94	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
95	$(LOCAL_PATH) \
96	$(LOCAL_PATH)/third_party/khronos \
97	$(LOCAL_PATH)/gpu \
98	$(GYP_ABS_ANDROID_TOP_DIR)/frameworks/wilhelm/include \
99	$(GYP_ABS_ANDROID_TOP_DIR)/bionic \
100	$(GYP_ABS_ANDROID_TOP_DIR)/external/stlport/stlport
101
102LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES)
103
104# Flags passed to only C++ (and not C) files.
105LOCAL_CPPFLAGS := \
106	-fno-rtti \
107	-fno-threadsafe-statics \
108	-fvisibility-inlines-hidden \
109	-Wsign-compare \
110	-Wno-abi \
111	-Wno-error=c++0x-compat \
112	-Wno-non-virtual-dtor \
113	-Wno-sign-promo
114
115### Rules for final target.
116
117LOCAL_LDFLAGS := \
118	-Wl,-z,now \
119	-Wl,-z,relro \
120	-Wl,-z,noexecstack \
121	-fPIC \
122	-Wl,-z,relro \
123	-Wl,-z,now \
124	-fuse-ld=gold \
125	-nostdlib \
126	-Wl,--no-undefined \
127	-Wl,--exclude-libs=ALL \
128	-Wl,--icf=safe \
129	-Wl,--gc-sections \
130	-Wl,-O1 \
131	-Wl,--as-needed
132
133
134LOCAL_STATIC_LIBRARIES :=
135
136# Enable grouping to fix circular references
137LOCAL_GROUP_STATIC_LIBRARIES := true
138
139LOCAL_SHARED_LIBRARIES := \
140	libstlport \
141	libdl
142
143# Add target alias to "gyp_all_modules" target.
144.PHONY: gyp_all_modules
145gyp_all_modules: components_visitedlink_common_gyp
146
147# Alias gyp target name.
148.PHONY: visitedlink_common
149visitedlink_common: components_visitedlink_common_gyp
150
151include $(BUILD_STATIC_LIBRARY)
152