1# This file is generated by gyp; do not edit. 2 3include $(CLEAR_VARS) 4 5LOCAL_MODULE_CLASS := GYP 6LOCAL_MODULE := third_party_yasm_config_sources_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp 7LOCAL_MODULE_STEM := config_sources 8LOCAL_MODULE_SUFFIX := .stamp 9LOCAL_IS_HOST_MODULE := true 10LOCAL_MULTILIB := $(GYP_HOST_MULTILIB) 11gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_HOST_VAR_PREFIX)) 12gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 13 14# Make sure our deps are built first. 15GYP_TARGET_DEPENDENCIES := 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 28 29# Flags passed to both C and C++ files. 30MY_CFLAGS_Debug := \ 31 -fstack-protector \ 32 --param=ssp-buffer-size=4 \ 33 -pthread \ 34 -fno-strict-aliasing \ 35 -Wno-unused-parameter \ 36 -Wno-missing-field-initializers \ 37 -fvisibility=hidden \ 38 -pipe \ 39 -fPIC \ 40 -Wno-format \ 41 -Wheader-hygiene \ 42 -Wno-char-subscripts \ 43 -Wno-unneeded-internal-declaration \ 44 -Wno-covered-switch-default \ 45 -Wstring-conversion \ 46 -Wno-c++11-narrowing \ 47 -Wno-deprecated-register \ 48 -Wno-unused-local-typedef \ 49 -Os \ 50 -g \ 51 -gdwarf-4 \ 52 -fdata-sections \ 53 -ffunction-sections \ 54 -fomit-frame-pointer \ 55 -funwind-tables 56 57MY_DEFS_Debug := \ 58 '-DV8_DEPRECATION_WARNINGS' \ 59 '-D_FILE_OFFSET_BITS=64' \ 60 '-DNO_TCMALLOC' \ 61 '-DDISABLE_NACL' \ 62 '-DCHROMIUM_BUILD' \ 63 '-DUSE_LIBJPEG_TURBO=1' \ 64 '-DENABLE_WEBRTC=1' \ 65 '-DUSE_PROPRIETARY_CODECS' \ 66 '-DENABLE_BROWSER_CDMS' \ 67 '-DENABLE_CONFIGURATION_POLICY' \ 68 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 69 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 70 '-DENABLE_EGLIMAGE=1' \ 71 '-DCLD_VERSION=1' \ 72 '-DENABLE_PRINTING=1' \ 73 '-DENABLE_MANAGED_USERS=1' \ 74 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 75 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 76 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 77 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 78 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 79 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 80 '-DVIDEO_HOLE=1' \ 81 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 82 '-DUSE_OPENSSL=1' \ 83 '-DUSE_OPENSSL_CERTS=1' \ 84 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 85 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 86 '-D_DEBUG' 87 88 89# Include paths placed before CFLAGS/CPPFLAGS 90LOCAL_C_INCLUDES_Debug := \ 91 $(gyp_shared_intermediate_dir) 92 93 94# Flags passed to only C++ (and not C) files. 95LOCAL_CPPFLAGS_Debug := \ 96 -fno-exceptions \ 97 -fno-rtti \ 98 -fno-threadsafe-statics \ 99 -fvisibility-inlines-hidden \ 100 -Wno-deprecated \ 101 -std=gnu++11 102 103 104# Flags passed to both C and C++ files. 105MY_CFLAGS_Release := \ 106 -fstack-protector \ 107 --param=ssp-buffer-size=4 \ 108 -pthread \ 109 -fno-strict-aliasing \ 110 -Wno-unused-parameter \ 111 -Wno-missing-field-initializers \ 112 -fvisibility=hidden \ 113 -pipe \ 114 -fPIC \ 115 -Wno-format \ 116 -Wheader-hygiene \ 117 -Wno-char-subscripts \ 118 -Wno-unneeded-internal-declaration \ 119 -Wno-covered-switch-default \ 120 -Wstring-conversion \ 121 -Wno-c++11-narrowing \ 122 -Wno-deprecated-register \ 123 -Wno-unused-local-typedef \ 124 -Os \ 125 -fno-ident \ 126 -fdata-sections \ 127 -ffunction-sections \ 128 -fomit-frame-pointer \ 129 -funwind-tables 130 131MY_DEFS_Release := \ 132 '-DV8_DEPRECATION_WARNINGS' \ 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="https://proxy-dev.googlezip.net:443/"' \ 150 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 151 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 152 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 153 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 154 '-DVIDEO_HOLE=1' \ 155 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 156 '-DUSE_OPENSSL=1' \ 157 '-DUSE_OPENSSL_CERTS=1' \ 158 '-DNDEBUG' \ 159 '-DNVALGRIND' \ 160 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 161 162 163# Include paths placed before CFLAGS/CPPFLAGS 164LOCAL_C_INCLUDES_Release := \ 165 $(gyp_shared_intermediate_dir) 166 167 168# Flags passed to only C++ (and not C) files. 169LOCAL_CPPFLAGS_Release := \ 170 -fno-exceptions \ 171 -fno-rtti \ 172 -fno-threadsafe-statics \ 173 -fvisibility-inlines-hidden \ 174 -Wno-deprecated \ 175 -std=gnu++11 176 177 178LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 179# Undefine ANDROID for host modules 180LOCAL_CFLAGS += -UANDROID 181LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 182LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 183LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 184### Rules for final target. 185### Set directly by aosp_build_settings. 186LOCAL_CLANG := true 187 188# Add target alias to "gyp_all_modules" target. 189.PHONY: gyp_all_modules 190gyp_all_modules: third_party_yasm_config_sources_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp 191 192# Alias gyp target name. 193.PHONY: config_sources 194config_sources: third_party_yasm_config_sources_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp 195 196LOCAL_MODULE_PATH := $(PRODUCT_OUT)/gyp_stamp 197LOCAL_UNINSTALLABLE_MODULE := true 198LOCAL_2ND_ARCH_VAR_PREFIX := $(GYP_HOST_VAR_PREFIX) 199 200include $(BUILD_SYSTEM)/base_rules.mk 201 202$(LOCAL_BUILT_MODULE): $(LOCAL_ADDITIONAL_DEPENDENCIES) 203 $(hide) echo "Gyp timestamp: $@" 204 $(hide) mkdir -p $(dir $@) 205 $(hide) touch $@ 206 207LOCAL_2ND_ARCH_VAR_PREFIX := 208