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_neon_gyp
      7 LOCAL_MODULE_SUFFIX := .a
      8 LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH)
      9 gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX))
     10 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX))
     11 
     12 # Make sure our deps are built first.
     13 GYP_TARGET_DEPENDENCIES :=
     14 
     15 GYP_GENERATED_OUTPUTS :=
     16 
     17 # Make sure our deps and generated files are built first.
     18 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
     19 
     20 LOCAL_CPP_EXTENSION := .cc
     21 LOCAL_GENERATED_SOURCES :=
     22 
     23 GYP_COPIED_SOURCE_ORIGIN_DIRS :=
     24 
     25 LOCAL_SRC_FILES := \
     26 	third_party/libyuv/source/compare_neon.cc \
     27 	third_party/libyuv/source/rotate_neon.cc \
     28 	third_party/libyuv/source/row_neon.cc \
     29 	third_party/libyuv/source/scale_neon.cc
     30 
     31 
     32 # Flags passed to both C and C++ files.
     33 MY_CFLAGS_Debug := \
     34 	-fstack-protector \
     35 	--param=ssp-buffer-size=4 \
     36 	-fno-strict-aliasing \
     37 	-Wno-unused-parameter \
     38 	-Wno-missing-field-initializers \
     39 	-fvisibility=hidden \
     40 	-pipe \
     41 	-fPIC \
     42 	-Wno-unused-local-typedefs \
     43 	-mfpu=neon \
     44 	-Wno-format \
     45 	-fno-tree-sra \
     46 	-fno-caller-saves \
     47 	-Wno-psabi \
     48 	-fno-partial-inlining \
     49 	-fno-early-inlining \
     50 	-fno-tree-copy-prop \
     51 	-fno-tree-loop-optimize \
     52 	-fno-move-loop-invariants \
     53 	-ffunction-sections \
     54 	-funwind-tables \
     55 	-g \
     56 	-fstack-protector \
     57 	-fno-short-enums \
     58 	-finline-limit=64 \
     59 	-Wa,--noexecstack \
     60 	-U_FORTIFY_SOURCE \
     61 	-Wno-extra \
     62 	-Wno-ignored-qualifiers \
     63 	-Wno-type-limits \
     64 	-Wno-unused-but-set-variable \
     65 	-Wno-address \
     66 	-Wno-format-security \
     67 	-Wno-return-type \
     68 	-Wno-sequence-point \
     69 	-Os \
     70 	-g \
     71 	-gdwarf-4 \
     72 	-fdata-sections \
     73 	-ffunction-sections \
     74 	-fomit-frame-pointer \
     75 	-funwind-tables
     76 
     77 MY_DEFS_Debug := \
     78 	'-DV8_DEPRECATION_WARNINGS' \
     79 	'-D_FILE_OFFSET_BITS=64' \
     80 	'-DNO_TCMALLOC' \
     81 	'-DDISABLE_NACL' \
     82 	'-DCHROMIUM_BUILD' \
     83 	'-DUSE_LIBJPEG_TURBO=1' \
     84 	'-DENABLE_WEBRTC=1' \
     85 	'-DUSE_PROPRIETARY_CODECS' \
     86 	'-DENABLE_BROWSER_CDMS' \
     87 	'-DENABLE_CONFIGURATION_POLICY' \
     88 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
     89 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
     90 	'-DENABLE_EGLIMAGE=1' \
     91 	'-DCLD_VERSION=1' \
     92 	'-DENABLE_PRINTING=1' \
     93 	'-DENABLE_MANAGED_USERS=1' \
     94 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
     95 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
     96 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
     97 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
     98 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
     99 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    100 	'-DVIDEO_HOLE=1' \
    101 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
    102 	'-DUSE_OPENSSL=1' \
    103 	'-DUSE_OPENSSL_CERTS=1' \
    104 	'-DANDROID' \
    105 	'-D__GNU_SOURCE=1' \
    106 	'-DUSE_STLPORT=1' \
    107 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    108 	'-DCHROME_BUILD_ID=""' \
    109 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    110 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    111 	'-D_DEBUG'
    112 
    113 
    114 # Include paths placed before CFLAGS/CPPFLAGS
    115 LOCAL_C_INCLUDES_Debug := \
    116 	$(gyp_shared_intermediate_dir) \
    117 	$(LOCAL_PATH)/third_party/libyuv/include \
    118 	$(LOCAL_PATH)/third_party/libyuv \
    119 	$(PWD)/frameworks/wilhelm/include \
    120 	$(PWD)/bionic \
    121 	$(PWD)/external/stlport/stlport
    122 
    123 
    124 # Flags passed to only C++ (and not C) files.
    125 LOCAL_CPPFLAGS_Debug := \
    126 	-fno-exceptions \
    127 	-fno-rtti \
    128 	-fno-threadsafe-statics \
    129 	-fvisibility-inlines-hidden \
    130 	-Wno-deprecated \
    131 	-Wno-abi \
    132 	-std=gnu++11 \
    133 	-Wno-narrowing \
    134 	-Wno-literal-suffix \
    135 	-Wno-non-virtual-dtor \
    136 	-Wno-sign-promo \
    137 	-Wno-non-virtual-dtor
    138 
    139 
    140 # Flags passed to both C and C++ files.
    141 MY_CFLAGS_Release := \
    142 	-fstack-protector \
    143 	--param=ssp-buffer-size=4 \
    144 	-fno-strict-aliasing \
    145 	-Wno-unused-parameter \
    146 	-Wno-missing-field-initializers \
    147 	-fvisibility=hidden \
    148 	-pipe \
    149 	-fPIC \
    150 	-Wno-unused-local-typedefs \
    151 	-mfpu=neon \
    152 	-Wno-format \
    153 	-fno-tree-sra \
    154 	-fno-caller-saves \
    155 	-Wno-psabi \
    156 	-fno-partial-inlining \
    157 	-fno-early-inlining \
    158 	-fno-tree-copy-prop \
    159 	-fno-tree-loop-optimize \
    160 	-fno-move-loop-invariants \
    161 	-ffunction-sections \
    162 	-funwind-tables \
    163 	-g \
    164 	-fstack-protector \
    165 	-fno-short-enums \
    166 	-finline-limit=64 \
    167 	-Wa,--noexecstack \
    168 	-U_FORTIFY_SOURCE \
    169 	-Wno-extra \
    170 	-Wno-ignored-qualifiers \
    171 	-Wno-type-limits \
    172 	-Wno-unused-but-set-variable \
    173 	-Wno-address \
    174 	-Wno-format-security \
    175 	-Wno-return-type \
    176 	-Wno-sequence-point \
    177 	-Os \
    178 	-fno-ident \
    179 	-fdata-sections \
    180 	-ffunction-sections \
    181 	-fomit-frame-pointer \
    182 	-funwind-tables
    183 
    184 MY_DEFS_Release := \
    185 	'-DV8_DEPRECATION_WARNINGS' \
    186 	'-D_FILE_OFFSET_BITS=64' \
    187 	'-DNO_TCMALLOC' \
    188 	'-DDISABLE_NACL' \
    189 	'-DCHROMIUM_BUILD' \
    190 	'-DUSE_LIBJPEG_TURBO=1' \
    191 	'-DENABLE_WEBRTC=1' \
    192 	'-DUSE_PROPRIETARY_CODECS' \
    193 	'-DENABLE_BROWSER_CDMS' \
    194 	'-DENABLE_CONFIGURATION_POLICY' \
    195 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    196 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    197 	'-DENABLE_EGLIMAGE=1' \
    198 	'-DCLD_VERSION=1' \
    199 	'-DENABLE_PRINTING=1' \
    200 	'-DENABLE_MANAGED_USERS=1' \
    201 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    202 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
    203 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
    204 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    205 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    206 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    207 	'-DVIDEO_HOLE=1' \
    208 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
    209 	'-DUSE_OPENSSL=1' \
    210 	'-DUSE_OPENSSL_CERTS=1' \
    211 	'-DANDROID' \
    212 	'-D__GNU_SOURCE=1' \
    213 	'-DUSE_STLPORT=1' \
    214 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    215 	'-DCHROME_BUILD_ID=""' \
    216 	'-DNDEBUG' \
    217 	'-DNVALGRIND' \
    218 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
    219 
    220 
    221 # Include paths placed before CFLAGS/CPPFLAGS
    222 LOCAL_C_INCLUDES_Release := \
    223 	$(gyp_shared_intermediate_dir) \
    224 	$(LOCAL_PATH)/third_party/libyuv/include \
    225 	$(LOCAL_PATH)/third_party/libyuv \
    226 	$(PWD)/frameworks/wilhelm/include \
    227 	$(PWD)/bionic \
    228 	$(PWD)/external/stlport/stlport
    229 
    230 
    231 # Flags passed to only C++ (and not C) files.
    232 LOCAL_CPPFLAGS_Release := \
    233 	-fno-exceptions \
    234 	-fno-rtti \
    235 	-fno-threadsafe-statics \
    236 	-fvisibility-inlines-hidden \
    237 	-Wno-deprecated \
    238 	-Wno-abi \
    239 	-std=gnu++11 \
    240 	-Wno-narrowing \
    241 	-Wno-literal-suffix \
    242 	-Wno-non-virtual-dtor \
    243 	-Wno-sign-promo \
    244 	-Wno-non-virtual-dtor
    245 
    246 
    247 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    248 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    249 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    250 LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
    251 ### Rules for final target.
    252 
    253 LOCAL_SHARED_LIBRARIES := \
    254 	libstlport \
    255 	libdl
    256 
    257 # Add target alias to "gyp_all_modules" target.
    258 .PHONY: gyp_all_modules
    259 gyp_all_modules: third_party_libyuv_libyuv_neon_gyp
    260 
    261 # Alias gyp target name.
    262 .PHONY: libyuv_neon
    263 libyuv_neon: third_party_libyuv_libyuv_neon_gyp
    264 
    265 include $(BUILD_STATIC_LIBRARY)
    266