Home | History | Annotate | Download | only in libvpx
      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_libvpx_gen_asm_offsets_vp8_gyp
      7 LOCAL_MODULE_STEM := gen_asm_offsets_vp8
      8 LOCAL_MODULE_SUFFIX := .stamp
      9 LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH)
     10 gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX))
     11 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX))
     12 
     13 # Make sure our deps are built first.
     14 GYP_TARGET_DEPENDENCIES := \
     15 	$(call intermediates-dir-for,STATIC_LIBRARIES,libvpx_asm_offsets_vp8,,,$(GYP_VAR_PREFIX))/libvpx_asm_offsets_vp8.a \
     16 	$(gyp_shared_intermediate_dir)/libvpx_obj_int_extract
     17 
     18 ### Rules for action "unpack_lib_posix":
     19 $(gyp_intermediate_dir)/vp8_asm_enc_offsets.o: gyp_local_path := $(LOCAL_PATH)
     20 $(gyp_intermediate_dir)/vp8_asm_enc_offsets.o: gyp_var_prefix := $(GYP_VAR_PREFIX)
     21 $(gyp_intermediate_dir)/vp8_asm_enc_offsets.o: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir))
     22 $(gyp_intermediate_dir)/vp8_asm_enc_offsets.o: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir))
     23 $(gyp_intermediate_dir)/vp8_asm_enc_offsets.o: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH))
     24 $(gyp_intermediate_dir)/vp8_asm_enc_offsets.o: $(LOCAL_PATH)/third_party/libvpx/unpack_lib_posix.sh $(GYP_TARGET_DEPENDENCIES)
     25 	@echo "Gyp action: third_party_libvpx_libvpx_gyp_gen_asm_offsets_vp8_target_unpack_lib_posix ($@)"
     26 	$(hide)cd $(gyp_local_path)/third_party/libvpx; mkdir -p $(gyp_intermediate_dir); ../../third_party/libvpx/unpack_lib_posix.sh -d "$(gyp_intermediate_dir)" -f vp8_asm_enc_offsets.o -a "$(gyp_shared_intermediate_dir)/libvpx_asm_offsets_vp8.a" -a "$(obj).$(TOOLSET)/third_party/libvpx/libvpx_asm_offsets_vp8.a" -a "$(obj).$(TOOLSET)/chromium/src/third_party/libvpx/libvpx_asm_offsets_vp8.a" -a "$(obj).$(TOOLSET)/Source/WebKit/chromium/third_party/libvpx/libvpx_asm_offsets_vp8.a" -a "$(abspath $(call intermediates-dir-for,STATIC_LIBRARIES,libvpx_asm_offsets_vp8,,,$(gyp_var_prefix)))/libvpx_asm_offsets_vp8.a" -r "$(abspath $($(gyp_var_prefix)TARGET_AR))"
     27 
     28 
     29 
     30 
     31 ### Generated for rule "third_party_libvpx_libvpx_gyp_gen_asm_offsets_vp8_target_obj_int_extract":
     32 # "{'inputs': ['$(gyp_shared_intermediate_dir)/libvpx_obj_int_extract', 'obj_int_extract.py'], 'extension': 'o', 'outputs': ['$(gyp_shared_intermediate_dir)/third_party/libvpx/%(INPUT_ROOT)s.asm'], 'rule_name': 'obj_int_extract', 'rule_sources': ['$(gyp_intermediate_dir)/vp8_asm_enc_offsets.o'], 'action': ['python', '../../third_party/libvpx/obj_int_extract.py', '-e', '$(gyp_shared_intermediate_dir)/libvpx_obj_int_extract', '-f', 'rvds', '-b', '$(RULE_SOURCES)', '-o', '$(gyp_shared_intermediate_dir)/third_party/libvpx/%(INPUT_ROOT)s.asm'], 'message': 'Generate assembly offsets $(RULE_SOURCES)'}":
     33 $(gyp_shared_intermediate_dir)/third_party/libvpx/vp8_asm_enc_offsets.asm: gyp_local_path := $(LOCAL_PATH)
     34 $(gyp_shared_intermediate_dir)/third_party/libvpx/vp8_asm_enc_offsets.asm: gyp_var_prefix := $(GYP_VAR_PREFIX)
     35 $(gyp_shared_intermediate_dir)/third_party/libvpx/vp8_asm_enc_offsets.asm: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir))
     36 $(gyp_shared_intermediate_dir)/third_party/libvpx/vp8_asm_enc_offsets.asm: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir))
     37 $(gyp_shared_intermediate_dir)/third_party/libvpx/vp8_asm_enc_offsets.asm: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH))
     38 $(gyp_shared_intermediate_dir)/third_party/libvpx/vp8_asm_enc_offsets.asm: $(gyp_intermediate_dir)/vp8_asm_enc_offsets.o $(gyp_shared_intermediate_dir)/libvpx_obj_int_extract $(LOCAL_PATH)/third_party/libvpx/obj_int_extract.py $(GYP_TARGET_DEPENDENCIES)
     39 	mkdir -p $(gyp_shared_intermediate_dir)/third_party/libvpx; cd $(gyp_local_path)/third_party/libvpx; python ../../third_party/libvpx/obj_int_extract.py -e "$(gyp_shared_intermediate_dir)/libvpx_obj_int_extract" -f rvds -b "$(gyp_intermediate_dir)/vp8_asm_enc_offsets.o" -o "$(gyp_shared_intermediate_dir)/third_party/libvpx/vp8_asm_enc_offsets.asm"
     40 
     41 
     42 
     43 GYP_GENERATED_OUTPUTS := \
     44 	$(gyp_intermediate_dir)/vp8_asm_enc_offsets.o \
     45 	$(gyp_shared_intermediate_dir)/third_party/libvpx/vp8_asm_enc_offsets.asm
     46 
     47 # Make sure our deps and generated files are built first.
     48 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
     49 
     50 LOCAL_GENERATED_SOURCES := \
     51 	$(gyp_intermediate_dir)/vp8_asm_enc_offsets.o
     52 
     53 GYP_COPIED_SOURCE_ORIGIN_DIRS :=
     54 
     55 LOCAL_SRC_FILES :=
     56 
     57 
     58 # Flags passed to both C and C++ files.
     59 MY_CFLAGS_Debug := \
     60 	--param=ssp-buffer-size=4 \
     61 	-fno-strict-aliasing \
     62 	-Wno-unused-parameter \
     63 	-Wno-missing-field-initializers \
     64 	-fvisibility=hidden \
     65 	-pipe \
     66 	-fPIC \
     67 	-Wno-unused-local-typedefs \
     68 	-Wno-format \
     69 	-msse2 \
     70 	-mfpmath=sse \
     71 	-mmmx \
     72 	-m32 \
     73 	-ffunction-sections \
     74 	-funwind-tables \
     75 	-g \
     76 	-fno-short-enums \
     77 	-finline-limit=64 \
     78 	-Wa,--noexecstack \
     79 	-U_FORTIFY_SOURCE \
     80 	-Wno-extra \
     81 	-Wno-ignored-qualifiers \
     82 	-Wno-type-limits \
     83 	-Wno-unused-but-set-variable \
     84 	-fno-stack-protector \
     85 	-Wno-address \
     86 	-Wno-format-security \
     87 	-Wno-return-type \
     88 	-Wno-sequence-point \
     89 	-Os \
     90 	-g \
     91 	-gdwarf-4 \
     92 	-fdata-sections \
     93 	-ffunction-sections \
     94 	-fomit-frame-pointer \
     95 	-funwind-tables
     96 
     97 MY_DEFS_Debug := \
     98 	'-DV8_DEPRECATION_WARNINGS' \
     99 	'-D_FILE_OFFSET_BITS=64' \
    100 	'-DNO_TCMALLOC' \
    101 	'-DDISABLE_NACL' \
    102 	'-DCHROMIUM_BUILD' \
    103 	'-DUSE_LIBJPEG_TURBO=1' \
    104 	'-DENABLE_WEBRTC=1' \
    105 	'-DUSE_PROPRIETARY_CODECS' \
    106 	'-DENABLE_BROWSER_CDMS' \
    107 	'-DENABLE_CONFIGURATION_POLICY' \
    108 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    109 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    110 	'-DENABLE_EGLIMAGE=1' \
    111 	'-DCLD_VERSION=1' \
    112 	'-DENABLE_PRINTING=1' \
    113 	'-DENABLE_MANAGED_USERS=1' \
    114 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    115 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
    116 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
    117 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    118 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    119 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    120 	'-DVIDEO_HOLE=1' \
    121 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
    122 	'-DUSE_OPENSSL=1' \
    123 	'-DUSE_OPENSSL_CERTS=1' \
    124 	'-DANDROID' \
    125 	'-D__GNU_SOURCE=1' \
    126 	'-DUSE_STLPORT=1' \
    127 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    128 	'-DCHROME_BUILD_ID=""' \
    129 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    130 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    131 	'-D_DEBUG'
    132 
    133 
    134 # Include paths placed before CFLAGS/CPPFLAGS
    135 LOCAL_C_INCLUDES_Debug := \
    136 	$(gyp_shared_intermediate_dir) \
    137 	$(PWD)/frameworks/wilhelm/include \
    138 	$(PWD)/bionic \
    139 	$(PWD)/external/stlport/stlport
    140 
    141 
    142 # Flags passed to only C++ (and not C) files.
    143 LOCAL_CPPFLAGS_Debug := \
    144 	-fno-exceptions \
    145 	-fno-rtti \
    146 	-fno-threadsafe-statics \
    147 	-fvisibility-inlines-hidden \
    148 	-Wno-deprecated \
    149 	-std=gnu++11 \
    150 	-Wno-narrowing \
    151 	-Wno-literal-suffix \
    152 	-Wno-non-virtual-dtor \
    153 	-Wno-sign-promo \
    154 	-Wno-non-virtual-dtor
    155 
    156 
    157 # Flags passed to both C and C++ files.
    158 MY_CFLAGS_Release := \
    159 	--param=ssp-buffer-size=4 \
    160 	-fno-strict-aliasing \
    161 	-Wno-unused-parameter \
    162 	-Wno-missing-field-initializers \
    163 	-fvisibility=hidden \
    164 	-pipe \
    165 	-fPIC \
    166 	-Wno-unused-local-typedefs \
    167 	-Wno-format \
    168 	-msse2 \
    169 	-mfpmath=sse \
    170 	-mmmx \
    171 	-m32 \
    172 	-ffunction-sections \
    173 	-funwind-tables \
    174 	-g \
    175 	-fno-short-enums \
    176 	-finline-limit=64 \
    177 	-Wa,--noexecstack \
    178 	-U_FORTIFY_SOURCE \
    179 	-Wno-extra \
    180 	-Wno-ignored-qualifiers \
    181 	-Wno-type-limits \
    182 	-Wno-unused-but-set-variable \
    183 	-fno-stack-protector \
    184 	-Wno-address \
    185 	-Wno-format-security \
    186 	-Wno-return-type \
    187 	-Wno-sequence-point \
    188 	-Os \
    189 	-fno-ident \
    190 	-fdata-sections \
    191 	-ffunction-sections \
    192 	-fomit-frame-pointer \
    193 	-funwind-tables
    194 
    195 MY_DEFS_Release := \
    196 	'-DV8_DEPRECATION_WARNINGS' \
    197 	'-D_FILE_OFFSET_BITS=64' \
    198 	'-DNO_TCMALLOC' \
    199 	'-DDISABLE_NACL' \
    200 	'-DCHROMIUM_BUILD' \
    201 	'-DUSE_LIBJPEG_TURBO=1' \
    202 	'-DENABLE_WEBRTC=1' \
    203 	'-DUSE_PROPRIETARY_CODECS' \
    204 	'-DENABLE_BROWSER_CDMS' \
    205 	'-DENABLE_CONFIGURATION_POLICY' \
    206 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    207 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    208 	'-DENABLE_EGLIMAGE=1' \
    209 	'-DCLD_VERSION=1' \
    210 	'-DENABLE_PRINTING=1' \
    211 	'-DENABLE_MANAGED_USERS=1' \
    212 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    213 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
    214 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
    215 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    216 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    217 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    218 	'-DVIDEO_HOLE=1' \
    219 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
    220 	'-DUSE_OPENSSL=1' \
    221 	'-DUSE_OPENSSL_CERTS=1' \
    222 	'-DANDROID' \
    223 	'-D__GNU_SOURCE=1' \
    224 	'-DUSE_STLPORT=1' \
    225 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    226 	'-DCHROME_BUILD_ID=""' \
    227 	'-DNDEBUG' \
    228 	'-DNVALGRIND' \
    229 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
    230 
    231 
    232 # Include paths placed before CFLAGS/CPPFLAGS
    233 LOCAL_C_INCLUDES_Release := \
    234 	$(gyp_shared_intermediate_dir) \
    235 	$(PWD)/frameworks/wilhelm/include \
    236 	$(PWD)/bionic \
    237 	$(PWD)/external/stlport/stlport
    238 
    239 
    240 # Flags passed to only C++ (and not C) files.
    241 LOCAL_CPPFLAGS_Release := \
    242 	-fno-exceptions \
    243 	-fno-rtti \
    244 	-fno-threadsafe-statics \
    245 	-fvisibility-inlines-hidden \
    246 	-Wno-deprecated \
    247 	-std=gnu++11 \
    248 	-Wno-narrowing \
    249 	-Wno-literal-suffix \
    250 	-Wno-non-virtual-dtor \
    251 	-Wno-sign-promo \
    252 	-Wno-non-virtual-dtor
    253 
    254 
    255 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    256 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    257 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    258 LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
    259 ### Rules for final target.
    260 # Add target alias to "gyp_all_modules" target.
    261 .PHONY: gyp_all_modules
    262 gyp_all_modules: third_party_libvpx_gen_asm_offsets_vp8_gyp
    263 
    264 # Alias gyp target name.
    265 .PHONY: gen_asm_offsets_vp8
    266 gen_asm_offsets_vp8: third_party_libvpx_gen_asm_offsets_vp8_gyp
    267 
    268 LOCAL_MODULE_PATH := $(PRODUCT_OUT)/gyp_stamp
    269 LOCAL_UNINSTALLABLE_MODULE := true
    270 LOCAL_2ND_ARCH_VAR_PREFIX := $(GYP_VAR_PREFIX)
    271 
    272 include $(BUILD_SYSTEM)/base_rules.mk
    273 
    274 $(LOCAL_BUILT_MODULE): $(LOCAL_ADDITIONAL_DEPENDENCIES)
    275 	$(hide) echo "Gyp timestamp: $@"
    276 	$(hide) mkdir -p $(dir $@)
    277 	$(hide) touch $@
    278 
    279 LOCAL_2ND_ARCH_VAR_PREFIX :=
    280