Home | History | Annotate | Download | only in media
      1 # This file is generated by gyp; do not edit.
      2 
      3 include $(CLEAR_VARS)
      4 
      5 LOCAL_MODULE_CLASS := STATIC_LIBRARIES
      6 LOCAL_MODULE := media_media_sse2_gyp
      7 LOCAL_MODULE_SUFFIX := .a
      8 LOCAL_MODULE_TAGS := optional
      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 
     16 GYP_GENERATED_OUTPUTS :=
     17 
     18 # Make sure our deps and generated files are built first.
     19 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
     20 
     21 LOCAL_CPP_EXTENSION := .cc
     22 LOCAL_GENERATED_SOURCES :=
     23 
     24 GYP_COPIED_SOURCE_ORIGIN_DIRS :=
     25 
     26 LOCAL_SRC_FILES := \
     27 	media/base/simd/convert_rgb_to_yuv_sse2.cc \
     28 	media/base/simd/convert_rgb_to_yuv_ssse3.cc \
     29 	media/base/simd/filter_yuv_sse2.cc
     30 
     31 
     32 # Flags passed to both C and C++ files.
     33 MY_CFLAGS_Debug := \
     34 	--param=ssp-buffer-size=4 \
     35 	-Werror \
     36 	-fno-exceptions \
     37 	-fno-strict-aliasing \
     38 	-Wall \
     39 	-Wno-unused-parameter \
     40 	-Wno-missing-field-initializers \
     41 	-fvisibility=hidden \
     42 	-pipe \
     43 	-fPIC \
     44 	-Wno-unused-local-typedefs \
     45 	-msse2 \
     46 	-msse2 \
     47 	-mfpmath=sse \
     48 	-mmmx \
     49 	-m32 \
     50 	-ffunction-sections \
     51 	-funwind-tables \
     52 	-g \
     53 	-fno-short-enums \
     54 	-finline-limit=64 \
     55 	-Wa,--noexecstack \
     56 	-U_FORTIFY_SOURCE \
     57 	-Wno-extra \
     58 	-Wno-ignored-qualifiers \
     59 	-Wno-type-limits \
     60 	-Wno-unused-but-set-variable \
     61 	-fno-stack-protector \
     62 	-Os \
     63 	-g \
     64 	-fdata-sections \
     65 	-ffunction-sections \
     66 	-fomit-frame-pointer \
     67 	-funwind-tables
     68 
     69 MY_DEFS_Debug := \
     70 	'-DV8_DEPRECATION_WARNINGS' \
     71 	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
     72 	'-D_FILE_OFFSET_BITS=64' \
     73 	'-DNO_TCMALLOC' \
     74 	'-DDISABLE_NACL' \
     75 	'-DCHROMIUM_BUILD' \
     76 	'-DUSE_LIBJPEG_TURBO=1' \
     77 	'-DENABLE_WEBRTC=1' \
     78 	'-DUSE_PROPRIETARY_CODECS' \
     79 	'-DENABLE_BROWSER_CDMS' \
     80 	'-DENABLE_CONFIGURATION_POLICY' \
     81 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
     82 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
     83 	'-DENABLE_EGLIMAGE=1' \
     84 	'-DCLD_VERSION=1' \
     85 	'-DENABLE_PRINTING=1' \
     86 	'-DENABLE_MANAGED_USERS=1' \
     87 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
     88 	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
     89 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
     90 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
     91 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
     92 	'-DVIDEO_HOLE=1' \
     93 	'-DMEDIA_IMPLEMENTATION' \
     94 	'-DUSE_OPENSSL=1' \
     95 	'-DUSE_OPENSSL_CERTS=1' \
     96 	'-D__STDC_CONSTANT_MACROS' \
     97 	'-D__STDC_FORMAT_MACROS' \
     98 	'-DANDROID' \
     99 	'-D__GNU_SOURCE=1' \
    100 	'-DUSE_STLPORT=1' \
    101 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    102 	'-DCHROME_BUILD_ID=""' \
    103 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    104 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    105 	'-D_DEBUG'
    106 
    107 
    108 # Include paths placed before CFLAGS/CPPFLAGS
    109 LOCAL_C_INCLUDES_Debug := \
    110 	$(gyp_shared_intermediate_dir) \
    111 	$(LOCAL_PATH) \
    112 	$(PWD)/frameworks/wilhelm/include \
    113 	$(PWD)/bionic \
    114 	$(PWD)/external/stlport/stlport
    115 
    116 
    117 # Flags passed to only C++ (and not C) files.
    118 LOCAL_CPPFLAGS_Debug := \
    119 	-fno-rtti \
    120 	-fno-threadsafe-statics \
    121 	-fvisibility-inlines-hidden \
    122 	-Wsign-compare \
    123 	-Wno-non-virtual-dtor \
    124 	-Wno-sign-promo
    125 
    126 
    127 LOCAL_FDO_SUPPORT_Debug := false
    128 
    129 # Flags passed to both C and C++ files.
    130 MY_CFLAGS_Release := \
    131 	--param=ssp-buffer-size=4 \
    132 	-Werror \
    133 	-fno-exceptions \
    134 	-fno-strict-aliasing \
    135 	-Wall \
    136 	-Wno-unused-parameter \
    137 	-Wno-missing-field-initializers \
    138 	-fvisibility=hidden \
    139 	-pipe \
    140 	-fPIC \
    141 	-Wno-unused-local-typedefs \
    142 	-msse2 \
    143 	-msse2 \
    144 	-mfpmath=sse \
    145 	-mmmx \
    146 	-m32 \
    147 	-ffunction-sections \
    148 	-funwind-tables \
    149 	-g \
    150 	-fno-short-enums \
    151 	-finline-limit=64 \
    152 	-Wa,--noexecstack \
    153 	-U_FORTIFY_SOURCE \
    154 	-Wno-extra \
    155 	-Wno-ignored-qualifiers \
    156 	-Wno-type-limits \
    157 	-Wno-unused-but-set-variable \
    158 	-fno-stack-protector \
    159 	-Os \
    160 	-fno-ident \
    161 	-fdata-sections \
    162 	-ffunction-sections \
    163 	-fomit-frame-pointer \
    164 	-funwind-tables
    165 
    166 MY_DEFS_Release := \
    167 	'-DV8_DEPRECATION_WARNINGS' \
    168 	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
    169 	'-D_FILE_OFFSET_BITS=64' \
    170 	'-DNO_TCMALLOC' \
    171 	'-DDISABLE_NACL' \
    172 	'-DCHROMIUM_BUILD' \
    173 	'-DUSE_LIBJPEG_TURBO=1' \
    174 	'-DENABLE_WEBRTC=1' \
    175 	'-DUSE_PROPRIETARY_CODECS' \
    176 	'-DENABLE_BROWSER_CDMS' \
    177 	'-DENABLE_CONFIGURATION_POLICY' \
    178 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    179 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    180 	'-DENABLE_EGLIMAGE=1' \
    181 	'-DCLD_VERSION=1' \
    182 	'-DENABLE_PRINTING=1' \
    183 	'-DENABLE_MANAGED_USERS=1' \
    184 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    185 	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
    186 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    187 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    188 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    189 	'-DVIDEO_HOLE=1' \
    190 	'-DMEDIA_IMPLEMENTATION' \
    191 	'-DUSE_OPENSSL=1' \
    192 	'-DUSE_OPENSSL_CERTS=1' \
    193 	'-D__STDC_CONSTANT_MACROS' \
    194 	'-D__STDC_FORMAT_MACROS' \
    195 	'-DANDROID' \
    196 	'-D__GNU_SOURCE=1' \
    197 	'-DUSE_STLPORT=1' \
    198 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    199 	'-DCHROME_BUILD_ID=""' \
    200 	'-DNDEBUG' \
    201 	'-DNVALGRIND' \
    202 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
    203 	'-D_FORTIFY_SOURCE=2'
    204 
    205 
    206 # Include paths placed before CFLAGS/CPPFLAGS
    207 LOCAL_C_INCLUDES_Release := \
    208 	$(gyp_shared_intermediate_dir) \
    209 	$(LOCAL_PATH) \
    210 	$(PWD)/frameworks/wilhelm/include \
    211 	$(PWD)/bionic \
    212 	$(PWD)/external/stlport/stlport
    213 
    214 
    215 # Flags passed to only C++ (and not C) files.
    216 LOCAL_CPPFLAGS_Release := \
    217 	-fno-rtti \
    218 	-fno-threadsafe-statics \
    219 	-fvisibility-inlines-hidden \
    220 	-Wsign-compare \
    221 	-Wno-non-virtual-dtor \
    222 	-Wno-sign-promo
    223 
    224 
    225 LOCAL_FDO_SUPPORT_Release := false
    226 
    227 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    228 LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION))
    229 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    230 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    231 LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
    232 ### Rules for final target.
    233 
    234 LOCAL_LDFLAGS_Debug := \
    235 	-Wl,-z,now \
    236 	-Wl,-z,relro \
    237 	-Wl,--fatal-warnings \
    238 	-Wl,-z,noexecstack \
    239 	-fPIC \
    240 	-m32 \
    241 	-fuse-ld=gold \
    242 	-nostdlib \
    243 	-Wl,--no-undefined \
    244 	-Wl,--exclude-libs=ALL \
    245 	-Wl,--warn-shared-textrel \
    246 	-Wl,-O1 \
    247 	-Wl,--as-needed
    248 
    249 
    250 LOCAL_LDFLAGS_Release := \
    251 	-Wl,-z,now \
    252 	-Wl,-z,relro \
    253 	-Wl,--fatal-warnings \
    254 	-Wl,-z,noexecstack \
    255 	-fPIC \
    256 	-m32 \
    257 	-fuse-ld=gold \
    258 	-nostdlib \
    259 	-Wl,--no-undefined \
    260 	-Wl,--exclude-libs=ALL \
    261 	-Wl,-O1 \
    262 	-Wl,--as-needed \
    263 	-Wl,--gc-sections \
    264 	-Wl,--warn-shared-textrel
    265 
    266 
    267 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
    268 
    269 LOCAL_STATIC_LIBRARIES :=
    270 
    271 # Enable grouping to fix circular references
    272 LOCAL_GROUP_STATIC_LIBRARIES := true
    273 
    274 LOCAL_SHARED_LIBRARIES := \
    275 	libstlport \
    276 	libdl
    277 
    278 # Add target alias to "gyp_all_modules" target.
    279 .PHONY: gyp_all_modules
    280 gyp_all_modules: media_media_sse2_gyp
    281 
    282 # Alias gyp target name.
    283 .PHONY: media_sse2
    284 media_sse2: media_media_sse2_gyp
    285 
    286 include $(BUILD_STATIC_LIBRARY)
    287