• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# This file is generated by gyp; do not edit.
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_CLASS := STATIC_LIBRARIES
6LOCAL_MODULE := third_party_yasm_genperf_libs_host_gyp
7LOCAL_MODULE_SUFFIX := .a
8LOCAL_MODULE_TAGS := optional
9LOCAL_IS_HOST_MODULE := true
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	$(call intermediates-dir-for,GYP,third_party_yasm_config_sources_host_gyp,true)/config_sources.stamp
16
17GYP_GENERATED_OUTPUTS :=
18
19# Make sure our deps and generated files are built first.
20LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
21
22LOCAL_GENERATED_SOURCES :=
23
24GYP_COPIED_SOURCE_ORIGIN_DIRS :=
25
26LOCAL_SRC_FILES := \
27	third_party/yasm/source/patched-yasm/libyasm/phash.c \
28	third_party/yasm/source/patched-yasm/libyasm/xmalloc.c \
29	third_party/yasm/source/patched-yasm/libyasm/xstrdup.c
30
31
32# Flags passed to both C and C++ files.
33MY_CFLAGS_Debug := \
34	-fstack-protector \
35	--param=ssp-buffer-size=4 \
36	-pthread \
37	-fno-exceptions \
38	-fno-strict-aliasing \
39	-Wno-unused-parameter \
40	-Wno-missing-field-initializers \
41	-fvisibility=hidden \
42	-pipe \
43	-fPIC \
44	-std=gnu99 \
45	-ansi \
46	-pedantic \
47	-Wno-format \
48	-Os \
49	-g \
50	-fomit-frame-pointer \
51	-fdata-sections \
52	-ffunction-sections
53
54MY_DEFS_Debug := \
55	'-DV8_DEPRECATION_WARNINGS' \
56	'-D_FILE_OFFSET_BITS=64' \
57	'-DNO_TCMALLOC' \
58	'-DDISABLE_NACL' \
59	'-DCHROMIUM_BUILD' \
60	'-DUSE_LIBJPEG_TURBO=1' \
61	'-DUSE_PROPRIETARY_CODECS' \
62	'-DENABLE_CONFIGURATION_POLICY' \
63	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
64	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
65	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
66	'-DUSE_OPENSSL=1' \
67	'-DENABLE_EGLIMAGE=1' \
68	'-DCLD_VERSION=1' \
69	'-DENABLE_PRINTING=1' \
70	'-DENABLE_MANAGED_USERS=1' \
71	'-DHAVE_CONFIG_H' \
72	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
73	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
74	'-D_DEBUG'
75
76
77# Include paths placed before CFLAGS/CPPFLAGS
78LOCAL_C_INCLUDES_Debug := \
79	$(LOCAL_PATH)/third_party/yasm/source/config/android \
80	$(LOCAL_PATH)/third_party/yasm/source/patched-yasm
81
82
83# Flags passed to only C++ (and not C) files.
84LOCAL_CPPFLAGS_Debug := \
85	-fno-rtti \
86	-fno-threadsafe-statics \
87	-fvisibility-inlines-hidden \
88	-Wno-deprecated
89
90
91# Flags passed to both C and C++ files.
92MY_CFLAGS_Release := \
93	-fstack-protector \
94	--param=ssp-buffer-size=4 \
95	-pthread \
96	-fno-exceptions \
97	-fno-strict-aliasing \
98	-Wno-unused-parameter \
99	-Wno-missing-field-initializers \
100	-fvisibility=hidden \
101	-pipe \
102	-fPIC \
103	-std=gnu99 \
104	-ansi \
105	-pedantic \
106	-Wno-format \
107	-Os \
108	-fno-ident \
109	-fdata-sections \
110	-ffunction-sections \
111	-fomit-frame-pointer \
112	-fno-unwind-tables \
113	-fno-asynchronous-unwind-tables
114
115MY_DEFS_Release := \
116	'-DV8_DEPRECATION_WARNINGS' \
117	'-D_FILE_OFFSET_BITS=64' \
118	'-DNO_TCMALLOC' \
119	'-DDISABLE_NACL' \
120	'-DCHROMIUM_BUILD' \
121	'-DUSE_LIBJPEG_TURBO=1' \
122	'-DUSE_PROPRIETARY_CODECS' \
123	'-DENABLE_CONFIGURATION_POLICY' \
124	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
125	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
126	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
127	'-DUSE_OPENSSL=1' \
128	'-DENABLE_EGLIMAGE=1' \
129	'-DCLD_VERSION=1' \
130	'-DENABLE_PRINTING=1' \
131	'-DENABLE_MANAGED_USERS=1' \
132	'-DHAVE_CONFIG_H' \
133	'-DNDEBUG' \
134	'-DNVALGRIND' \
135	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
136
137
138# Include paths placed before CFLAGS/CPPFLAGS
139LOCAL_C_INCLUDES_Release := \
140	$(LOCAL_PATH)/third_party/yasm/source/config/android \
141	$(LOCAL_PATH)/third_party/yasm/source/patched-yasm
142
143
144# Flags passed to only C++ (and not C) files.
145LOCAL_CPPFLAGS_Release := \
146	-fno-rtti \
147	-fno-threadsafe-statics \
148	-fvisibility-inlines-hidden \
149	-Wno-deprecated
150
151
152LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
153# Undefine ANDROID for host modules
154LOCAL_CFLAGS += -UANDROID
155LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
156LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
157### Rules for final target.
158
159LOCAL_LDFLAGS_Debug := \
160	-Wl,-z,now \
161	-Wl,-z,relro \
162	-pthread \
163	-fPIC
164
165
166LOCAL_LDFLAGS_Release := \
167	-Wl,-z,now \
168	-Wl,-z,relro \
169	-pthread \
170	-fPIC
171
172
173LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
174
175LOCAL_STATIC_LIBRARIES :=
176
177# Enable grouping to fix circular references
178LOCAL_GROUP_STATIC_LIBRARIES := true
179
180LOCAL_SHARED_LIBRARIES :=
181
182# Add target alias to "gyp_all_modules" target.
183.PHONY: gyp_all_modules
184gyp_all_modules: third_party_yasm_genperf_libs_host_gyp
185
186# Alias gyp target name.
187.PHONY: genperf_libs
188genperf_libs: third_party_yasm_genperf_libs_host_gyp
189
190include $(BUILD_HOST_STATIC_LIBRARY)
191