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)	--param=ssp-buffer-size=4 \
34cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-Werror \
35cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-fno-strict-aliasing \
36cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-Wall \
37cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-Wno-unused-parameter \
38cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-Wno-missing-field-initializers \
39cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-fvisibility=hidden \
40cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-pipe \
41cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-fPIC \
42cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-Wno-unused-local-typedefs \
43cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-ffunction-sections \
44cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-funwind-tables \
45cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-g \
46cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-fno-short-enums \
47cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-finline-limit=64 \
48cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-Wa,--noexecstack \
49cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-U_FORTIFY_SOURCE \
50cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-Wno-extra \
51cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-Wno-ignored-qualifiers \
52cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-Wno-type-limits \
53cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-Wno-unused-but-set-variable \
54cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-Os \
55cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-g \
561320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci	-gdwarf-4 \
57cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-fdata-sections \
58cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-ffunction-sections \
59cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-funwind-tables
60cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)
61cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)MY_DEFS_Debug := \
62cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DV8_DEPRECATION_WARNINGS' \
63cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-D_FILE_OFFSET_BITS=64' \
64cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DNO_TCMALLOC' \
65cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DDISABLE_NACL' \
66cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DCHROMIUM_BUILD' \
67cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DUSE_LIBJPEG_TURBO=1' \
68cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DENABLE_WEBRTC=1' \
69cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DUSE_PROPRIETARY_CODECS' \
70f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)	'-DENABLE_BROWSER_CDMS' \
71cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DENABLE_CONFIGURATION_POLICY' \
72cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
73cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
74cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DENABLE_EGLIMAGE=1' \
75cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DCLD_VERSION=1' \
76cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DENABLE_PRINTING=1' \
77cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DENABLE_MANAGED_USERS=1' \
78cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
791320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
801320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
81cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
82cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
836d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
84cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DVIDEO_HOLE=1' \
851320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
86cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DPREF_REGISTRY_IMPLEMENTATION' \
87cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DPOSIX_AVOID_MMAP' \
88cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DSK_ENABLE_INST_COUNT=0' \
89cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DSK_SUPPORT_GPU=1' \
90cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
91cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DSK_ENABLE_LEGACY_API_ALIASING=1' \
92cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
93cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DGR_GL_IGNORE_ES3_MSAA=0' \
94cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \
951320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci	'-DSK_SUPPORT_LEGACY_TEXTRENDERMODE' \
96cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DSK_BUILD_FOR_ANDROID' \
97cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DSK_USE_POSIX_THREADS' \
98cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \
99ab8f6f0bd665d3c1ff476eb06c58c42630e462d4Ben Murdoch	'-DSK_FM_NEW_MATCH_FAMILY_STYLE_CHARACTER=1' \
100cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DU_USING_ICU_NAMESPACE=0' \
1015f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)	'-DU_ENABLE_DYLOAD=0' \
102cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DUSE_OPENSSL=1' \
103cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DUSE_OPENSSL_CERTS=1' \
104cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-D__STDC_CONSTANT_MACROS' \
105cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-D__STDC_FORMAT_MACROS' \
106cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DANDROID' \
107cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-D__GNU_SOURCE=1' \
108cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DUSE_STLPORT=1' \
109cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
110cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DCHROME_BUILD_ID=""' \
111cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
112cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
113cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-D_DEBUG'
114cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)
115cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)
116cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)# Include paths placed before CFLAGS/CPPFLAGS
117cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)LOCAL_C_INCLUDES_Debug := \
118cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
119cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
120f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)	$(gyp_shared_intermediate_dir) \
121cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	$(LOCAL_PATH) \
122cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	$(LOCAL_PATH)/skia/config \
123cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	$(LOCAL_PATH)/third_party/skia/src/core \
124cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	$(LOCAL_PATH)/third_party/skia/include/core \
125cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	$(LOCAL_PATH)/third_party/skia/include/effects \
126cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	$(LOCAL_PATH)/third_party/skia/include/pdf \
127cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	$(LOCAL_PATH)/third_party/skia/include/gpu \
128cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	$(LOCAL_PATH)/third_party/skia/include/lazy \
129cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	$(LOCAL_PATH)/third_party/skia/include/pathops \
130cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	$(LOCAL_PATH)/third_party/skia/include/pipe \
131cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	$(LOCAL_PATH)/third_party/skia/include/ports \
132cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	$(LOCAL_PATH)/third_party/skia/include/utils \
133cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	$(LOCAL_PATH)/skia/ext \
1345f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)	$(PWD)/external/icu/icu4c/source/common \
1355f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)	$(PWD)/external/icu/icu4c/source/i18n \
136cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	$(PWD)/frameworks/wilhelm/include \
137cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	$(PWD)/bionic \
138cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	$(PWD)/external/stlport/stlport
139cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)
140cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)
141cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)# Flags passed to only C++ (and not C) files.
142cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)LOCAL_CPPFLAGS_Debug := \
1431320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci	-fno-exceptions \
144cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-fno-rtti \
145cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-fno-threadsafe-statics \
146cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-fvisibility-inlines-hidden \
147cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-Wsign-compare \
148116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch	-std=gnu++11 \
149116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch	-Wno-narrowing \
150116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch	-Wno-literal-suffix \
151cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-Wno-non-virtual-dtor \
152cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-Wno-sign-promo
153cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)
154cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)
155cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)# Flags passed to both C and C++ files.
156cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)MY_CFLAGS_Release := \
157cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	--param=ssp-buffer-size=4 \
158cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-Werror \
159cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-fno-strict-aliasing \
160cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-Wall \
161cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-Wno-unused-parameter \
162cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-Wno-missing-field-initializers \
163cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-fvisibility=hidden \
164cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-pipe \
165cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-fPIC \
166cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-Wno-unused-local-typedefs \
167cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-ffunction-sections \
168cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-funwind-tables \
169cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-g \
170cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-fno-short-enums \
171cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-finline-limit=64 \
172cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-Wa,--noexecstack \
173cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-U_FORTIFY_SOURCE \
174cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-Wno-extra \
175cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-Wno-ignored-qualifiers \
176cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-Wno-type-limits \
177cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-Wno-unused-but-set-variable \
178cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-Os \
179cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-fno-ident \
180cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-fdata-sections \
181cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-ffunction-sections \
182cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-funwind-tables
183cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)
184cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)MY_DEFS_Release := \
185cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DV8_DEPRECATION_WARNINGS' \
186cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-D_FILE_OFFSET_BITS=64' \
187cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DNO_TCMALLOC' \
188cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DDISABLE_NACL' \
189cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DCHROMIUM_BUILD' \
190cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DUSE_LIBJPEG_TURBO=1' \
191cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DENABLE_WEBRTC=1' \
192cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DUSE_PROPRIETARY_CODECS' \
193f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)	'-DENABLE_BROWSER_CDMS' \
194cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DENABLE_CONFIGURATION_POLICY' \
195cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
196cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
197cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DENABLE_EGLIMAGE=1' \
198cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DCLD_VERSION=1' \
199cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DENABLE_PRINTING=1' \
200cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DENABLE_MANAGED_USERS=1' \
201cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
2021320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
2031320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
204cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
205cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
2066d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
207cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DVIDEO_HOLE=1' \
2081320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
209cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DPREF_REGISTRY_IMPLEMENTATION' \
210cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DPOSIX_AVOID_MMAP' \
211cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DSK_ENABLE_INST_COUNT=0' \
212cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DSK_SUPPORT_GPU=1' \
213cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
214cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DSK_ENABLE_LEGACY_API_ALIASING=1' \
215cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
216cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DGR_GL_IGNORE_ES3_MSAA=0' \
217cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \
2181320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci	'-DSK_SUPPORT_LEGACY_TEXTRENDERMODE' \
219cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DSK_BUILD_FOR_ANDROID' \
220cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DSK_USE_POSIX_THREADS' \
221cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \
222ab8f6f0bd665d3c1ff476eb06c58c42630e462d4Ben Murdoch	'-DSK_FM_NEW_MATCH_FAMILY_STYLE_CHARACTER=1' \
223cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DU_USING_ICU_NAMESPACE=0' \
2245f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)	'-DU_ENABLE_DYLOAD=0' \
225cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DUSE_OPENSSL=1' \
226cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DUSE_OPENSSL_CERTS=1' \
227cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-D__STDC_CONSTANT_MACROS' \
228cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-D__STDC_FORMAT_MACROS' \
229cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DANDROID' \
230cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-D__GNU_SOURCE=1' \
231cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DUSE_STLPORT=1' \
232cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
233cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DCHROME_BUILD_ID=""' \
234cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DNDEBUG' \
235cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DNVALGRIND' \
236cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
237cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-D_FORTIFY_SOURCE=2'
238cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)
239cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)
240cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)# Include paths placed before CFLAGS/CPPFLAGS
241cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)LOCAL_C_INCLUDES_Release := \
242cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
243cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
244f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)	$(gyp_shared_intermediate_dir) \
245cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	$(LOCAL_PATH) \
246cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	$(LOCAL_PATH)/skia/config \
247cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	$(LOCAL_PATH)/third_party/skia/src/core \
248cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	$(LOCAL_PATH)/third_party/skia/include/core \
249cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	$(LOCAL_PATH)/third_party/skia/include/effects \
250cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	$(LOCAL_PATH)/third_party/skia/include/pdf \
251cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	$(LOCAL_PATH)/third_party/skia/include/gpu \
252cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	$(LOCAL_PATH)/third_party/skia/include/lazy \
253cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	$(LOCAL_PATH)/third_party/skia/include/pathops \
254cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	$(LOCAL_PATH)/third_party/skia/include/pipe \
255cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	$(LOCAL_PATH)/third_party/skia/include/ports \
256cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	$(LOCAL_PATH)/third_party/skia/include/utils \
257cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	$(LOCAL_PATH)/skia/ext \
2585f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)	$(PWD)/external/icu/icu4c/source/common \
2595f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)	$(PWD)/external/icu/icu4c/source/i18n \
260cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	$(PWD)/frameworks/wilhelm/include \
261cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	$(PWD)/bionic \
262cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	$(PWD)/external/stlport/stlport
263cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)
264cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)
265cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)# Flags passed to only C++ (and not C) files.
266cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)LOCAL_CPPFLAGS_Release := \
2671320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci	-fno-exceptions \
268cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-fno-rtti \
269cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-fno-threadsafe-statics \
270cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-fvisibility-inlines-hidden \
271cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-Wsign-compare \
272116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch	-std=gnu++11 \
273116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch	-Wno-narrowing \
274116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch	-Wno-literal-suffix \
275cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-Wno-non-virtual-dtor \
276cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-Wno-sign-promo
277cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)
278cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)
279cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
280cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
281cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
282cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
283cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)### Rules for final target.
284cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)
285cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)LOCAL_SHARED_LIBRARIES := \
286cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	libstlport \
287cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	libdl
288cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)
289cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)# Add target alias to "gyp_all_modules" target.
290cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles).PHONY: gyp_all_modules
291cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)gyp_all_modules: components_pref_registry_gyp
292cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)
293cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)# Alias gyp target name.
294cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles).PHONY: pref_registry
295cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)pref_registry: components_pref_registry_gyp
296cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)
297cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)include $(BUILD_STATIC_LIBRARY)
298