Home | History | Annotate | Download | only in libyuv
      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 := third_party_libyuv_libyuv_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 	$(call intermediates-dir-for,GYP,third_party_libjpeg_libjpeg_gyp,,,$(GYP_VAR_PREFIX))/libjpeg.stamp
     16 
     17 GYP_GENERATED_OUTPUTS :=
     18 
     19 # Make sure our deps and generated files are built first.
     20 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
     21 
     22 LOCAL_CPP_EXTENSION := .cc
     23 LOCAL_GENERATED_SOURCES :=
     24 
     25 GYP_COPIED_SOURCE_ORIGIN_DIRS :=
     26 
     27 LOCAL_SRC_FILES := \
     28 	third_party/libyuv/source/compare.cc \
     29 	third_party/libyuv/source/compare_common.cc \
     30 	third_party/libyuv/source/compare_posix.cc \
     31 	third_party/libyuv/source/compare_win.cc \
     32 	third_party/libyuv/source/convert.cc \
     33 	third_party/libyuv/source/convert_argb.cc \
     34 	third_party/libyuv/source/convert_from.cc \
     35 	third_party/libyuv/source/convert_from_argb.cc \
     36 	third_party/libyuv/source/convert_jpeg.cc \
     37 	third_party/libyuv/source/convert_to_argb.cc \
     38 	third_party/libyuv/source/convert_to_i420.cc \
     39 	third_party/libyuv/source/cpu_id.cc \
     40 	third_party/libyuv/source/format_conversion.cc \
     41 	third_party/libyuv/source/mjpeg_decoder.cc \
     42 	third_party/libyuv/source/mjpeg_validate.cc \
     43 	third_party/libyuv/source/planar_functions.cc \
     44 	third_party/libyuv/source/rotate.cc \
     45 	third_party/libyuv/source/rotate_argb.cc \
     46 	third_party/libyuv/source/rotate_mips.cc \
     47 	third_party/libyuv/source/row_any.cc \
     48 	third_party/libyuv/source/row_common.cc \
     49 	third_party/libyuv/source/row_mips.cc \
     50 	third_party/libyuv/source/row_posix.cc \
     51 	third_party/libyuv/source/row_win.cc \
     52 	third_party/libyuv/source/scale.cc \
     53 	third_party/libyuv/source/scale_argb.cc \
     54 	third_party/libyuv/source/scale_common.cc \
     55 	third_party/libyuv/source/scale_mips.cc \
     56 	third_party/libyuv/source/scale_posix.cc \
     57 	third_party/libyuv/source/scale_win.cc \
     58 	third_party/libyuv/source/video_common.cc
     59 
     60 
     61 # Flags passed to both C and C++ files.
     62 MY_CFLAGS_Debug := \
     63 	-fstack-protector \
     64 	--param=ssp-buffer-size=4 \
     65 	-fno-exceptions \
     66 	-fno-strict-aliasing \
     67 	-Wno-unused-parameter \
     68 	-Wno-missing-field-initializers \
     69 	-fvisibility=hidden \
     70 	-pipe \
     71 	-fPIC \
     72 	-Wno-unused-local-typedefs \
     73 	-Wno-format \
     74 	-fno-tree-sra \
     75 	-fno-partial-inlining \
     76 	-fno-early-inlining \
     77 	-fno-tree-copy-prop \
     78 	-fno-tree-loop-optimize \
     79 	-fno-move-loop-invariants \
     80 	-fno-caller-saves \
     81 	-Wno-psabi \
     82 	-ffunction-sections \
     83 	-funwind-tables \
     84 	-g \
     85 	-fstack-protector \
     86 	-fno-short-enums \
     87 	-finline-limit=64 \
     88 	-Wa,--noexecstack \
     89 	-U_FORTIFY_SOURCE \
     90 	-Wno-extra \
     91 	-Wno-ignored-qualifiers \
     92 	-Wno-type-limits \
     93 	-Wno-unused-but-set-variable \
     94 	-Wno-address \
     95 	-Wno-format-security \
     96 	-Wno-return-type \
     97 	-Wno-sequence-point \
     98 	-Os \
     99 	-g \
    100 	-fdata-sections \
    101 	-ffunction-sections \
    102 	-fomit-frame-pointer \
    103 	-funwind-tables
    104 
    105 MY_DEFS_Debug := \
    106 	'-DV8_DEPRECATION_WARNINGS' \
    107 	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
    108 	'-D_FILE_OFFSET_BITS=64' \
    109 	'-DNO_TCMALLOC' \
    110 	'-DDISABLE_NACL' \
    111 	'-DCHROMIUM_BUILD' \
    112 	'-DUSE_LIBJPEG_TURBO=1' \
    113 	'-DENABLE_WEBRTC=1' \
    114 	'-DUSE_PROPRIETARY_CODECS' \
    115 	'-DENABLE_BROWSER_CDMS' \
    116 	'-DENABLE_CONFIGURATION_POLICY' \
    117 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    118 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    119 	'-DENABLE_EGLIMAGE=1' \
    120 	'-DCLD_VERSION=1' \
    121 	'-DENABLE_PRINTING=1' \
    122 	'-DENABLE_MANAGED_USERS=1' \
    123 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    124 	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
    125 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    126 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    127 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    128 	'-DVIDEO_HOLE=1' \
    129 	'-DHAVE_JPEG' \
    130 	'-DLIBYUV_NEON' \
    131 	'-DUSE_SYSTEM_LIBJPEG' \
    132 	'-DUSE_OPENSSL=1' \
    133 	'-DUSE_OPENSSL_CERTS=1' \
    134 	'-DANDROID' \
    135 	'-D__GNU_SOURCE=1' \
    136 	'-DUSE_STLPORT=1' \
    137 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    138 	'-DCHROME_BUILD_ID=""' \
    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 	$(LOCAL_PATH)/third_party/libyuv/include \
    148 	$(LOCAL_PATH)/third_party/libyuv \
    149 	$(PWD)/external/jpeg \
    150 	$(PWD)/frameworks/wilhelm/include \
    151 	$(PWD)/bionic \
    152 	$(PWD)/external/stlport/stlport
    153 
    154 
    155 # Flags passed to only C++ (and not C) files.
    156 LOCAL_CPPFLAGS_Debug := \
    157 	-fno-rtti \
    158 	-fno-threadsafe-statics \
    159 	-fvisibility-inlines-hidden \
    160 	-Wno-deprecated \
    161 	-Wno-abi \
    162 	-Wno-non-virtual-dtor \
    163 	-Wno-sign-promo \
    164 	-Wno-non-virtual-dtor
    165 
    166 
    167 LOCAL_FDO_SUPPORT_Debug := false
    168 
    169 # Flags passed to both C and C++ files.
    170 MY_CFLAGS_Release := \
    171 	-fstack-protector \
    172 	--param=ssp-buffer-size=4 \
    173 	-fno-exceptions \
    174 	-fno-strict-aliasing \
    175 	-Wno-unused-parameter \
    176 	-Wno-missing-field-initializers \
    177 	-fvisibility=hidden \
    178 	-pipe \
    179 	-fPIC \
    180 	-Wno-unused-local-typedefs \
    181 	-Wno-format \
    182 	-fno-tree-sra \
    183 	-fno-partial-inlining \
    184 	-fno-early-inlining \
    185 	-fno-tree-copy-prop \
    186 	-fno-tree-loop-optimize \
    187 	-fno-move-loop-invariants \
    188 	-fno-caller-saves \
    189 	-Wno-psabi \
    190 	-ffunction-sections \
    191 	-funwind-tables \
    192 	-g \
    193 	-fstack-protector \
    194 	-fno-short-enums \
    195 	-finline-limit=64 \
    196 	-Wa,--noexecstack \
    197 	-U_FORTIFY_SOURCE \
    198 	-Wno-extra \
    199 	-Wno-ignored-qualifiers \
    200 	-Wno-type-limits \
    201 	-Wno-unused-but-set-variable \
    202 	-Wno-address \
    203 	-Wno-format-security \
    204 	-Wno-return-type \
    205 	-Wno-sequence-point \
    206 	-Os \
    207 	-fno-ident \
    208 	-fdata-sections \
    209 	-ffunction-sections \
    210 	-fomit-frame-pointer \
    211 	-funwind-tables
    212 
    213 MY_DEFS_Release := \
    214 	'-DV8_DEPRECATION_WARNINGS' \
    215 	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
    216 	'-D_FILE_OFFSET_BITS=64' \
    217 	'-DNO_TCMALLOC' \
    218 	'-DDISABLE_NACL' \
    219 	'-DCHROMIUM_BUILD' \
    220 	'-DUSE_LIBJPEG_TURBO=1' \
    221 	'-DENABLE_WEBRTC=1' \
    222 	'-DUSE_PROPRIETARY_CODECS' \
    223 	'-DENABLE_BROWSER_CDMS' \
    224 	'-DENABLE_CONFIGURATION_POLICY' \
    225 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    226 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    227 	'-DENABLE_EGLIMAGE=1' \
    228 	'-DCLD_VERSION=1' \
    229 	'-DENABLE_PRINTING=1' \
    230 	'-DENABLE_MANAGED_USERS=1' \
    231 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    232 	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
    233 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    234 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    235 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    236 	'-DVIDEO_HOLE=1' \
    237 	'-DHAVE_JPEG' \
    238 	'-DLIBYUV_NEON' \
    239 	'-DUSE_SYSTEM_LIBJPEG' \
    240 	'-DUSE_OPENSSL=1' \
    241 	'-DUSE_OPENSSL_CERTS=1' \
    242 	'-DANDROID' \
    243 	'-D__GNU_SOURCE=1' \
    244 	'-DUSE_STLPORT=1' \
    245 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    246 	'-DCHROME_BUILD_ID=""' \
    247 	'-DNDEBUG' \
    248 	'-DNVALGRIND' \
    249 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
    250 
    251 
    252 # Include paths placed before CFLAGS/CPPFLAGS
    253 LOCAL_C_INCLUDES_Release := \
    254 	$(gyp_shared_intermediate_dir) \
    255 	$(LOCAL_PATH)/third_party/libyuv/include \
    256 	$(LOCAL_PATH)/third_party/libyuv \
    257 	$(PWD)/external/jpeg \
    258 	$(PWD)/frameworks/wilhelm/include \
    259 	$(PWD)/bionic \
    260 	$(PWD)/external/stlport/stlport
    261 
    262 
    263 # Flags passed to only C++ (and not C) files.
    264 LOCAL_CPPFLAGS_Release := \
    265 	-fno-rtti \
    266 	-fno-threadsafe-statics \
    267 	-fvisibility-inlines-hidden \
    268 	-Wno-deprecated \
    269 	-Wno-abi \
    270 	-Wno-non-virtual-dtor \
    271 	-Wno-sign-promo \
    272 	-Wno-non-virtual-dtor
    273 
    274 
    275 LOCAL_FDO_SUPPORT_Release := false
    276 
    277 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    278 LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION))
    279 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    280 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    281 LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
    282 ### Rules for final target.
    283 
    284 LOCAL_LDFLAGS_Debug := \
    285 	-Wl,-z,now \
    286 	-Wl,-z,relro \
    287 	-Wl,--fatal-warnings \
    288 	-Wl,-z,noexecstack \
    289 	-fPIC \
    290 	-Wl,-z,relro \
    291 	-Wl,-z,now \
    292 	-fuse-ld=gold \
    293 	-nostdlib \
    294 	-Wl,--no-undefined \
    295 	-Wl,--exclude-libs=ALL \
    296 	-Wl,--icf=safe \
    297 	-Wl,--warn-shared-textrel \
    298 	-Wl,-O1 \
    299 	-Wl,--as-needed
    300 
    301 
    302 LOCAL_LDFLAGS_Release := \
    303 	-Wl,-z,now \
    304 	-Wl,-z,relro \
    305 	-Wl,--fatal-warnings \
    306 	-Wl,-z,noexecstack \
    307 	-fPIC \
    308 	-Wl,-z,relro \
    309 	-Wl,-z,now \
    310 	-fuse-ld=gold \
    311 	-nostdlib \
    312 	-Wl,--no-undefined \
    313 	-Wl,--exclude-libs=ALL \
    314 	-Wl,--icf=safe \
    315 	-Wl,-O1 \
    316 	-Wl,--as-needed \
    317 	-Wl,--gc-sections \
    318 	-Wl,--warn-shared-textrel
    319 
    320 
    321 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
    322 
    323 LOCAL_STATIC_LIBRARIES :=
    324 
    325 # Enable grouping to fix circular references
    326 LOCAL_GROUP_STATIC_LIBRARIES := true
    327 
    328 LOCAL_SHARED_LIBRARIES := \
    329 	libstlport \
    330 	libdl
    331 
    332 # Add target alias to "gyp_all_modules" target.
    333 .PHONY: gyp_all_modules
    334 gyp_all_modules: third_party_libyuv_libyuv_gyp
    335 
    336 # Alias gyp target name.
    337 .PHONY: libyuv
    338 libyuv: third_party_libyuv_libyuv_gyp
    339 
    340 include $(BUILD_STATIC_LIBRARY)
    341