1# This file is generated by gyp; do not edit. 2 3include $(CLEAR_VARS) 4 5LOCAL_MODULE_CLASS := EXECUTABLES 6LOCAL_MODULE := third_party_yasm_yasm_host_gyp 7LOCAL_MODULE_STEM := yasm 8LOCAL_MODULE_SUFFIX := 9LOCAL_MODULE_TAGS := optional 10LOCAL_IS_HOST_MODULE := true 11gyp_intermediate_dir := $(call local-intermediates-dir) 12gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared) 13 14# Make sure our deps are built first. 15GYP_TARGET_DEPENDENCIES := \ 16 $(call intermediates-dir-for,GYP,third_party_yasm_config_sources_host_gyp,true)/config_sources.stamp \ 17 $(gyp_shared_intermediate_dir)/genmacro \ 18 $(gyp_shared_intermediate_dir)/genmodule \ 19 $(gyp_shared_intermediate_dir)/genperf \ 20 $(call intermediates-dir-for,STATIC_LIBRARIES,third_party_yasm_genperf_libs_host_gyp,true)/third_party_yasm_genperf_libs_host_gyp.a \ 21 $(call intermediates-dir-for,GYP,third_party_yasm_generate_files_host_gyp,true)/generate_files.stamp \ 22 $(gyp_shared_intermediate_dir)/genstring \ 23 $(gyp_shared_intermediate_dir)/re2c 24 25### Rules for action "generate_nasm_macros": 26$(gyp_intermediate_dir)/third_party/yasm/nasm-macros.c: gyp_local_path := $(LOCAL_PATH) 27$(gyp_intermediate_dir)/third_party/yasm/nasm-macros.c: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir)) 28$(gyp_intermediate_dir)/third_party/yasm/nasm-macros.c: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir)) 29$(gyp_intermediate_dir)/third_party/yasm/nasm-macros.c: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH)) 30$(gyp_intermediate_dir)/third_party/yasm/nasm-macros.c: $(gyp_shared_intermediate_dir)/genmacro $(LOCAL_PATH)/third_party/yasm/source/patched-yasm/modules/parsers/nasm/nasm-std.mac $(GYP_TARGET_DEPENDENCIES) 31 @echo "Gyp action: yasm genmacro for source/patched-yasm/modules/parsers/nasm/nasm-std.mac ($@)" 32 $(hide)cd $(gyp_local_path)/third_party/yasm; mkdir -p $(gyp_intermediate_dir)/third_party/yasm; "$(gyp_shared_intermediate_dir)/genmacro" "$(gyp_intermediate_dir)/third_party/yasm/nasm-macros.c" nasm_standard_mac source/patched-yasm/modules/parsers/nasm/nasm-std.mac 33 34 35### Rules for action "generate_nasm_version": 36$(gyp_intermediate_dir)/third_party/yasm/nasm-version.c: gyp_local_path := $(LOCAL_PATH) 37$(gyp_intermediate_dir)/third_party/yasm/nasm-version.c: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir)) 38$(gyp_intermediate_dir)/third_party/yasm/nasm-version.c: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir)) 39$(gyp_intermediate_dir)/third_party/yasm/nasm-version.c: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH)) 40$(gyp_intermediate_dir)/third_party/yasm/nasm-version.c: $(gyp_shared_intermediate_dir)/genmacro $(gyp_shared_intermediate_dir)/third_party/yasm/version.mac $(GYP_TARGET_DEPENDENCIES) 41 @echo "Gyp action: yasm genmacro for $(gyp_shared_intermediate_dir)/third_party/yasm/version.mac ($@)" 42 $(hide)cd $(gyp_local_path)/third_party/yasm; mkdir -p $(gyp_intermediate_dir)/third_party/yasm; "$(gyp_shared_intermediate_dir)/genmacro" "$(gyp_intermediate_dir)/third_party/yasm/nasm-version.c" nasm_version_mac "$(gyp_shared_intermediate_dir)/third_party/yasm/version.mac" 43 44 45### Rules for action "generate_win64_gas": 46$(gyp_intermediate_dir)/third_party/yasm/win64-gas.c: gyp_local_path := $(LOCAL_PATH) 47$(gyp_intermediate_dir)/third_party/yasm/win64-gas.c: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir)) 48$(gyp_intermediate_dir)/third_party/yasm/win64-gas.c: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir)) 49$(gyp_intermediate_dir)/third_party/yasm/win64-gas.c: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH)) 50$(gyp_intermediate_dir)/third_party/yasm/win64-gas.c: $(gyp_shared_intermediate_dir)/genmacro $(LOCAL_PATH)/third_party/yasm/source/patched-yasm/modules/objfmts/coff/win64-gas.mac $(GYP_TARGET_DEPENDENCIES) 51 @echo "Gyp action: yasm genmacro for source/patched-yasm/modules/objfmts/coff/win64-gas.mac ($@)" 52 $(hide)cd $(gyp_local_path)/third_party/yasm; mkdir -p $(gyp_intermediate_dir)/third_party/yasm; "$(gyp_shared_intermediate_dir)/genmacro" "$(gyp_intermediate_dir)/third_party/yasm/win64-gas.c" win64_gas_stdmac source/patched-yasm/modules/objfmts/coff/win64-gas.mac 53 54 55### Rules for action "generate_win64_nasm": 56$(gyp_intermediate_dir)/third_party/yasm/win64-nasm.c: gyp_local_path := $(LOCAL_PATH) 57$(gyp_intermediate_dir)/third_party/yasm/win64-nasm.c: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir)) 58$(gyp_intermediate_dir)/third_party/yasm/win64-nasm.c: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir)) 59$(gyp_intermediate_dir)/third_party/yasm/win64-nasm.c: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH)) 60$(gyp_intermediate_dir)/third_party/yasm/win64-nasm.c: $(gyp_shared_intermediate_dir)/genmacro $(LOCAL_PATH)/third_party/yasm/source/patched-yasm/modules/objfmts/coff/win64-nasm.mac $(GYP_TARGET_DEPENDENCIES) 61 @echo "Gyp action: yasm genmacro for source/patched-yasm/modules/objfmts/coff/win64-nasm.mac ($@)" 62 $(hide)cd $(gyp_local_path)/third_party/yasm; mkdir -p $(gyp_intermediate_dir)/third_party/yasm; "$(gyp_shared_intermediate_dir)/genmacro" "$(gyp_intermediate_dir)/third_party/yasm/win64-nasm.c" win64_nasm_stdmac source/patched-yasm/modules/objfmts/coff/win64-nasm.mac 63 64 65### Rules for action "generate_license": 66$(gyp_intermediate_dir)/third_party/yasm/license.c: gyp_local_path := $(LOCAL_PATH) 67$(gyp_intermediate_dir)/third_party/yasm/license.c: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir)) 68$(gyp_intermediate_dir)/third_party/yasm/license.c: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir)) 69$(gyp_intermediate_dir)/third_party/yasm/license.c: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH)) 70$(gyp_intermediate_dir)/third_party/yasm/license.c: $(gyp_shared_intermediate_dir)/genstring $(LOCAL_PATH)/third_party/yasm/source/patched-yasm/COPYING $(GYP_TARGET_DEPENDENCIES) 71 @echo "Gyp action: Generating yasm embeddable license ($@)" 72 $(hide)cd $(gyp_local_path)/third_party/yasm; mkdir -p $(gyp_intermediate_dir)/third_party/yasm; "$(gyp_shared_intermediate_dir)/genstring" license_msg "$(gyp_intermediate_dir)/third_party/yasm/license.c" source/patched-yasm/COPYING 73 74 75### Rules for action "generate_lc3b_token": 76$(gyp_intermediate_dir)/third_party/yasm/lc3bid.c: gyp_local_path := $(LOCAL_PATH) 77$(gyp_intermediate_dir)/third_party/yasm/lc3bid.c: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir)) 78$(gyp_intermediate_dir)/third_party/yasm/lc3bid.c: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir)) 79$(gyp_intermediate_dir)/third_party/yasm/lc3bid.c: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH)) 80$(gyp_intermediate_dir)/third_party/yasm/lc3bid.c: $(gyp_shared_intermediate_dir)/re2c $(LOCAL_PATH)/third_party/yasm/source/patched-yasm/modules/arch/lc3b/lc3bid.re $(GYP_TARGET_DEPENDENCIES) 81 @echo "Gyp action: Generating yasm tokens for lc3b ($@)" 82 $(hide)cd $(gyp_local_path)/third_party/yasm; mkdir -p $(gyp_intermediate_dir)/third_party/yasm; "$(gyp_shared_intermediate_dir)/re2c" -s -o "$(gyp_intermediate_dir)/third_party/yasm/lc3bid.c" source/patched-yasm/modules/arch/lc3b/lc3bid.re 83 84 85### Rules for action "generate_module": 86$(gyp_intermediate_dir)/third_party/yasm/module.c: gyp_local_path := $(LOCAL_PATH) 87$(gyp_intermediate_dir)/third_party/yasm/module.c: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir)) 88$(gyp_intermediate_dir)/third_party/yasm/module.c: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir)) 89$(gyp_intermediate_dir)/third_party/yasm/module.c: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH)) 90$(gyp_intermediate_dir)/third_party/yasm/module.c: $(gyp_shared_intermediate_dir)/genmodule $(LOCAL_PATH)/third_party/yasm/source/patched-yasm/libyasm/module.in $(LOCAL_PATH)/third_party/yasm/source/config/android/Makefile $(GYP_TARGET_DEPENDENCIES) 91 @echo "Gyp action: Generating yasm module information ($@)" 92 $(hide)cd $(gyp_local_path)/third_party/yasm; mkdir -p $(gyp_intermediate_dir)/third_party/yasm; "$(gyp_shared_intermediate_dir)/genmodule" source/patched-yasm/libyasm/module.in source/config/android/Makefile "$(gyp_intermediate_dir)/third_party/yasm/module.c" 93 94 95 96 97### Generated for rule "third_party_yasm_yasm_gyp_yasm_host_generate_gperf": 98# "{'inputs': ['$(gyp_shared_intermediate_dir)/genperf'], 'extension': 'gperf', 'process_outputs_as_sources': '0', 'outputs': ['$(gyp_intermediate_dir)/third_party/yasm/%(INPUT_ROOT)s.c'], 'rule_name': 'generate_gperf', 'rule_sources': ['$(gyp_shared_intermediate_dir)/third_party/yasm/x86insn_nasm.gperf', '$(gyp_shared_intermediate_dir)/third_party/yasm/x86insn_gas.gperf'], 'action': ['$(gyp_shared_intermediate_dir)/genperf', '$(RULE_SOURCES)', '$(gyp_intermediate_dir)/third_party/yasm/%(INPUT_ROOT)s.c'], 'message': 'yasm gperf for $(RULE_SOURCES)'}": 99$(gyp_intermediate_dir)/third_party/yasm/x86insn_nasm.c: gyp_local_path := $(LOCAL_PATH) 100$(gyp_intermediate_dir)/third_party/yasm/x86insn_nasm.c: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir)) 101$(gyp_intermediate_dir)/third_party/yasm/x86insn_nasm.c: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir)) 102$(gyp_intermediate_dir)/third_party/yasm/x86insn_nasm.c: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH)) 103$(gyp_intermediate_dir)/third_party/yasm/x86insn_nasm.c: $(gyp_shared_intermediate_dir)/third_party/yasm/x86insn_nasm.gperf $(gyp_shared_intermediate_dir)/genperf $(GYP_TARGET_DEPENDENCIES) 104 mkdir -p $(gyp_intermediate_dir)/third_party/yasm; cd $(gyp_local_path)/third_party/yasm; "$(gyp_shared_intermediate_dir)/genperf" "$(gyp_shared_intermediate_dir)/third_party/yasm/x86insn_nasm.gperf" "$(gyp_intermediate_dir)/third_party/yasm/x86insn_nasm.c" 105 106.PHONY: third_party_yasm_yasm_host_gyp_rule_trigger 107third_party_yasm_yasm_host_gyp_rule_trigger: $(gyp_intermediate_dir)/third_party/yasm/x86insn_nasm.c 108 109$(gyp_intermediate_dir)/third_party/yasm/x86insn_gas.c: gyp_local_path := $(LOCAL_PATH) 110$(gyp_intermediate_dir)/third_party/yasm/x86insn_gas.c: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir)) 111$(gyp_intermediate_dir)/third_party/yasm/x86insn_gas.c: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir)) 112$(gyp_intermediate_dir)/third_party/yasm/x86insn_gas.c: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH)) 113$(gyp_intermediate_dir)/third_party/yasm/x86insn_gas.c: $(gyp_shared_intermediate_dir)/third_party/yasm/x86insn_gas.gperf $(gyp_shared_intermediate_dir)/genperf $(GYP_TARGET_DEPENDENCIES) 114 mkdir -p $(gyp_intermediate_dir)/third_party/yasm; cd $(gyp_local_path)/third_party/yasm; "$(gyp_shared_intermediate_dir)/genperf" "$(gyp_shared_intermediate_dir)/third_party/yasm/x86insn_gas.gperf" "$(gyp_intermediate_dir)/third_party/yasm/x86insn_gas.c" 115 116.PHONY: third_party_yasm_yasm_host_gyp_rule_trigger 117third_party_yasm_yasm_host_gyp_rule_trigger: $(gyp_intermediate_dir)/third_party/yasm/x86insn_gas.c 118 119 120### Generated for rule "third_party_yasm_yasm_gyp_yasm_host_generate_re2c": 121# "{'inputs': ['$(gyp_shared_intermediate_dir)/re2c'], 'extension': 're', 'process_outputs_as_sources': '1', 'outputs': ['$(gyp_intermediate_dir)/third_party/yasm/%(INPUT_ROOT)s.c'], 'rule_name': 'generate_re2c', 'rule_sources': ['source/patched-yasm/modules/parsers/gas/gas-token.re', 'source/patched-yasm/modules/parsers/nasm/nasm-token.re'], 'action': ['$(gyp_shared_intermediate_dir)/re2c', '-b', '-o', '$(gyp_intermediate_dir)/third_party/yasm/%(INPUT_ROOT)s.c', '$(RULE_SOURCES)'], 'message': 'yasm re2c for $(RULE_SOURCES)'}": 122$(gyp_intermediate_dir)/third_party/yasm/gas-token.c: gyp_local_path := $(LOCAL_PATH) 123$(gyp_intermediate_dir)/third_party/yasm/gas-token.c: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir)) 124$(gyp_intermediate_dir)/third_party/yasm/gas-token.c: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir)) 125$(gyp_intermediate_dir)/third_party/yasm/gas-token.c: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH)) 126$(gyp_intermediate_dir)/third_party/yasm/gas-token.c: $(LOCAL_PATH)/third_party/yasm/source/patched-yasm/modules/parsers/gas/gas-token.re $(gyp_shared_intermediate_dir)/re2c $(GYP_TARGET_DEPENDENCIES) 127 mkdir -p $(gyp_intermediate_dir)/third_party/yasm; cd $(gyp_local_path)/third_party/yasm; "$(gyp_shared_intermediate_dir)/re2c" -b -o "$(gyp_intermediate_dir)/third_party/yasm/gas-token.c" source/patched-yasm/modules/parsers/gas/gas-token.re 128 129.PHONY: third_party_yasm_yasm_host_gyp_rule_trigger 130third_party_yasm_yasm_host_gyp_rule_trigger: $(gyp_intermediate_dir)/third_party/yasm/gas-token.c 131 132$(gyp_intermediate_dir)/third_party/yasm/nasm-token.c: gyp_local_path := $(LOCAL_PATH) 133$(gyp_intermediate_dir)/third_party/yasm/nasm-token.c: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir)) 134$(gyp_intermediate_dir)/third_party/yasm/nasm-token.c: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir)) 135$(gyp_intermediate_dir)/third_party/yasm/nasm-token.c: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH)) 136$(gyp_intermediate_dir)/third_party/yasm/nasm-token.c: $(LOCAL_PATH)/third_party/yasm/source/patched-yasm/modules/parsers/nasm/nasm-token.re $(gyp_shared_intermediate_dir)/re2c $(GYP_TARGET_DEPENDENCIES) 137 mkdir -p $(gyp_intermediate_dir)/third_party/yasm; cd $(gyp_local_path)/third_party/yasm; "$(gyp_shared_intermediate_dir)/re2c" -b -o "$(gyp_intermediate_dir)/third_party/yasm/nasm-token.c" source/patched-yasm/modules/parsers/nasm/nasm-token.re 138 139.PHONY: third_party_yasm_yasm_host_gyp_rule_trigger 140third_party_yasm_yasm_host_gyp_rule_trigger: $(gyp_intermediate_dir)/third_party/yasm/nasm-token.c 141 142### Finished generating for all rules 143 144GYP_GENERATED_OUTPUTS := \ 145 $(gyp_intermediate_dir)/third_party/yasm/nasm-macros.c \ 146 $(gyp_intermediate_dir)/third_party/yasm/nasm-version.c \ 147 $(gyp_intermediate_dir)/third_party/yasm/win64-gas.c \ 148 $(gyp_intermediate_dir)/third_party/yasm/win64-nasm.c \ 149 $(gyp_intermediate_dir)/third_party/yasm/license.c \ 150 $(gyp_intermediate_dir)/third_party/yasm/lc3bid.c \ 151 $(gyp_intermediate_dir)/third_party/yasm/module.c \ 152 $(gyp_intermediate_dir)/third_party/yasm/x86insn_nasm.c \ 153 $(gyp_intermediate_dir)/third_party/yasm/x86insn_gas.c \ 154 $(gyp_intermediate_dir)/third_party/yasm/gas-token.c \ 155 $(gyp_intermediate_dir)/third_party/yasm/nasm-token.c 156 157# Make sure our deps and generated files are built first. 158LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 159 160$(gyp_intermediate_dir)/x86cpu.c: $(gyp_shared_intermediate_dir)/third_party/yasm/x86cpu.c 161 mkdir -p $(@D); cp $< $@ 162$(gyp_intermediate_dir)/x86regtmod.c: $(gyp_shared_intermediate_dir)/third_party/yasm/x86regtmod.c 163 mkdir -p $(@D); cp $< $@ 164LOCAL_GENERATED_SOURCES := \ 165 $(gyp_intermediate_dir)/third_party/yasm/nasm-macros.c \ 166 $(gyp_intermediate_dir)/third_party/yasm/lc3bid.c \ 167 $(gyp_intermediate_dir)/third_party/yasm/module.c \ 168 $(gyp_intermediate_dir)/third_party/yasm/gas-token.c \ 169 $(gyp_intermediate_dir)/third_party/yasm/nasm-token.c \ 170 $(gyp_intermediate_dir)/x86cpu.c \ 171 $(gyp_intermediate_dir)/x86regtmod.c \ 172 third_party_yasm_yasm_host_gyp_rule_trigger 173 174GYP_COPIED_SOURCE_ORIGIN_DIRS := \ 175 $(gyp_shared_intermediate_dir)/third_party/yasm 176 177LOCAL_SRC_FILES := \ 178 third_party/yasm/source/patched-yasm/frontends/yasm/yasm-options.c \ 179 third_party/yasm/source/patched-yasm/frontends/yasm/yasm.c \ 180 third_party/yasm/source/patched-yasm/libyasm/assocdat.c \ 181 third_party/yasm/source/patched-yasm/libyasm/bc-align.c \ 182 third_party/yasm/source/patched-yasm/libyasm/bc-data.c \ 183 third_party/yasm/source/patched-yasm/libyasm/bc-incbin.c \ 184 third_party/yasm/source/patched-yasm/libyasm/bc-org.c \ 185 third_party/yasm/source/patched-yasm/libyasm/bc-reserve.c \ 186 third_party/yasm/source/patched-yasm/libyasm/bitvect.c \ 187 third_party/yasm/source/patched-yasm/libyasm/bytecode.c \ 188 third_party/yasm/source/patched-yasm/libyasm/errwarn.c \ 189 third_party/yasm/source/patched-yasm/libyasm/expr.c \ 190 third_party/yasm/source/patched-yasm/libyasm/file.c \ 191 third_party/yasm/source/patched-yasm/libyasm/floatnum.c \ 192 third_party/yasm/source/patched-yasm/libyasm/hamt.c \ 193 third_party/yasm/source/patched-yasm/libyasm/insn.c \ 194 third_party/yasm/source/patched-yasm/libyasm/intnum.c \ 195 third_party/yasm/source/patched-yasm/libyasm/inttree.c \ 196 third_party/yasm/source/patched-yasm/libyasm/linemap.c \ 197 third_party/yasm/source/patched-yasm/libyasm/md5.c \ 198 third_party/yasm/source/patched-yasm/libyasm/mergesort.c \ 199 third_party/yasm/source/patched-yasm/libyasm/section.c \ 200 third_party/yasm/source/patched-yasm/libyasm/strcasecmp.c \ 201 third_party/yasm/source/patched-yasm/libyasm/strsep.c \ 202 third_party/yasm/source/patched-yasm/libyasm/symrec.c \ 203 third_party/yasm/source/patched-yasm/libyasm/valparam.c \ 204 third_party/yasm/source/patched-yasm/libyasm/value.c \ 205 third_party/yasm/source/patched-yasm/modules/arch/lc3b/lc3barch.c \ 206 third_party/yasm/source/patched-yasm/modules/arch/lc3b/lc3bbc.c \ 207 third_party/yasm/source/patched-yasm/modules/arch/x86/x86arch.c \ 208 third_party/yasm/source/patched-yasm/modules/arch/x86/x86bc.c \ 209 third_party/yasm/source/patched-yasm/modules/arch/x86/x86expr.c \ 210 third_party/yasm/source/patched-yasm/modules/arch/x86/x86id.c \ 211 third_party/yasm/source/patched-yasm/modules/dbgfmts/codeview/cv-dbgfmt.c \ 212 third_party/yasm/source/patched-yasm/modules/dbgfmts/codeview/cv-symline.c \ 213 third_party/yasm/source/patched-yasm/modules/dbgfmts/codeview/cv-type.c \ 214 third_party/yasm/source/patched-yasm/modules/dbgfmts/dwarf2/dwarf2-aranges.c \ 215 third_party/yasm/source/patched-yasm/modules/dbgfmts/dwarf2/dwarf2-dbgfmt.c \ 216 third_party/yasm/source/patched-yasm/modules/dbgfmts/dwarf2/dwarf2-info.c \ 217 third_party/yasm/source/patched-yasm/modules/dbgfmts/dwarf2/dwarf2-line.c \ 218 third_party/yasm/source/patched-yasm/modules/dbgfmts/null/null-dbgfmt.c \ 219 third_party/yasm/source/patched-yasm/modules/dbgfmts/stabs/stabs-dbgfmt.c \ 220 third_party/yasm/source/patched-yasm/modules/listfmts/nasm/nasm-listfmt.c \ 221 third_party/yasm/source/patched-yasm/modules/objfmts/bin/bin-objfmt.c \ 222 third_party/yasm/source/patched-yasm/modules/objfmts/coff/coff-objfmt.c \ 223 third_party/yasm/source/patched-yasm/modules/objfmts/coff/win64-except.c \ 224 third_party/yasm/source/patched-yasm/modules/objfmts/dbg/dbg-objfmt.c \ 225 third_party/yasm/source/patched-yasm/modules/objfmts/elf/elf-objfmt.c \ 226 third_party/yasm/source/patched-yasm/modules/objfmts/elf/elf-x86-amd64.c \ 227 third_party/yasm/source/patched-yasm/modules/objfmts/elf/elf-x86-x86.c \ 228 third_party/yasm/source/patched-yasm/modules/objfmts/elf/elf.c \ 229 third_party/yasm/source/patched-yasm/modules/objfmts/macho/macho-objfmt.c \ 230 third_party/yasm/source/patched-yasm/modules/objfmts/rdf/rdf-objfmt.c \ 231 third_party/yasm/source/patched-yasm/modules/objfmts/xdf/xdf-objfmt.c \ 232 third_party/yasm/source/patched-yasm/modules/parsers/gas/gas-parse.c \ 233 third_party/yasm/source/patched-yasm/modules/parsers/gas/gas-parse-intel.c \ 234 third_party/yasm/source/patched-yasm/modules/parsers/gas/gas-parser.c \ 235 third_party/yasm/source/patched-yasm/modules/parsers/nasm/nasm-parse.c \ 236 third_party/yasm/source/patched-yasm/modules/parsers/nasm/nasm-parser.c \ 237 third_party/yasm/source/patched-yasm/modules/preprocs/cpp/cpp-preproc.c \ 238 third_party/yasm/source/patched-yasm/modules/preprocs/nasm/nasm-eval.c \ 239 third_party/yasm/source/patched-yasm/modules/preprocs/nasm/nasm-pp.c \ 240 third_party/yasm/source/patched-yasm/modules/preprocs/nasm/nasm-preproc.c \ 241 third_party/yasm/source/patched-yasm/modules/preprocs/nasm/nasmlib.c \ 242 third_party/yasm/source/patched-yasm/modules/preprocs/raw/raw-preproc.c 243 244 245# Flags passed to both C and C++ files. 246MY_CFLAGS_Debug := \ 247 -fstack-protector \ 248 --param=ssp-buffer-size=4 \ 249 -pthread \ 250 -fno-exceptions \ 251 -fno-strict-aliasing \ 252 -Wno-unused-parameter \ 253 -Wno-missing-field-initializers \ 254 -fvisibility=hidden \ 255 -pipe \ 256 -fPIC \ 257 -std=gnu99 \ 258 -ansi \ 259 -pedantic \ 260 -Wno-format \ 261 -Os \ 262 -g \ 263 -fomit-frame-pointer \ 264 -fdata-sections \ 265 -ffunction-sections 266 267MY_DEFS_Debug := \ 268 '-DV8_DEPRECATION_WARNINGS' \ 269 '-D_FILE_OFFSET_BITS=64' \ 270 '-DNO_TCMALLOC' \ 271 '-DDISABLE_NACL' \ 272 '-DCHROMIUM_BUILD' \ 273 '-DUSE_LIBJPEG_TURBO=1' \ 274 '-DUSE_PROPRIETARY_CODECS' \ 275 '-DENABLE_CONFIGURATION_POLICY' \ 276 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 277 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 278 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 279 '-DUSE_OPENSSL=1' \ 280 '-DENABLE_EGLIMAGE=1' \ 281 '-DCLD_VERSION=1' \ 282 '-DENABLE_PRINTING=1' \ 283 '-DENABLE_MANAGED_USERS=1' \ 284 '-DHAVE_CONFIG_H' \ 285 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 286 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 287 '-D_DEBUG' 288 289 290# Include paths placed before CFLAGS/CPPFLAGS 291LOCAL_C_INCLUDES_Debug := \ 292 $(LOCAL_PATH)/third_party/yasm/source/config/android \ 293 $(LOCAL_PATH)/third_party/yasm/source/patched-yasm \ 294 $(gyp_shared_intermediate_dir)/third_party/yasm \ 295 $(gyp_intermediate_dir)/third_party/yasm 296 297 298# Flags passed to only C++ (and not C) files. 299LOCAL_CPPFLAGS_Debug := \ 300 -fno-rtti \ 301 -fno-threadsafe-statics \ 302 -fvisibility-inlines-hidden \ 303 -Wno-deprecated 304 305 306# Flags passed to both C and C++ files. 307MY_CFLAGS_Release := \ 308 -fstack-protector \ 309 --param=ssp-buffer-size=4 \ 310 -pthread \ 311 -fno-exceptions \ 312 -fno-strict-aliasing \ 313 -Wno-unused-parameter \ 314 -Wno-missing-field-initializers \ 315 -fvisibility=hidden \ 316 -pipe \ 317 -fPIC \ 318 -std=gnu99 \ 319 -ansi \ 320 -pedantic \ 321 -Wno-format \ 322 -Os \ 323 -fno-ident \ 324 -fdata-sections \ 325 -ffunction-sections \ 326 -fomit-frame-pointer \ 327 -fno-unwind-tables \ 328 -fno-asynchronous-unwind-tables 329 330MY_DEFS_Release := \ 331 '-DV8_DEPRECATION_WARNINGS' \ 332 '-D_FILE_OFFSET_BITS=64' \ 333 '-DNO_TCMALLOC' \ 334 '-DDISABLE_NACL' \ 335 '-DCHROMIUM_BUILD' \ 336 '-DUSE_LIBJPEG_TURBO=1' \ 337 '-DUSE_PROPRIETARY_CODECS' \ 338 '-DENABLE_CONFIGURATION_POLICY' \ 339 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 340 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 341 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 342 '-DUSE_OPENSSL=1' \ 343 '-DENABLE_EGLIMAGE=1' \ 344 '-DCLD_VERSION=1' \ 345 '-DENABLE_PRINTING=1' \ 346 '-DENABLE_MANAGED_USERS=1' \ 347 '-DHAVE_CONFIG_H' \ 348 '-DNDEBUG' \ 349 '-DNVALGRIND' \ 350 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 351 352 353# Include paths placed before CFLAGS/CPPFLAGS 354LOCAL_C_INCLUDES_Release := \ 355 $(LOCAL_PATH)/third_party/yasm/source/config/android \ 356 $(LOCAL_PATH)/third_party/yasm/source/patched-yasm \ 357 $(gyp_shared_intermediate_dir)/third_party/yasm \ 358 $(gyp_intermediate_dir)/third_party/yasm 359 360 361# Flags passed to only C++ (and not C) files. 362LOCAL_CPPFLAGS_Release := \ 363 -fno-rtti \ 364 -fno-threadsafe-statics \ 365 -fvisibility-inlines-hidden \ 366 -Wno-deprecated 367 368 369LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 370# Undefine ANDROID for host modules 371LOCAL_CFLAGS += -UANDROID 372LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 373LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 374### Rules for final target. 375 376LOCAL_LDFLAGS_Debug := \ 377 -Wl,-z,now \ 378 -Wl,-z,relro \ 379 -pthread \ 380 -fPIC 381 382 383LOCAL_LDFLAGS_Release := \ 384 -Wl,-z,now \ 385 -Wl,-z,relro \ 386 -pthread \ 387 -fPIC 388 389 390LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 391 392LOCAL_STATIC_LIBRARIES := \ 393 third_party_yasm_genperf_libs_host_gyp 394 395# Enable grouping to fix circular references 396LOCAL_GROUP_STATIC_LIBRARIES := true 397 398LOCAL_SHARED_LIBRARIES := 399 400# Add target alias to "gyp_all_modules" target. 401.PHONY: gyp_all_modules 402gyp_all_modules: third_party_yasm_yasm_host_gyp 403 404# Alias gyp target name. 405.PHONY: yasm 406yasm: third_party_yasm_yasm_host_gyp 407 408LOCAL_MODULE_PATH := $(gyp_shared_intermediate_dir) 409include $(BUILD_HOST_EXECUTABLE) 410