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