15d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)# This file is generated by gyp; do not edit.
25d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
35d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)include $(CLEAR_VARS)
45d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
55d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)LOCAL_MODULE_CLASS := STATIC_LIBRARIES
65d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)LOCAL_MODULE := ui_accessibility_ax_gen_gyp
75d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)LOCAL_MODULE_SUFFIX := .a
8c5cede9ae108bb15f6b7a8aea21c7e1fefa2834cBen MurdochLOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH)
9c5cede9ae108bb15f6b7a8aea21c7e1fefa2834cBen Murdochgyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX))
10c5cede9ae108bb15f6b7a8aea21c7e1fefa2834cBen Murdochgyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX))
115d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
125d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)# Make sure our deps are built first.
135d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)GYP_TARGET_DEPENDENCIES :=
145d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
155d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
165d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)### Generated for rule "ui_accessibility_accessibility_gyp_ax_gen_target_genapi_idl":
171320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci# "{'inputs': ['../../tools/json_schema_compiler/cc_generator.py', '../../tools/json_schema_compiler/code.py', '../../tools/json_schema_compiler/compiler.py', '../../tools/json_schema_compiler/cpp_generator.py', '../../tools/json_schema_compiler/cpp_type_generator.py', '../../tools/json_schema_compiler/cpp_util.py', '../../tools/json_schema_compiler/h_generator.py', '../../tools/json_schema_compiler/idl_schema.py', '../../tools/json_schema_compiler/model.py', '../../tools/json_schema_compiler/util.cc', '../../tools/json_schema_compiler/util.h', '../../tools/json_schema_compiler/util_cc_helper.py'], 'process_outputs_as_sources': '1', 'extension': 'idl', 'msvs_external_rule': '1', 'outputs': ['$(gyp_shared_intermediate_dir)/ui/accessibility/%(INPUT_DIRNAME)s/%(INPUT_ROOT)s.cc', '$(gyp_shared_intermediate_dir)/ui/accessibility/%(INPUT_DIRNAME)s/%(INPUT_ROOT)s.h'], 'rule_name': 'genapi_idl', 'rule_sources': ['ax_enums.idl'], 'action': ['python', '../../tools/json_schema_compiler/compiler.py', '$(RULE_SOURCES)', '--root=../..', '--destdir=$(gyp_shared_intermediate_dir)', '--namespace=ui', '--generator=cpp', '--include-rules='], 'message': 'Generating C++ code from $(RULE_SOURCES) IDL files'}":
185d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)$(gyp_shared_intermediate_dir)/ui/accessibility/ax_enums.cc: gyp_local_path := $(LOCAL_PATH)
19010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)$(gyp_shared_intermediate_dir)/ui/accessibility/ax_enums.cc: gyp_var_prefix := $(GYP_VAR_PREFIX)
205d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)$(gyp_shared_intermediate_dir)/ui/accessibility/ax_enums.cc: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir))
215d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)$(gyp_shared_intermediate_dir)/ui/accessibility/ax_enums.cc: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir))
225d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)$(gyp_shared_intermediate_dir)/ui/accessibility/ax_enums.cc: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH))
235d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)$(gyp_shared_intermediate_dir)/ui/accessibility/ax_enums.cc: $(LOCAL_PATH)/ui/accessibility/ax_enums.idl $(LOCAL_PATH)/tools/json_schema_compiler/cc_generator.py $(LOCAL_PATH)/tools/json_schema_compiler/code.py $(LOCAL_PATH)/tools/json_schema_compiler/compiler.py $(LOCAL_PATH)/tools/json_schema_compiler/cpp_generator.py $(LOCAL_PATH)/tools/json_schema_compiler/cpp_type_generator.py $(LOCAL_PATH)/tools/json_schema_compiler/cpp_util.py $(LOCAL_PATH)/tools/json_schema_compiler/h_generator.py $(LOCAL_PATH)/tools/json_schema_compiler/idl_schema.py $(LOCAL_PATH)/tools/json_schema_compiler/model.py $(LOCAL_PATH)/tools/json_schema_compiler/util.cc $(LOCAL_PATH)/tools/json_schema_compiler/util.h $(LOCAL_PATH)/tools/json_schema_compiler/util_cc_helper.py $(GYP_TARGET_DEPENDENCIES)
241320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci	mkdir -p $(gyp_shared_intermediate_dir)/ui/accessibility; cd $(gyp_local_path)/ui/accessibility; python ../../tools/json_schema_compiler/compiler.py ax_enums.idl "--root=../.." "--destdir=$(gyp_shared_intermediate_dir)" "--namespace=ui" "--generator=cpp" "--include-rules="
255d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
265d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)$(gyp_shared_intermediate_dir)/ui/accessibility/ax_enums.h: $(gyp_shared_intermediate_dir)/ui/accessibility/ax_enums.cc ;
275d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
285d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
295d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)GYP_GENERATED_OUTPUTS := \
305d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	$(gyp_shared_intermediate_dir)/ui/accessibility/ax_enums.cc \
315d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	$(gyp_shared_intermediate_dir)/ui/accessibility/ax_enums.h
325d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
335d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)# Make sure our deps and generated files are built first.
345d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
355d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
365d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)LOCAL_CPP_EXTENSION := .cc
375d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)$(gyp_intermediate_dir)/ax_enums.cc: $(gyp_shared_intermediate_dir)/ui/accessibility/ax_enums.cc
385d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	mkdir -p $(@D); cp $< $@
395d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)LOCAL_GENERATED_SOURCES := \
405d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	$(gyp_intermediate_dir)/ax_enums.cc \
41c5cede9ae108bb15f6b7a8aea21c7e1fefa2834cBen Murdoch	$(gyp_shared_intermediate_dir)/ui/accessibility/ax_enums.h
425d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
435d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)GYP_COPIED_SOURCE_ORIGIN_DIRS := \
445d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	$(gyp_shared_intermediate_dir)/ui/accessibility
455d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
465d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)LOCAL_SRC_FILES :=
475d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
485d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
495d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)# Flags passed to both C and C++ files.
505d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)MY_CFLAGS_Debug := \
515d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	-fstack-protector \
525d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	--param=ssp-buffer-size=4 \
535d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	-Werror \
545d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	-fno-strict-aliasing \
555d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	-Wall \
565d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	-Wno-unused-parameter \
575d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	-Wno-missing-field-initializers \
585d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	-fvisibility=hidden \
595d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	-pipe \
605d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	-fPIC \
61cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-Wno-unused-local-typedefs \
625d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	-fno-tree-sra \
631320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci	-fno-caller-saves \
641320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci	-Wno-psabi \
65cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-fno-partial-inlining \
66cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-fno-early-inlining \
67cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-fno-tree-copy-prop \
68cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-fno-tree-loop-optimize \
69cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-fno-move-loop-invariants \
705d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	-ffunction-sections \
715d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	-funwind-tables \
725d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	-g \
735d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	-fstack-protector \
745d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	-fno-short-enums \
755d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	-finline-limit=64 \
765d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	-Wa,--noexecstack \
775d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	-U_FORTIFY_SOURCE \
785d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	-Wno-extra \
795d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	-Wno-ignored-qualifiers \
805d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	-Wno-type-limits \
815d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	-Wno-unused-but-set-variable \
825d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	-Os \
835d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	-g \
841320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci	-gdwarf-4 \
855d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	-fdata-sections \
865d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	-ffunction-sections \
87116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch	-fomit-frame-pointer \
885d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	-funwind-tables
895d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
905d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)MY_DEFS_Debug := \
915d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	'-DV8_DEPRECATION_WARNINGS' \
925d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	'-D_FILE_OFFSET_BITS=64' \
935d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	'-DNO_TCMALLOC' \
945d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	'-DDISABLE_NACL' \
955d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	'-DCHROMIUM_BUILD' \
965d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	'-DUSE_LIBJPEG_TURBO=1' \
97e5d81f57cb97b3b6b7fccc9c5610d21eb81db09dBen Murdoch	'-DENABLE_WEBRTC=1' \
985d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	'-DUSE_PROPRIETARY_CODECS' \
99f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)	'-DENABLE_BROWSER_CDMS' \
1005d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	'-DENABLE_CONFIGURATION_POLICY' \
1015d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
1025d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
1035d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	'-DENABLE_EGLIMAGE=1' \
1045d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	'-DCLD_VERSION=1' \
1055d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	'-DENABLE_PRINTING=1' \
1065d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	'-DENABLE_MANAGED_USERS=1' \
107cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
1081320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
1091320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
110cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
111cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
1126d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
1130de6073388f4e2780db8536178b129cd8f6ab386Torne (Richard Coles)	'-DVIDEO_HOLE=1' \
1141320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
115a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)	'-DUSE_OPENSSL=1' \
116effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch	'-DUSE_OPENSSL_CERTS=1' \
1175d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	'-D__STDC_CONSTANT_MACROS' \
1185d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	'-D__STDC_FORMAT_MACROS' \
1195d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	'-DANDROID' \
1205d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	'-D__GNU_SOURCE=1' \
1215d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	'-DUSE_STLPORT=1' \
1225d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
1235d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	'-DCHROME_BUILD_ID=""' \
1245d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
1255d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
1265d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	'-D_DEBUG'
1275d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
1285d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
1295d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)# Include paths placed before CFLAGS/CPPFLAGS
1305d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)LOCAL_C_INCLUDES_Debug := \
1315d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	$(gyp_shared_intermediate_dir) \
1325d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	$(LOCAL_PATH) \
1335d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	$(PWD)/frameworks/wilhelm/include \
1345d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	$(PWD)/bionic \
1355d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	$(PWD)/external/stlport/stlport
1365d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
1375d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
1385d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)# Flags passed to only C++ (and not C) files.
1395d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)LOCAL_CPPFLAGS_Debug := \
1401320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci	-fno-exceptions \
1415d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	-fno-rtti \
1425d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	-fno-threadsafe-statics \
1435d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	-fvisibility-inlines-hidden \
1445d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	-Wsign-compare \
1455d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	-Wno-abi \
146116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch	-std=gnu++11 \
147116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch	-Wno-narrowing \
148116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch	-Wno-literal-suffix \
1495d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	-Wno-non-virtual-dtor \
1505d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	-Wno-sign-promo
1515d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
1525d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
1535d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)# Flags passed to both C and C++ files.
1545d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)MY_CFLAGS_Release := \
1555d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	-fstack-protector \
1565d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	--param=ssp-buffer-size=4 \
1575d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	-Werror \
1585d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	-fno-strict-aliasing \
1595d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	-Wall \
1605d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	-Wno-unused-parameter \
1615d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	-Wno-missing-field-initializers \
1625d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	-fvisibility=hidden \
1635d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	-pipe \
1645d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	-fPIC \
165cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-Wno-unused-local-typedefs \
1665d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	-fno-tree-sra \
1671320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci	-fno-caller-saves \
1681320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci	-Wno-psabi \
169cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-fno-partial-inlining \
170cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-fno-early-inlining \
171cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-fno-tree-copy-prop \
172cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-fno-tree-loop-optimize \
173cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	-fno-move-loop-invariants \
1745d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	-ffunction-sections \
1755d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	-funwind-tables \
1765d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	-g \
1775d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	-fstack-protector \
1785d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	-fno-short-enums \
1795d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	-finline-limit=64 \
1805d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	-Wa,--noexecstack \
1815d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	-U_FORTIFY_SOURCE \
1825d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	-Wno-extra \
1835d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	-Wno-ignored-qualifiers \
1845d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	-Wno-type-limits \
1855d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	-Wno-unused-but-set-variable \
1865d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	-Os \
1875d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	-fno-ident \
1885d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	-fdata-sections \
1895d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	-ffunction-sections \
1905d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	-fomit-frame-pointer \
1915d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	-funwind-tables
1925d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
1935d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)MY_DEFS_Release := \
1945d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	'-DV8_DEPRECATION_WARNINGS' \
1955d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	'-D_FILE_OFFSET_BITS=64' \
1965d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	'-DNO_TCMALLOC' \
1975d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	'-DDISABLE_NACL' \
1985d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	'-DCHROMIUM_BUILD' \
1995d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	'-DUSE_LIBJPEG_TURBO=1' \
200e5d81f57cb97b3b6b7fccc9c5610d21eb81db09dBen Murdoch	'-DENABLE_WEBRTC=1' \
2015d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	'-DUSE_PROPRIETARY_CODECS' \
202f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)	'-DENABLE_BROWSER_CDMS' \
2035d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	'-DENABLE_CONFIGURATION_POLICY' \
2045d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
2055d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
2065d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	'-DENABLE_EGLIMAGE=1' \
2075d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	'-DCLD_VERSION=1' \
2085d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	'-DENABLE_PRINTING=1' \
2095d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	'-DENABLE_MANAGED_USERS=1' \
210cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
2111320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
2121320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
213cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
214cedac228d2dd51db4b79ea1e72c7f249408ee061Torne (Richard Coles)	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
2156d86b77056ed63eb6871182f42a9fd5f07550f90Torne (Richard Coles)	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
2160de6073388f4e2780db8536178b129cd8f6ab386Torne (Richard Coles)	'-DVIDEO_HOLE=1' \
2171320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
218a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)	'-DUSE_OPENSSL=1' \
219effb81e5f8246d0db0270817048dc992db66e9fbBen Murdoch	'-DUSE_OPENSSL_CERTS=1' \
2205d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	'-D__STDC_CONSTANT_MACROS' \
2215d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	'-D__STDC_FORMAT_MACROS' \
2225d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	'-DANDROID' \
2235d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	'-D__GNU_SOURCE=1' \
2245d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	'-DUSE_STLPORT=1' \
2255d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
2265d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	'-DCHROME_BUILD_ID=""' \
2275d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	'-DNDEBUG' \
2285d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	'-DNVALGRIND' \
2295d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
2305d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	'-D_FORTIFY_SOURCE=2'
2315d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
2325d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
2335d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)# Include paths placed before CFLAGS/CPPFLAGS
2345d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)LOCAL_C_INCLUDES_Release := \
2355d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	$(gyp_shared_intermediate_dir) \
2365d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	$(LOCAL_PATH) \
2375d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	$(PWD)/frameworks/wilhelm/include \
2385d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	$(PWD)/bionic \
2395d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	$(PWD)/external/stlport/stlport
2405d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
2415d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
2425d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)# Flags passed to only C++ (and not C) files.
2435d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)LOCAL_CPPFLAGS_Release := \
2441320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci	-fno-exceptions \
2455d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	-fno-rtti \
2465d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	-fno-threadsafe-statics \
2475d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	-fvisibility-inlines-hidden \
2485d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	-Wsign-compare \
2495d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	-Wno-abi \
250116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch	-std=gnu++11 \
251116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch	-Wno-narrowing \
252116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch	-Wno-literal-suffix \
2535d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	-Wno-non-virtual-dtor \
2545d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	-Wno-sign-promo
2555d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
2565d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
2575d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
2585d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
2595d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
260a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
2615d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)### Rules for final target.
2625d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
2635d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)LOCAL_SHARED_LIBRARIES := \
2645d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	libstlport \
2655d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)	libdl
2665d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
2675d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)# Add target alias to "gyp_all_modules" target.
2685d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles).PHONY: gyp_all_modules
2695d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)gyp_all_modules: ui_accessibility_ax_gen_gyp
2705d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
2715d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)# Alias gyp target name.
2725d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles).PHONY: ax_gen
2735d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)ax_gen: ui_accessibility_ax_gen_gyp
2745d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
2755d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)include $(BUILD_STATIC_LIBRARY)
276