1 # This file is generated by gyp; do not edit. 2 3 include $(CLEAR_VARS) 4 5 LOCAL_MODULE_CLASS := GYP 6 LOCAL_MODULE := third_party_yasm_generate_files_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp 7 LOCAL_MODULE_STEM := generate_files 8 LOCAL_MODULE_SUFFIX := .stamp 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 $(gyp_shared_intermediate_dir)/genperf \ 18 $(gyp_shared_intermediate_dir)/genversion 19 20 ### Rules for action "generate_x86_insn": 21 $(gyp_shared_intermediate_dir)/third_party/yasm/x86insns.c: gyp_local_path := $(LOCAL_PATH) 22 $(gyp_shared_intermediate_dir)/third_party/yasm/x86insns.c: gyp_var_prefix := $(GYP_VAR_PREFIX) 23 $(gyp_shared_intermediate_dir)/third_party/yasm/x86insns.c: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir)) 24 $(gyp_shared_intermediate_dir)/third_party/yasm/x86insns.c: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir)) 25 $(gyp_shared_intermediate_dir)/third_party/yasm/x86insns.c: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH)) 26 $(gyp_shared_intermediate_dir)/third_party/yasm/x86insns.c: $(LOCAL_PATH)/third_party/yasm/source/patched-yasm/modules/arch/x86/gen_x86_insn.py $(GYP_TARGET_DEPENDENCIES) 27 @echo "Gyp action: Running source/patched-yasm/modules/arch/x86/gen_x86_insn.py ($@)" 28 $(hide)cd $(gyp_local_path)/third_party/yasm; mkdir -p $(gyp_shared_intermediate_dir)/third_party/yasm; python source/patched-yasm/modules/arch/x86/gen_x86_insn.py "$(gyp_shared_intermediate_dir)/third_party/yasm" 29 30 $(gyp_shared_intermediate_dir)/third_party/yasm/x86insn_gas.gperf: $(gyp_shared_intermediate_dir)/third_party/yasm/x86insns.c ; 31 $(gyp_shared_intermediate_dir)/third_party/yasm/x86insn_nasm.gperf: $(gyp_shared_intermediate_dir)/third_party/yasm/x86insns.c ; 32 33 ### Rules for action "generate_version": 34 $(gyp_shared_intermediate_dir)/third_party/yasm/version.mac: gyp_local_path := $(LOCAL_PATH) 35 $(gyp_shared_intermediate_dir)/third_party/yasm/version.mac: gyp_var_prefix := $(GYP_VAR_PREFIX) 36 $(gyp_shared_intermediate_dir)/third_party/yasm/version.mac: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir)) 37 $(gyp_shared_intermediate_dir)/third_party/yasm/version.mac: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir)) 38 $(gyp_shared_intermediate_dir)/third_party/yasm/version.mac: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH)) 39 $(gyp_shared_intermediate_dir)/third_party/yasm/version.mac: $(gyp_shared_intermediate_dir)/genversion $(GYP_TARGET_DEPENDENCIES) 40 @echo "Gyp action: Generating yasm version file: $(gyp_shared_intermediate_dir)/third_party/yasm/version.mac ($@)" 41 $(hide)cd $(gyp_local_path)/third_party/yasm; mkdir -p $(gyp_shared_intermediate_dir)/third_party/yasm; "$(gyp_shared_intermediate_dir)/genversion" "$(gyp_shared_intermediate_dir)/third_party/yasm/version.mac" 42 43 44 45 46 ### Generated for rule "third_party_yasm_yasm_gyp_generate_files_host_generate_gperf": 47 # "{'inputs': ['$(gyp_shared_intermediate_dir)/genperf'], 'extension': 'gperf', 'process_outputs_as_sources': '0', 'outputs': ['$(gyp_shared_intermediate_dir)/third_party/yasm/%(INPUT_ROOT)s.c'], 'rule_name': 'generate_gperf', 'rule_sources': ['source/patched-yasm/modules/arch/x86/x86cpu.gperf', 'source/patched-yasm/modules/arch/x86/x86regtmod.gperf'], 'action': ['$(gyp_shared_intermediate_dir)/genperf', '$(RULE_SOURCES)', '$(gyp_shared_intermediate_dir)/third_party/yasm/%(INPUT_ROOT)s.c'], 'message': 'yasm genperf for $(RULE_SOURCES)'}": 48 $(gyp_shared_intermediate_dir)/third_party/yasm/x86cpu.c: gyp_local_path := $(LOCAL_PATH) 49 $(gyp_shared_intermediate_dir)/third_party/yasm/x86cpu.c: gyp_var_prefix := $(GYP_VAR_PREFIX) 50 $(gyp_shared_intermediate_dir)/third_party/yasm/x86cpu.c: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir)) 51 $(gyp_shared_intermediate_dir)/third_party/yasm/x86cpu.c: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir)) 52 $(gyp_shared_intermediate_dir)/third_party/yasm/x86cpu.c: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH)) 53 $(gyp_shared_intermediate_dir)/third_party/yasm/x86cpu.c: $(LOCAL_PATH)/third_party/yasm/source/patched-yasm/modules/arch/x86/x86cpu.gperf $(gyp_shared_intermediate_dir)/genperf $(GYP_TARGET_DEPENDENCIES) 54 mkdir -p $(gyp_shared_intermediate_dir)/third_party/yasm; cd $(gyp_local_path)/third_party/yasm; "$(gyp_shared_intermediate_dir)/genperf" source/patched-yasm/modules/arch/x86/x86cpu.gperf "$(gyp_shared_intermediate_dir)/third_party/yasm/x86cpu.c" 55 56 57 $(gyp_shared_intermediate_dir)/third_party/yasm/x86regtmod.c: gyp_local_path := $(LOCAL_PATH) 58 $(gyp_shared_intermediate_dir)/third_party/yasm/x86regtmod.c: gyp_var_prefix := $(GYP_VAR_PREFIX) 59 $(gyp_shared_intermediate_dir)/third_party/yasm/x86regtmod.c: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir)) 60 $(gyp_shared_intermediate_dir)/third_party/yasm/x86regtmod.c: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir)) 61 $(gyp_shared_intermediate_dir)/third_party/yasm/x86regtmod.c: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH)) 62 $(gyp_shared_intermediate_dir)/third_party/yasm/x86regtmod.c: $(LOCAL_PATH)/third_party/yasm/source/patched-yasm/modules/arch/x86/x86regtmod.gperf $(gyp_shared_intermediate_dir)/genperf $(GYP_TARGET_DEPENDENCIES) 63 mkdir -p $(gyp_shared_intermediate_dir)/third_party/yasm; cd $(gyp_local_path)/third_party/yasm; "$(gyp_shared_intermediate_dir)/genperf" source/patched-yasm/modules/arch/x86/x86regtmod.gperf "$(gyp_shared_intermediate_dir)/third_party/yasm/x86regtmod.c" 64 65 66 67 GYP_GENERATED_OUTPUTS := \ 68 $(gyp_shared_intermediate_dir)/third_party/yasm/x86insns.c \ 69 $(gyp_shared_intermediate_dir)/third_party/yasm/x86insn_gas.gperf \ 70 $(gyp_shared_intermediate_dir)/third_party/yasm/x86insn_nasm.gperf \ 71 $(gyp_shared_intermediate_dir)/third_party/yasm/version.mac \ 72 $(gyp_shared_intermediate_dir)/third_party/yasm/x86cpu.c \ 73 $(gyp_shared_intermediate_dir)/third_party/yasm/x86regtmod.c 74 75 # Make sure our deps and generated files are built first. 76 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 77 78 LOCAL_GENERATED_SOURCES := 79 80 GYP_COPIED_SOURCE_ORIGIN_DIRS := 81 82 LOCAL_SRC_FILES := 83 84 85 # Flags passed to both C and C++ files. 86 MY_CFLAGS_Debug := \ 87 -fstack-protector \ 88 --param=ssp-buffer-size=4 \ 89 -pthread \ 90 -fno-exceptions \ 91 -fno-strict-aliasing \ 92 -Wno-unused-parameter \ 93 -Wno-missing-field-initializers \ 94 -fvisibility=hidden \ 95 -pipe \ 96 -fPIC \ 97 -Wno-unused-local-typedefs \ 98 -Wno-format \ 99 -Os \ 100 -g \ 101 -fdata-sections \ 102 -ffunction-sections \ 103 -fomit-frame-pointer \ 104 -funwind-tables 105 106 MY_DEFS_Debug := \ 107 '-DV8_DEPRECATION_WARNINGS' \ 108 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 109 '-D_FILE_OFFSET_BITS=64' \ 110 '-DNO_TCMALLOC' \ 111 '-DDISABLE_NACL' \ 112 '-DCHROMIUM_BUILD' \ 113 '-DUSE_LIBJPEG_TURBO=1' \ 114 '-DENABLE_WEBRTC=1' \ 115 '-DUSE_PROPRIETARY_CODECS' \ 116 '-DENABLE_BROWSER_CDMS' \ 117 '-DENABLE_CONFIGURATION_POLICY' \ 118 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 119 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 120 '-DENABLE_EGLIMAGE=1' \ 121 '-DCLD_VERSION=1' \ 122 '-DENABLE_PRINTING=1' \ 123 '-DENABLE_MANAGED_USERS=1' \ 124 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 125 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 126 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 127 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 128 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 129 '-DVIDEO_HOLE=1' \ 130 '-DUSE_OPENSSL=1' \ 131 '-DUSE_OPENSSL_CERTS=1' \ 132 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 133 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 134 '-D_DEBUG' 135 136 137 # Include paths placed before CFLAGS/CPPFLAGS 138 LOCAL_C_INCLUDES_Debug := \ 139 $(gyp_shared_intermediate_dir) 140 141 142 # Flags passed to only C++ (and not C) files. 143 LOCAL_CPPFLAGS_Debug := \ 144 -fno-rtti \ 145 -fno-threadsafe-statics \ 146 -fvisibility-inlines-hidden \ 147 -Wno-deprecated 148 149 150 LOCAL_FDO_SUPPORT_Debug := false 151 152 # Flags passed to both C and C++ files. 153 MY_CFLAGS_Release := \ 154 -fstack-protector \ 155 --param=ssp-buffer-size=4 \ 156 -pthread \ 157 -fno-exceptions \ 158 -fno-strict-aliasing \ 159 -Wno-unused-parameter \ 160 -Wno-missing-field-initializers \ 161 -fvisibility=hidden \ 162 -pipe \ 163 -fPIC \ 164 -Wno-unused-local-typedefs \ 165 -Wno-format \ 166 -Os \ 167 -fno-ident \ 168 -fdata-sections \ 169 -ffunction-sections \ 170 -fomit-frame-pointer \ 171 -funwind-tables 172 173 MY_DEFS_Release := \ 174 '-DV8_DEPRECATION_WARNINGS' \ 175 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 176 '-D_FILE_OFFSET_BITS=64' \ 177 '-DNO_TCMALLOC' \ 178 '-DDISABLE_NACL' \ 179 '-DCHROMIUM_BUILD' \ 180 '-DUSE_LIBJPEG_TURBO=1' \ 181 '-DENABLE_WEBRTC=1' \ 182 '-DUSE_PROPRIETARY_CODECS' \ 183 '-DENABLE_BROWSER_CDMS' \ 184 '-DENABLE_CONFIGURATION_POLICY' \ 185 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 186 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 187 '-DENABLE_EGLIMAGE=1' \ 188 '-DCLD_VERSION=1' \ 189 '-DENABLE_PRINTING=1' \ 190 '-DENABLE_MANAGED_USERS=1' \ 191 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 192 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 193 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 194 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 195 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 196 '-DVIDEO_HOLE=1' \ 197 '-DUSE_OPENSSL=1' \ 198 '-DUSE_OPENSSL_CERTS=1' \ 199 '-DNDEBUG' \ 200 '-DNVALGRIND' \ 201 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 202 203 204 # Include paths placed before CFLAGS/CPPFLAGS 205 LOCAL_C_INCLUDES_Release := \ 206 $(gyp_shared_intermediate_dir) 207 208 209 # Flags passed to only C++ (and not C) files. 210 LOCAL_CPPFLAGS_Release := \ 211 -fno-rtti \ 212 -fno-threadsafe-statics \ 213 -fvisibility-inlines-hidden \ 214 -Wno-deprecated 215 216 217 LOCAL_FDO_SUPPORT_Release := false 218 219 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 220 LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION)) 221 # Undefine ANDROID for host modules 222 LOCAL_CFLAGS += -UANDROID 223 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 224 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 225 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 226 ### Rules for final target. 227 # Add target alias to "gyp_all_modules" target. 228 .PHONY: gyp_all_modules 229 gyp_all_modules: third_party_yasm_generate_files_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp 230 231 # Alias gyp target name. 232 .PHONY: generate_files 233 generate_files: third_party_yasm_generate_files_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp 234 235 LOCAL_MODULE_PATH := $(PRODUCT_OUT)/gyp_stamp 236 LOCAL_UNINSTALLABLE_MODULE := true 237 LOCAL_2ND_ARCH_VAR_PREFIX := $(GYP_HOST_VAR_PREFIX) 238 239 include $(BUILD_SYSTEM)/base_rules.mk 240 241 $(LOCAL_BUILT_MODULE): $(LOCAL_ADDITIONAL_DEPENDENCIES) 242 $(hide) echo "Gyp timestamp: $@" 243 $(hide) mkdir -p $(dir $@) 244 $(hide) touch $@ 245 246 LOCAL_2ND_ARCH_VAR_PREFIX := 247