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_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 gyp_intermediate_dir := $(call local-intermediates-dir) 12 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared) 13 14 # Make sure our deps are built first. 15 GYP_TARGET_DEPENDENCIES := \ 16 $(gyp_shared_intermediate_dir)/genperf \ 17 $(gyp_shared_intermediate_dir)/genversion 18 19 ### Rules for action "generate_x86_insn": 20 $(gyp_shared_intermediate_dir)/third_party/yasm/x86insns.c: gyp_local_path := $(LOCAL_PATH) 21 $(gyp_shared_intermediate_dir)/third_party/yasm/x86insns.c: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir)) 22 $(gyp_shared_intermediate_dir)/third_party/yasm/x86insns.c: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir)) 23 $(gyp_shared_intermediate_dir)/third_party/yasm/x86insns.c: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH)) 24 $(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) 25 @echo "Gyp action: Running source/patched-yasm/modules/arch/x86/gen_x86_insn.py. ($@)" 26 $(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" 27 28 $(gyp_shared_intermediate_dir)/third_party/yasm/x86insn_gas.gperf: $(gyp_shared_intermediate_dir)/third_party/yasm/x86insns.c ; 29 $(gyp_shared_intermediate_dir)/third_party/yasm/x86insn_nasm.gperf: $(gyp_shared_intermediate_dir)/third_party/yasm/x86insns.c ; 30 31 ### Rules for action "generate_version": 32 $(gyp_shared_intermediate_dir)/third_party/yasm/version.mac: gyp_local_path := $(LOCAL_PATH) 33 $(gyp_shared_intermediate_dir)/third_party/yasm/version.mac: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir)) 34 $(gyp_shared_intermediate_dir)/third_party/yasm/version.mac: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir)) 35 $(gyp_shared_intermediate_dir)/third_party/yasm/version.mac: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH)) 36 $(gyp_shared_intermediate_dir)/third_party/yasm/version.mac: $(gyp_shared_intermediate_dir)/genversion $(GYP_TARGET_DEPENDENCIES) 37 @echo "Gyp action: Generating yasm version file: $(gyp_shared_intermediate_dir)/third_party/yasm/version.mac. ($@)" 38 $(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" 39 40 41 42 43 ### Generated for rule "third_party_yasm_yasm_gyp_generate_files_host_generate_gperf": 44 # "{'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).'}": 45 $(gyp_shared_intermediate_dir)/third_party/yasm/x86cpu.c: gyp_local_path := $(LOCAL_PATH) 46 $(gyp_shared_intermediate_dir)/third_party/yasm/x86cpu.c: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir)) 47 $(gyp_shared_intermediate_dir)/third_party/yasm/x86cpu.c: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir)) 48 $(gyp_shared_intermediate_dir)/third_party/yasm/x86cpu.c: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH)) 49 $(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) 50 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" 51 52 .PHONY: third_party_yasm_generate_files_host_gyp_rule_trigger 53 third_party_yasm_generate_files_host_gyp_rule_trigger: $(gyp_shared_intermediate_dir)/third_party/yasm/x86cpu.c 54 55 $(gyp_shared_intermediate_dir)/third_party/yasm/x86regtmod.c: gyp_local_path := $(LOCAL_PATH) 56 $(gyp_shared_intermediate_dir)/third_party/yasm/x86regtmod.c: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir)) 57 $(gyp_shared_intermediate_dir)/third_party/yasm/x86regtmod.c: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir)) 58 $(gyp_shared_intermediate_dir)/third_party/yasm/x86regtmod.c: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH)) 59 $(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) 60 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" 61 62 .PHONY: third_party_yasm_generate_files_host_gyp_rule_trigger 63 third_party_yasm_generate_files_host_gyp_rule_trigger: $(gyp_shared_intermediate_dir)/third_party/yasm/x86regtmod.c 64 65 ### Finished generating for all rules 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 third_party_yasm_generate_files_host_gyp_rule_trigger 80 81 GYP_COPIED_SOURCE_ORIGIN_DIRS := 82 83 LOCAL_SRC_FILES := 84 85 86 # Flags passed to both C and C++ files. 87 MY_CFLAGS_Debug := \ 88 -fstack-protector \ 89 --param=ssp-buffer-size=4 \ 90 -pthread \ 91 -fno-exceptions \ 92 -fno-strict-aliasing \ 93 -Wno-unused-parameter \ 94 -Wno-missing-field-initializers \ 95 -fvisibility=hidden \ 96 -pipe \ 97 -fPIC \ 98 -Wno-format \ 99 -Os \ 100 -g \ 101 -fomit-frame-pointer \ 102 -fdata-sections \ 103 -ffunction-sections 104 105 MY_DEFS_Debug := \ 106 '-DANGLE_DX11' \ 107 '-D_FILE_OFFSET_BITS=64' \ 108 '-DNO_TCMALLOC' \ 109 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 110 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 111 '-DDISABLE_NACL' \ 112 '-DCHROMIUM_BUILD' \ 113 '-DUSE_LIBJPEG_TURBO=1' \ 114 '-DUSE_PROPRIETARY_CODECS' \ 115 '-DENABLE_CONFIGURATION_POLICY' \ 116 '-DLOGGING_IS_OFFICIAL_BUILD=1' \ 117 '-DTRACING_IS_OFFICIAL_BUILD=1' \ 118 '-DENABLE_GPU=1' \ 119 '-DUSE_OPENSSL=1' \ 120 '-DENABLE_EGLIMAGE=1' \ 121 '-DENABLE_PRINTING=1' \ 122 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 123 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 124 '-D_DEBUG' 125 126 127 # Include paths placed before CFLAGS/CPPFLAGS 128 LOCAL_C_INCLUDES_Debug := 129 130 131 # Flags passed to only C++ (and not C) files. 132 LOCAL_CPPFLAGS_Debug := \ 133 -fno-rtti \ 134 -fno-threadsafe-statics \ 135 -fvisibility-inlines-hidden \ 136 -Wno-deprecated 137 138 139 # Flags passed to both C and C++ files. 140 MY_CFLAGS_Release := \ 141 -fstack-protector \ 142 --param=ssp-buffer-size=4 \ 143 -pthread \ 144 -fno-exceptions \ 145 -fno-strict-aliasing \ 146 -Wno-unused-parameter \ 147 -Wno-missing-field-initializers \ 148 -fvisibility=hidden \ 149 -pipe \ 150 -fPIC \ 151 -Wno-format \ 152 -Os \ 153 -fno-ident \ 154 -fdata-sections \ 155 -ffunction-sections \ 156 -fomit-frame-pointer \ 157 -fno-unwind-tables \ 158 -fno-asynchronous-unwind-tables 159 160 MY_DEFS_Release := \ 161 '-DANGLE_DX11' \ 162 '-D_FILE_OFFSET_BITS=64' \ 163 '-DNO_TCMALLOC' \ 164 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 165 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 166 '-DDISABLE_NACL' \ 167 '-DCHROMIUM_BUILD' \ 168 '-DUSE_LIBJPEG_TURBO=1' \ 169 '-DUSE_PROPRIETARY_CODECS' \ 170 '-DENABLE_CONFIGURATION_POLICY' \ 171 '-DLOGGING_IS_OFFICIAL_BUILD=1' \ 172 '-DTRACING_IS_OFFICIAL_BUILD=1' \ 173 '-DENABLE_GPU=1' \ 174 '-DUSE_OPENSSL=1' \ 175 '-DENABLE_EGLIMAGE=1' \ 176 '-DENABLE_PRINTING=1' \ 177 '-DNDEBUG' \ 178 '-DNVALGRIND' \ 179 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 180 181 182 # Include paths placed before CFLAGS/CPPFLAGS 183 LOCAL_C_INCLUDES_Release := 184 185 186 # Flags passed to only C++ (and not C) files. 187 LOCAL_CPPFLAGS_Release := \ 188 -fno-rtti \ 189 -fno-threadsafe-statics \ 190 -fvisibility-inlines-hidden \ 191 -Wno-deprecated 192 193 194 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 195 # Undefine ANDROID for host modules 196 LOCAL_CFLAGS += -UANDROID 197 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 198 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 199 ### Rules for final target. 200 # Add target alias to "gyp_all_modules" target. 201 .PHONY: gyp_all_modules 202 gyp_all_modules: third_party_yasm_generate_files_host_gyp 203 204 # Alias gyp target name. 205 .PHONY: generate_files 206 generate_files: third_party_yasm_generate_files_host_gyp 207 208 LOCAL_MODULE_PATH := $(PRODUCT_OUT)/gyp_stamp 209 LOCAL_UNINSTALLABLE_MODULE := true 210 211 include $(BUILD_SYSTEM)/base_rules.mk 212 213 $(LOCAL_BUILT_MODULE): $(LOCAL_ADDITIONAL_DEPENDENCIES) 214 $(hide) echo "Gyp timestamp: $@" 215 $(hide) mkdir -p $(dir $@) 216 $(hide) touch $@ 217