re2c.host.darwin-x86.mk revision 7d4cd473f85ac64c3747c96c277f9e506a0d2246
1# This file is generated by gyp; do not edit.
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_CLASS := EXECUTABLES
6LOCAL_MODULE := third_party_yasm_re2c_host_gyp
7LOCAL_MODULE_STEM := re2c
8LOCAL_MODULE_SUFFIX := 
9LOCAL_MODULE_TAGS := optional
10LOCAL_IS_HOST_MODULE := true
11gyp_intermediate_dir := $(call local-intermediates-dir)
12gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared)
13
14# Make sure our deps are built first.
15GYP_TARGET_DEPENDENCIES := \
16	$(call intermediates-dir-for,GYP,third_party_yasm_config_sources_host_gyp,true)/config_sources.stamp
17
18GYP_GENERATED_OUTPUTS :=
19
20# Make sure our deps and generated files are built first.
21LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
22
23LOCAL_GENERATED_SOURCES :=
24
25GYP_COPIED_SOURCE_ORIGIN_DIRS :=
26
27LOCAL_SRC_FILES := \
28	third_party/yasm/source/patched-yasm/tools/re2c/main.c \
29	third_party/yasm/source/patched-yasm/tools/re2c/code.c \
30	third_party/yasm/source/patched-yasm/tools/re2c/dfa.c \
31	third_party/yasm/source/patched-yasm/tools/re2c/parser.c \
32	third_party/yasm/source/patched-yasm/tools/re2c/actions.c \
33	third_party/yasm/source/patched-yasm/tools/re2c/scanner.c \
34	third_party/yasm/source/patched-yasm/tools/re2c/mbo_getopt.c \
35	third_party/yasm/source/patched-yasm/tools/re2c/substr.c \
36	third_party/yasm/source/patched-yasm/tools/re2c/translate.c
37
38
39# Flags passed to both C and C++ files.
40MY_CFLAGS := \
41	-fstack-protector \
42	--param=ssp-buffer-size=4 \
43	-pthread \
44	-fno-exceptions \
45	-fno-strict-aliasing \
46	-Wno-unused-parameter \
47	-Wno-missing-field-initializers \
48	-fvisibility=hidden \
49	-pipe \
50	-fPIC \
51	-std=gnu99 \
52	-Wno-format \
53	-Os \
54	-g \
55	-fomit-frame-pointer \
56	-fdata-sections \
57	-ffunction-sections
58
59MY_CFLAGS_C :=
60
61MY_DEFS := \
62	'-DANGLE_DX11' \
63	'-D_FILE_OFFSET_BITS=64' \
64	'-DUSE_LINUX_BREAKPAD' \
65	'-DNO_TCMALLOC' \
66	'-DDISABLE_NACL' \
67	'-DCHROMIUM_BUILD' \
68	'-DUSE_LIBJPEG_TURBO=1' \
69	'-DUSE_PROPRIETARY_CODECS' \
70	'-DENABLE_GPU=1' \
71	'-DUSE_OPENSSL=1' \
72	'-DENABLE_EGLIMAGE=1' \
73	'-DENABLE_LANGUAGE_DETECTION=1' \
74	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
75	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
76	'-D_DEBUG'
77
78LOCAL_CFLAGS := $(MY_CFLAGS_C) $(MY_CFLAGS) $(MY_DEFS)
79# Undefine ANDROID for host modules
80LOCAL_CFLAGS += -UANDROID
81
82# Include paths placed before CFLAGS/CPPFLAGS
83LOCAL_C_INCLUDES := \
84	$(LOCAL_PATH)/third_party/yasm/source/config/android \
85	$(LOCAL_PATH)/third_party/yasm/source/patched-yasm
86
87LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES)
88
89# Flags passed to only C++ (and not C) files.
90LOCAL_CPPFLAGS := \
91	-fno-rtti \
92	-fno-threadsafe-statics \
93	-fvisibility-inlines-hidden \
94	-Wno-deprecated
95
96### Rules for final target.
97
98LOCAL_LDFLAGS := \
99	-pthread \
100	-fPIC
101
102
103LOCAL_STATIC_LIBRARIES :=
104
105# Enable grouping to fix circular references
106LOCAL_GROUP_STATIC_LIBRARIES := true
107
108LOCAL_SHARED_LIBRARIES :=
109
110# Add target alias to "gyp_all_modules" target.
111.PHONY: gyp_all_modules
112gyp_all_modules: third_party_yasm_re2c_host_gyp
113
114# Alias gyp target name.
115.PHONY: re2c
116re2c: third_party_yasm_re2c_host_gyp
117
118LOCAL_MODULE_PATH := $(gyp_shared_intermediate_dir)
119include $(BUILD_HOST_EXECUTABLE)
120