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