1cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)# This file is generated by gyp; do not edit.
2cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)
3cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)include $(CLEAR_VARS)
4cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)
5cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)LOCAL_MODULE_CLASS := STATIC_LIBRARIES
6cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)LOCAL_MODULE := components_pref_registry_gyp
7cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)LOCAL_MODULE_SUFFIX := .a
8cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH)
9cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX))
10cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX))
11cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)
12cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)# Make sure our deps are built first.
13cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)GYP_TARGET_DEPENDENCIES := \
14cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	$(call intermediates-dir-for,STATIC_LIBRARIES,ui_base_ui_base_gyp,,,$(GYP_VAR_PREFIX))/ui_base_ui_base_gyp.a \
15cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	$(call intermediates-dir-for,STATIC_LIBRARIES,skia_skia_library_gyp,,,$(GYP_VAR_PREFIX))/skia_skia_library_gyp.a
16cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)
17cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)GYP_GENERATED_OUTPUTS :=
18cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)
19cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)# Make sure our deps and generated files are built first.
20cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
21cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)
22cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)LOCAL_CPP_EXTENSION := .cc
23cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)LOCAL_GENERATED_SOURCES :=
24cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)
25cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)GYP_COPIED_SOURCE_ORIGIN_DIRS :=
26cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)
27cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)LOCAL_SRC_FILES := \
28cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	components/pref_registry/pref_registry_syncable.cc
29cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)
30cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)
31cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)# Flags passed to both C and C++ files.
32cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)MY_CFLAGS_Debug := \
33cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-fstack-protector \
34cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	--param=ssp-buffer-size=4 \
35cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	 \
36cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-fno-strict-aliasing \
37cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-Wall \
38cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-Wno-unused-parameter \
39cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-Wno-missing-field-initializers \
40cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-fvisibility=hidden \
41cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-pipe \
42cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-fPIC \
43cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-Wno-unused-local-typedefs \
44cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-ffunction-sections \
45cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-funwind-tables \
46cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-g \
47cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-fstack-protector \
48cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-fno-short-enums \
49cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-finline-limit=64 \
50cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-Wa,--noexecstack \
51cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-U_FORTIFY_SOURCE \
52cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-Wno-extra \
53cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-Wno-ignored-qualifiers \
54cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-Wno-type-limits \
55cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-Wno-unused-but-set-variable \
56cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-Os \
57cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-g \
581320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci	-gdwarf-4 \
59cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-fdata-sections \
60cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-ffunction-sections \
61116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch	-fomit-frame-pointer \
62cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-funwind-tables
63cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)
64cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)MY_DEFS_Debug := \
65cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DV8_DEPRECATION_WARNINGS' \
66cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-D_FILE_OFFSET_BITS=64' \
67cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DNO_TCMALLOC' \
68cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DDISABLE_NACL' \
69cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DCHROMIUM_BUILD' \
70cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DUSE_LIBJPEG_TURBO=1' \
71cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DENABLE_WEBRTC=1' \
72cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DUSE_PROPRIETARY_CODECS' \
73f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)	'-DENABLE_BROWSER_CDMS' \
74cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DENABLE_CONFIGURATION_POLICY' \
75cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
76cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
77cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DENABLE_EGLIMAGE=1' \
78cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DCLD_VERSION=1' \
79cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DENABLE_PRINTING=1' \
80cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DENABLE_MANAGED_USERS=1' \
81cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
821320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
831320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
84cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
85cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
866d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
87cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DVIDEO_HOLE=1' \
881320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
89cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DPREF_REGISTRY_IMPLEMENTATION' \
90cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DPOSIX_AVOID_MMAP' \
91cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DSK_ENABLE_INST_COUNT=0' \
92cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DSK_SUPPORT_GPU=1' \
93cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
94cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DSK_ENABLE_LEGACY_API_ALIASING=1' \
95cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
96cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DGR_GL_IGNORE_ES3_MSAA=0' \
97cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \
981320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci	'-DSK_SUPPORT_LEGACY_TEXTRENDERMODE' \
99cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DSK_BUILD_FOR_ANDROID' \
100cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DSK_USE_POSIX_THREADS' \
101cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \
102ab8f6f0bd665d3c1ff476eb06c58c42630e462d4Ben Murdoch	'-DSK_FM_NEW_MATCH_FAMILY_STYLE_CHARACTER=1' \
103cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DU_USING_ICU_NAMESPACE=0' \
1045f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)	'-DU_ENABLE_DYLOAD=0' \
105cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DUSE_OPENSSL=1' \
106cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DUSE_OPENSSL_CERTS=1' \
107cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-D__STDC_CONSTANT_MACROS' \
108cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-D__STDC_FORMAT_MACROS' \
109cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DANDROID' \
110cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-D__GNU_SOURCE=1' \
111cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DUSE_STLPORT=1' \
112cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
113cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DCHROME_BUILD_ID=""' \
114cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
115cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
116cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-D_DEBUG'
117cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)
118cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)
119cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)# Include paths placed before CFLAGS/CPPFLAGS
120cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)LOCAL_C_INCLUDES_Debug := \
121cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
122cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
123f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)	$(gyp_shared_intermediate_dir) \
124cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	$(LOCAL_PATH) \
125cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	$(LOCAL_PATH)/skia/config \
126cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	$(LOCAL_PATH)/third_party/skia/src/core \
127cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	$(LOCAL_PATH)/third_party/skia/include/core \
128cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	$(LOCAL_PATH)/third_party/skia/include/effects \
129cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	$(LOCAL_PATH)/third_party/skia/include/pdf \
130cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	$(LOCAL_PATH)/third_party/skia/include/gpu \
131cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	$(LOCAL_PATH)/third_party/skia/include/lazy \
132cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	$(LOCAL_PATH)/third_party/skia/include/pathops \
133cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	$(LOCAL_PATH)/third_party/skia/include/pipe \
134cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	$(LOCAL_PATH)/third_party/skia/include/ports \
135cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	$(LOCAL_PATH)/third_party/skia/include/utils \
136cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	$(LOCAL_PATH)/skia/ext \
1375f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)	$(PWD)/external/icu/icu4c/source/common \
1385f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)	$(PWD)/external/icu/icu4c/source/i18n \
139cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	$(PWD)/frameworks/wilhelm/include \
140cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	$(PWD)/bionic \
141cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	$(PWD)/external/stlport/stlport
142cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)
143cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)
144cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)# Flags passed to only C++ (and not C) files.
145cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)LOCAL_CPPFLAGS_Debug := \
1461320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci	-fno-exceptions \
147cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-fno-rtti \
148cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-fno-threadsafe-statics \
149cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-fvisibility-inlines-hidden \
150cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-Wsign-compare \
151cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-Wno-uninitialized \
152116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch	-std=gnu++11 \
153116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch	-Wno-narrowing \
154116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch	-Wno-literal-suffix \
155cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-Wno-non-virtual-dtor \
156cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-Wno-sign-promo
157cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)
158cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)
159cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)# Flags passed to both C and C++ files.
160cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)MY_CFLAGS_Release := \
161cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-fstack-protector \
162cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	--param=ssp-buffer-size=4 \
163cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	 \
164cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-fno-strict-aliasing \
165cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-Wall \
166cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-Wno-unused-parameter \
167cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-Wno-missing-field-initializers \
168cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-fvisibility=hidden \
169cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-pipe \
170cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-fPIC \
171cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-Wno-unused-local-typedefs \
172cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-ffunction-sections \
173cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-funwind-tables \
174cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-g \
175cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-fstack-protector \
176cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-fno-short-enums \
177cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-finline-limit=64 \
178cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-Wa,--noexecstack \
179cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-U_FORTIFY_SOURCE \
180cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-Wno-extra \
181cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-Wno-ignored-qualifiers \
182cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-Wno-type-limits \
183cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-Wno-unused-but-set-variable \
184cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-Os \
185cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-fno-ident \
186cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-fdata-sections \
187cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-ffunction-sections \
188cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-fomit-frame-pointer \
189cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-funwind-tables
190cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)
191cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)MY_DEFS_Release := \
192cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DV8_DEPRECATION_WARNINGS' \
193cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-D_FILE_OFFSET_BITS=64' \
194cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DNO_TCMALLOC' \
195cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DDISABLE_NACL' \
196cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DCHROMIUM_BUILD' \
197cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DUSE_LIBJPEG_TURBO=1' \
198cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DENABLE_WEBRTC=1' \
199cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DUSE_PROPRIETARY_CODECS' \
200f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)	'-DENABLE_BROWSER_CDMS' \
201cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DENABLE_CONFIGURATION_POLICY' \
202cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
203cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
204cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DENABLE_EGLIMAGE=1' \
205cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DCLD_VERSION=1' \
206cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DENABLE_PRINTING=1' \
207cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DENABLE_MANAGED_USERS=1' \
208cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
2091320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
2101320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
211cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
212cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
2136d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
214cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DVIDEO_HOLE=1' \
2151320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
216cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DPREF_REGISTRY_IMPLEMENTATION' \
217cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DPOSIX_AVOID_MMAP' \
218cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DSK_ENABLE_INST_COUNT=0' \
219cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DSK_SUPPORT_GPU=1' \
220cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
221cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DSK_ENABLE_LEGACY_API_ALIASING=1' \
222cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
223cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DGR_GL_IGNORE_ES3_MSAA=0' \
224cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \
2251320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci	'-DSK_SUPPORT_LEGACY_TEXTRENDERMODE' \
226cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DSK_BUILD_FOR_ANDROID' \
227cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DSK_USE_POSIX_THREADS' \
228cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \
229ab8f6f0bd665d3c1ff476eb06c58c42630e462d4Ben Murdoch	'-DSK_FM_NEW_MATCH_FAMILY_STYLE_CHARACTER=1' \
230cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DU_USING_ICU_NAMESPACE=0' \
2315f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)	'-DU_ENABLE_DYLOAD=0' \
232cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DUSE_OPENSSL=1' \
233cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DUSE_OPENSSL_CERTS=1' \
234cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-D__STDC_CONSTANT_MACROS' \
235cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-D__STDC_FORMAT_MACROS' \
236cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DANDROID' \
237cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-D__GNU_SOURCE=1' \
238cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DUSE_STLPORT=1' \
239cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
240cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DCHROME_BUILD_ID=""' \
241cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DNDEBUG' \
242cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DNVALGRIND' \
243cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
244cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-D_FORTIFY_SOURCE=2'
245cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)
246cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)
247cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)# Include paths placed before CFLAGS/CPPFLAGS
248cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)LOCAL_C_INCLUDES_Release := \
249cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
250cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
251f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)	$(gyp_shared_intermediate_dir) \
252cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	$(LOCAL_PATH) \
253cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	$(LOCAL_PATH)/skia/config \
254cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	$(LOCAL_PATH)/third_party/skia/src/core \
255cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	$(LOCAL_PATH)/third_party/skia/include/core \
256cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	$(LOCAL_PATH)/third_party/skia/include/effects \
257cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	$(LOCAL_PATH)/third_party/skia/include/pdf \
258cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	$(LOCAL_PATH)/third_party/skia/include/gpu \
259cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	$(LOCAL_PATH)/third_party/skia/include/lazy \
260cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	$(LOCAL_PATH)/third_party/skia/include/pathops \
261cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	$(LOCAL_PATH)/third_party/skia/include/pipe \
262cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	$(LOCAL_PATH)/third_party/skia/include/ports \
263cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	$(LOCAL_PATH)/third_party/skia/include/utils \
264cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	$(LOCAL_PATH)/skia/ext \
2655f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)	$(PWD)/external/icu/icu4c/source/common \
2665f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)	$(PWD)/external/icu/icu4c/source/i18n \
267cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	$(PWD)/frameworks/wilhelm/include \
268cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	$(PWD)/bionic \
269cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	$(PWD)/external/stlport/stlport
270cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)
271cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)
272cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)# Flags passed to only C++ (and not C) files.
273cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)LOCAL_CPPFLAGS_Release := \
2741320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci	-fno-exceptions \
275cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-fno-rtti \
276cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-fno-threadsafe-statics \
277cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-fvisibility-inlines-hidden \
278cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-Wsign-compare \
279cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-Wno-uninitialized \
280116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch	-std=gnu++11 \
281116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch	-Wno-narrowing \
282116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch	-Wno-literal-suffix \
283cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-Wno-non-virtual-dtor \
284cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-Wno-sign-promo
285cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)
286cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)
287cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
288cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
289cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
290cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
291cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)### Rules for final target.
292cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)
293cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)LOCAL_SHARED_LIBRARIES := \
294cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	libstlport \
295cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	libdl
296cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)
297cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)# Add target alias to "gyp_all_modules" target.
298cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles).PHONY: gyp_all_modules
299cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)gyp_all_modules: components_pref_registry_gyp
300cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)
301cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)# Alias gyp target name.
302cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles).PHONY: pref_registry
303cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)pref_registry: components_pref_registry_gyp
304cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)
305cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)include $(BUILD_STATIC_LIBRARY)
306