1 # This file is generated by gyp; do not edit. 2 3 include $(CLEAR_VARS) 4 5 LOCAL_MODULE_CLASS := EXECUTABLES 6 LOCAL_MODULE := third_party_yasm_re2c_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp 7 LOCAL_MODULE_STEM := re2c 8 LOCAL_MODULE_SUFFIX := 9 LOCAL_MODULE_TAGS := optional 10 LOCAL_IS_HOST_MODULE := true 11 LOCAL_MULTILIB := $(GYP_HOST_MULTILIB) 12 gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_HOST_VAR_PREFIX)) 13 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 14 15 # Make sure our deps are built first. 16 GYP_TARGET_DEPENDENCIES := \ 17 $(call intermediates-dir-for,GYP,third_party_yasm_config_sources_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp,true,,$(GYP_HOST_VAR_PREFIX))/config_sources.stamp 18 19 GYP_GENERATED_OUTPUTS := 20 21 # Make sure our deps and generated files are built first. 22 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 23 24 LOCAL_GENERATED_SOURCES := 25 26 GYP_COPIED_SOURCE_ORIGIN_DIRS := 27 28 LOCAL_SRC_FILES := \ 29 third_party/yasm/source/patched-yasm/tools/re2c/main.c \ 30 third_party/yasm/source/patched-yasm/tools/re2c/code.c \ 31 third_party/yasm/source/patched-yasm/tools/re2c/dfa.c \ 32 third_party/yasm/source/patched-yasm/tools/re2c/parser.c \ 33 third_party/yasm/source/patched-yasm/tools/re2c/actions.c \ 34 third_party/yasm/source/patched-yasm/tools/re2c/scanner.c \ 35 third_party/yasm/source/patched-yasm/tools/re2c/mbo_getopt.c \ 36 third_party/yasm/source/patched-yasm/tools/re2c/substr.c \ 37 third_party/yasm/source/patched-yasm/tools/re2c/translate.c 38 39 40 # Flags passed to both C and C++ files. 41 MY_CFLAGS_Debug := \ 42 -fstack-protector \ 43 --param=ssp-buffer-size=4 \ 44 -pthread \ 45 -fno-exceptions \ 46 -fno-strict-aliasing \ 47 -Wno-unused-parameter \ 48 -Wno-missing-field-initializers \ 49 -fvisibility=hidden \ 50 -pipe \ 51 -fPIC \ 52 -std=gnu99 \ 53 -Wno-format \ 54 -Os \ 55 -g \ 56 -fdata-sections \ 57 -ffunction-sections \ 58 -fomit-frame-pointer \ 59 -funwind-tables 60 61 MY_DEFS_Debug := \ 62 '-DV8_DEPRECATION_WARNINGS' \ 63 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 64 '-D_FILE_OFFSET_BITS=64' \ 65 '-DNO_TCMALLOC' \ 66 '-DDISABLE_NACL' \ 67 '-DCHROMIUM_BUILD' \ 68 '-DUSE_LIBJPEG_TURBO=1' \ 69 '-DENABLE_WEBRTC=1' \ 70 '-DUSE_PROPRIETARY_CODECS' \ 71 '-DENABLE_BROWSER_CDMS' \ 72 '-DENABLE_CONFIGURATION_POLICY' \ 73 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 74 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 75 '-DENABLE_EGLIMAGE=1' \ 76 '-DCLD_VERSION=1' \ 77 '-DENABLE_PRINTING=1' \ 78 '-DENABLE_MANAGED_USERS=1' \ 79 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 80 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 81 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 82 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 83 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 84 '-DVIDEO_HOLE=1' \ 85 '-DUSE_OPENSSL=1' \ 86 '-DUSE_OPENSSL_CERTS=1' \ 87 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 88 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 89 '-D_DEBUG' 90 91 92 # Include paths placed before CFLAGS/CPPFLAGS 93 LOCAL_C_INCLUDES_Debug := \ 94 $(gyp_shared_intermediate_dir) \ 95 $(LOCAL_PATH)/third_party/yasm/source/config/android \ 96 $(LOCAL_PATH)/third_party/yasm/source/patched-yasm 97 98 99 # Flags passed to only C++ (and not C) files. 100 LOCAL_CPPFLAGS_Debug := \ 101 -fno-rtti \ 102 -fno-threadsafe-statics \ 103 -fvisibility-inlines-hidden \ 104 -Wno-deprecated 105 106 107 LOCAL_FDO_SUPPORT_Debug := false 108 109 # Flags passed to both C and C++ files. 110 MY_CFLAGS_Release := \ 111 -fstack-protector \ 112 --param=ssp-buffer-size=4 \ 113 -pthread \ 114 -fno-exceptions \ 115 -fno-strict-aliasing \ 116 -Wno-unused-parameter \ 117 -Wno-missing-field-initializers \ 118 -fvisibility=hidden \ 119 -pipe \ 120 -fPIC \ 121 -std=gnu99 \ 122 -Wno-format \ 123 -Os \ 124 -fno-ident \ 125 -fdata-sections \ 126 -ffunction-sections \ 127 -fomit-frame-pointer \ 128 -funwind-tables 129 130 MY_DEFS_Release := \ 131 '-DV8_DEPRECATION_WARNINGS' \ 132 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 133 '-D_FILE_OFFSET_BITS=64' \ 134 '-DNO_TCMALLOC' \ 135 '-DDISABLE_NACL' \ 136 '-DCHROMIUM_BUILD' \ 137 '-DUSE_LIBJPEG_TURBO=1' \ 138 '-DENABLE_WEBRTC=1' \ 139 '-DUSE_PROPRIETARY_CODECS' \ 140 '-DENABLE_BROWSER_CDMS' \ 141 '-DENABLE_CONFIGURATION_POLICY' \ 142 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 143 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 144 '-DENABLE_EGLIMAGE=1' \ 145 '-DCLD_VERSION=1' \ 146 '-DENABLE_PRINTING=1' \ 147 '-DENABLE_MANAGED_USERS=1' \ 148 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 149 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 150 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 151 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 152 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 153 '-DVIDEO_HOLE=1' \ 154 '-DUSE_OPENSSL=1' \ 155 '-DUSE_OPENSSL_CERTS=1' \ 156 '-DNDEBUG' \ 157 '-DNVALGRIND' \ 158 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 159 160 161 # Include paths placed before CFLAGS/CPPFLAGS 162 LOCAL_C_INCLUDES_Release := \ 163 $(gyp_shared_intermediate_dir) \ 164 $(LOCAL_PATH)/third_party/yasm/source/config/android \ 165 $(LOCAL_PATH)/third_party/yasm/source/patched-yasm 166 167 168 # Flags passed to only C++ (and not C) files. 169 LOCAL_CPPFLAGS_Release := \ 170 -fno-rtti \ 171 -fno-threadsafe-statics \ 172 -fvisibility-inlines-hidden \ 173 -Wno-deprecated 174 175 176 LOCAL_FDO_SUPPORT_Release := false 177 178 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 179 LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION)) 180 # Undefine ANDROID for host modules 181 LOCAL_CFLAGS += -UANDROID 182 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 183 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 184 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 185 ### Rules for final target. 186 187 LOCAL_LDFLAGS_Debug := \ 188 -pthread \ 189 -fPIC 190 191 192 LOCAL_LDFLAGS_Release := \ 193 -pthread \ 194 -fPIC 195 196 197 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 198 199 LOCAL_STATIC_LIBRARIES := 200 201 # Enable grouping to fix circular references 202 LOCAL_GROUP_STATIC_LIBRARIES := true 203 204 LOCAL_SHARED_LIBRARIES := 205 206 # Add target alias to "gyp_all_modules" target. 207 .PHONY: gyp_all_modules 208 gyp_all_modules: third_party_yasm_re2c_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp 209 210 # Alias gyp target name. 211 .PHONY: re2c 212 re2c: third_party_yasm_re2c_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp 213 214 LOCAL_MODULE_PATH := $(gyp_shared_intermediate_dir) 215 include $(BUILD_HOST_EXECUTABLE) 216