npapi.target.darwin-arm.mk revision 7d4cd473f85ac64c3747c96c277f9e506a0d2246
1# This file is generated by gyp; do not edit.
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_CLASS := GYP
6LOCAL_MODULE := third_party_npapi_npapi_gyp
7LOCAL_MODULE_STEM := npapi
8LOCAL_MODULE_SUFFIX := .stamp
9LOCAL_MODULE_TAGS := optional
10gyp_intermediate_dir := $(call local-intermediates-dir)
11gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared)
12
13# Make sure our deps are built first.
14GYP_TARGET_DEPENDENCIES :=
15
16GYP_GENERATED_OUTPUTS :=
17
18# Make sure our deps and generated files are built first.
19LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
20
21LOCAL_GENERATED_SOURCES :=
22
23GYP_COPIED_SOURCE_ORIGIN_DIRS :=
24
25LOCAL_SRC_FILES :=
26
27
28# Flags passed to both C and C++ files.
29MY_CFLAGS := \
30	-fstack-protector \
31	--param=ssp-buffer-size=4 \
32	-fno-exceptions \
33	-fno-strict-aliasing \
34	-Wno-unused-parameter \
35	-Wno-missing-field-initializers \
36	-fvisibility=hidden \
37	-pipe \
38	-fPIC \
39	-Wno-format \
40	-fno-tree-sra \
41	-fuse-ld=gold \
42	-Wno-psabi \
43	-ffunction-sections \
44	-funwind-tables \
45	-g \
46	-fstack-protector \
47	-fno-short-enums \
48	-finline-limit=64 \
49	-Wa,--noexecstack \
50	-U_FORTIFY_SOURCE \
51	-Wno-extra \
52	-Wno-ignored-qualifiers \
53	-Wno-type-limits \
54	-Wno-address \
55	-Wno-format-security \
56	-Wno-return-type \
57	-Wno-sequence-point \
58	-Os \
59	-g \
60	-fomit-frame-pointer \
61	-fdata-sections \
62	-ffunction-sections
63
64MY_CFLAGS_C :=
65
66MY_DEFS := \
67	'-DANGLE_DX11' \
68	'-D_FILE_OFFSET_BITS=64' \
69	'-DUSE_LINUX_BREAKPAD' \
70	'-DNO_TCMALLOC' \
71	'-DDISABLE_NACL' \
72	'-DCHROMIUM_BUILD' \
73	'-DUSE_LIBJPEG_TURBO=1' \
74	'-DUSE_PROPRIETARY_CODECS' \
75	'-DENABLE_GPU=1' \
76	'-DUSE_OPENSSL=1' \
77	'-DENABLE_EGLIMAGE=1' \
78	'-DENABLE_LANGUAGE_DETECTION=1' \
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	$(PWD)/frameworks/wilhelm/include \
93	$(PWD)/bionic \
94	$(PWD)/external/stlport/stlport
95
96LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES)
97
98# Flags passed to only C++ (and not C) files.
99LOCAL_CPPFLAGS := \
100	-fno-rtti \
101	-fno-threadsafe-statics \
102	-fvisibility-inlines-hidden \
103	-Wno-deprecated \
104	-Wno-abi \
105	-Wno-error=c++0x-compat \
106	-Wno-non-virtual-dtor \
107	-Wno-sign-promo \
108	-Wno-non-virtual-dtor
109
110### Rules for final target.
111# Add target alias to "gyp_all_modules" target.
112.PHONY: gyp_all_modules
113gyp_all_modules: third_party_npapi_npapi_gyp
114
115# Alias gyp target name.
116.PHONY: npapi
117npapi: third_party_npapi_npapi_gyp
118
119LOCAL_MODULE_PATH := $(PRODUCT_OUT)/gyp_stamp
120LOCAL_UNINSTALLABLE_MODULE := true
121
122include $(BUILD_SYSTEM)/base_rules.mk
123
124$(LOCAL_BUILT_MODULE): $(LOCAL_ADDITIONAL_DEPENDENCIES)
125	$(hide) echo "Gyp timestamp: $@"
126	$(hide) mkdir -p $(dir $@)
127	$(hide) touch $@
128