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_IS_HOST_MODULE := true 10 LOCAL_MULTILIB := $(GYP_HOST_MULTILIB) 11 gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_HOST_VAR_PREFIX)) 12 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 13 14 # Make sure our deps are built first. 15 GYP_TARGET_DEPENDENCIES := \ 16 $(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 17 18 GYP_GENERATED_OUTPUTS := 19 20 # Make sure our deps and generated files are built first. 21 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 22 23 LOCAL_GENERATED_SOURCES := 24 25 GYP_COPIED_SOURCE_ORIGIN_DIRS := 26 27 LOCAL_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. 40 MY_CFLAGS_Debug := \ 41 -fstack-protector \ 42 --param=ssp-buffer-size=4 \ 43 -pthread \ 44 -fno-strict-aliasing \ 45 -Wno-unused-parameter \ 46 -Wno-missing-field-initializers \ 47 -fvisibility=hidden \ 48 -pipe \ 49 -fPIC \ 50 -std=gnu99 \ 51 -Wno-format \ 52 -Wheader-hygiene \ 53 -Wno-char-subscripts \ 54 -Wno-unneeded-internal-declaration \ 55 -Wno-covered-switch-default \ 56 -Wstring-conversion \ 57 -Wno-c++11-narrowing \ 58 -Wno-deprecated-register \ 59 -Wno-unused-local-typedef \ 60 -Wno-switch \ 61 -Os \ 62 -g \ 63 -gdwarf-4 \ 64 -fdata-sections \ 65 -ffunction-sections \ 66 -fomit-frame-pointer \ 67 -funwind-tables 68 69 MY_DEFS_Debug := \ 70 '-DV8_DEPRECATION_WARNINGS' \ 71 '-D_FILE_OFFSET_BITS=64' \ 72 '-DNO_TCMALLOC' \ 73 '-DDISABLE_NACL' \ 74 '-DCHROMIUM_BUILD' \ 75 '-DUSE_LIBJPEG_TURBO=1' \ 76 '-DENABLE_WEBRTC=1' \ 77 '-DUSE_PROPRIETARY_CODECS' \ 78 '-DENABLE_BROWSER_CDMS' \ 79 '-DENABLE_CONFIGURATION_POLICY' \ 80 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 81 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 82 '-DENABLE_EGLIMAGE=1' \ 83 '-DCLD_VERSION=1' \ 84 '-DENABLE_PRINTING=1' \ 85 '-DENABLE_MANAGED_USERS=1' \ 86 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 87 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 88 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 89 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 90 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 91 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 92 '-DVIDEO_HOLE=1' \ 93 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 94 '-DUSE_OPENSSL=1' \ 95 '-DUSE_OPENSSL_CERTS=1' \ 96 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 97 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 98 '-D_DEBUG' 99 100 101 # Include paths placed before CFLAGS/CPPFLAGS 102 LOCAL_C_INCLUDES_Debug := \ 103 $(gyp_shared_intermediate_dir) \ 104 $(LOCAL_PATH)/third_party/yasm/source/config/android \ 105 $(LOCAL_PATH)/third_party/yasm/source/patched-yasm 106 107 108 # Flags passed to only C++ (and not C) files. 109 LOCAL_CPPFLAGS_Debug := \ 110 -fno-exceptions \ 111 -fno-rtti \ 112 -fno-threadsafe-statics \ 113 -fvisibility-inlines-hidden \ 114 -Wno-deprecated \ 115 -std=gnu++11 116 117 118 # Flags passed to both C and C++ files. 119 MY_CFLAGS_Release := \ 120 -fstack-protector \ 121 --param=ssp-buffer-size=4 \ 122 -pthread \ 123 -fno-strict-aliasing \ 124 -Wno-unused-parameter \ 125 -Wno-missing-field-initializers \ 126 -fvisibility=hidden \ 127 -pipe \ 128 -fPIC \ 129 -std=gnu99 \ 130 -Wno-format \ 131 -Wheader-hygiene \ 132 -Wno-char-subscripts \ 133 -Wno-unneeded-internal-declaration \ 134 -Wno-covered-switch-default \ 135 -Wstring-conversion \ 136 -Wno-c++11-narrowing \ 137 -Wno-deprecated-register \ 138 -Wno-unused-local-typedef \ 139 -Wno-switch \ 140 -Os \ 141 -fno-ident \ 142 -fdata-sections \ 143 -ffunction-sections \ 144 -fomit-frame-pointer \ 145 -funwind-tables 146 147 MY_DEFS_Release := \ 148 '-DV8_DEPRECATION_WARNINGS' \ 149 '-D_FILE_OFFSET_BITS=64' \ 150 '-DNO_TCMALLOC' \ 151 '-DDISABLE_NACL' \ 152 '-DCHROMIUM_BUILD' \ 153 '-DUSE_LIBJPEG_TURBO=1' \ 154 '-DENABLE_WEBRTC=1' \ 155 '-DUSE_PROPRIETARY_CODECS' \ 156 '-DENABLE_BROWSER_CDMS' \ 157 '-DENABLE_CONFIGURATION_POLICY' \ 158 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 159 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 160 '-DENABLE_EGLIMAGE=1' \ 161 '-DCLD_VERSION=1' \ 162 '-DENABLE_PRINTING=1' \ 163 '-DENABLE_MANAGED_USERS=1' \ 164 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 165 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 166 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 167 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 168 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 169 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 170 '-DVIDEO_HOLE=1' \ 171 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 172 '-DUSE_OPENSSL=1' \ 173 '-DUSE_OPENSSL_CERTS=1' \ 174 '-DNDEBUG' \ 175 '-DNVALGRIND' \ 176 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 177 178 179 # Include paths placed before CFLAGS/CPPFLAGS 180 LOCAL_C_INCLUDES_Release := \ 181 $(gyp_shared_intermediate_dir) \ 182 $(LOCAL_PATH)/third_party/yasm/source/config/android \ 183 $(LOCAL_PATH)/third_party/yasm/source/patched-yasm 184 185 186 # Flags passed to only C++ (and not C) files. 187 LOCAL_CPPFLAGS_Release := \ 188 -fno-exceptions \ 189 -fno-rtti \ 190 -fno-threadsafe-statics \ 191 -fvisibility-inlines-hidden \ 192 -Wno-deprecated \ 193 -std=gnu++11 194 195 196 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 197 # Undefine ANDROID for host modules 198 LOCAL_CFLAGS += -UANDROID 199 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 200 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 201 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 202 ### Rules for final target. 203 204 LOCAL_LDFLAGS_Debug := \ 205 -Wl,-z,now \ 206 -Wl,-z,relro \ 207 -pthread \ 208 -fPIC 209 210 211 LOCAL_LDFLAGS_Release := \ 212 -Wl,-z,now \ 213 -Wl,-z,relro \ 214 -pthread \ 215 -fPIC 216 217 218 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 219 ### Set directly by aosp_build_settings. 220 LOCAL_CLANG := true 221 222 # Add target alias to "gyp_all_modules" target. 223 .PHONY: gyp_all_modules 224 gyp_all_modules: third_party_yasm_re2c_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp 225 226 # Alias gyp target name. 227 .PHONY: re2c 228 re2c: third_party_yasm_re2c_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp 229 230 LOCAL_MODULE_PATH := $(gyp_shared_intermediate_dir) 231 include $(BUILD_HOST_EXECUTABLE) 232