Home | History | Annotate | Download | only in common_video
      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_webrtc_common_video_common_video_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 	third_party/webrtc/common_video/i420_video_frame.cc \
     28 	third_party/webrtc/common_video/libyuv/webrtc_libyuv.cc \
     29 	third_party/webrtc/common_video/libyuv/scaler.cc \
     30 	third_party/webrtc/common_video/plane.cc \
     31 	third_party/webrtc/common_video/texture_video_frame.cc
     32 
     33 
     34 # Flags passed to both C and C++ files.
     35 MY_CFLAGS_Debug := \
     36 	-fstack-protector \
     37 	--param=ssp-buffer-size=4 \
     38 	-Werror \
     39 	-fno-exceptions \
     40 	-fno-strict-aliasing \
     41 	-Wall \
     42 	-Wno-unused-parameter \
     43 	-Wno-missing-field-initializers \
     44 	-fvisibility=hidden \
     45 	-pipe \
     46 	-fPIC \
     47 	-Wno-unused-local-typedefs \
     48 	-fno-builtin-cos \
     49 	-fno-builtin-sin \
     50 	-fno-builtin-cosf \
     51 	-fno-builtin-sinf \
     52 	-fno-tree-sra \
     53 	-fno-partial-inlining \
     54 	-fno-early-inlining \
     55 	-fno-tree-copy-prop \
     56 	-fno-tree-loop-optimize \
     57 	-fno-move-loop-invariants \
     58 	-fno-caller-saves \
     59 	-Wno-psabi \
     60 	-ffunction-sections \
     61 	-funwind-tables \
     62 	-g \
     63 	-fstack-protector \
     64 	-fno-short-enums \
     65 	-finline-limit=64 \
     66 	-Wa,--noexecstack \
     67 	-U_FORTIFY_SOURCE \
     68 	-Wno-extra \
     69 	-Wno-ignored-qualifiers \
     70 	-Wno-type-limits \
     71 	-Wno-unused-but-set-variable \
     72 	-Os \
     73 	-g \
     74 	-fdata-sections \
     75 	-ffunction-sections \
     76 	-fomit-frame-pointer \
     77 	-funwind-tables
     78 
     79 MY_DEFS_Debug := \
     80 	'-DV8_DEPRECATION_WARNINGS' \
     81 	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
     82 	'-D_FILE_OFFSET_BITS=64' \
     83 	'-DNO_TCMALLOC' \
     84 	'-DDISABLE_NACL' \
     85 	'-DCHROMIUM_BUILD' \
     86 	'-DUSE_LIBJPEG_TURBO=1' \
     87 	'-DENABLE_WEBRTC=1' \
     88 	'-DUSE_PROPRIETARY_CODECS' \
     89 	'-DENABLE_BROWSER_CDMS' \
     90 	'-DENABLE_CONFIGURATION_POLICY' \
     91 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
     92 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
     93 	'-DENABLE_EGLIMAGE=1' \
     94 	'-DCLD_VERSION=1' \
     95 	'-DENABLE_PRINTING=1' \
     96 	'-DENABLE_MANAGED_USERS=1' \
     97 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
     98 	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
     99 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    100 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    101 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    102 	'-DVIDEO_HOLE=1' \
    103 	'-DWEBRTC_RESTRICT_LOGGING' \
    104 	'-DWEBRTC_MODULE_UTILITY_VIDEO' \
    105 	'-DWEBRTC_CHROMIUM_BUILD' \
    106 	'-DLOGGING_INSIDE_WEBRTC' \
    107 	'-DWEBRTC_ARCH_ARM' \
    108 	'-DWEBRTC_ARCH_ARM_V7' \
    109 	'-DWEBRTC_DETECT_ARM_NEON' \
    110 	'-DWEBRTC_POSIX' \
    111 	'-DWEBRTC_LINUX' \
    112 	'-DWEBRTC_ANDROID' \
    113 	'-DWEBRTC_ANDROID_OPENSLES' \
    114 	'-DUSE_OPENSSL=1' \
    115 	'-DUSE_OPENSSL_CERTS=1' \
    116 	'-D__STDC_CONSTANT_MACROS' \
    117 	'-D__STDC_FORMAT_MACROS' \
    118 	'-DANDROID' \
    119 	'-D__GNU_SOURCE=1' \
    120 	'-DUSE_STLPORT=1' \
    121 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    122 	'-DCHROME_BUILD_ID=""' \
    123 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    124 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    125 	'-D_DEBUG'
    126 
    127 
    128 # Include paths placed before CFLAGS/CPPFLAGS
    129 LOCAL_C_INCLUDES_Debug := \
    130 	$(gyp_shared_intermediate_dir) \
    131 	$(LOCAL_PATH) \
    132 	$(LOCAL_PATH)/third_party/webrtc/overrides \
    133 	$(LOCAL_PATH)/third_party \
    134 	$(LOCAL_PATH)/third_party/webrtc/modules/interface \
    135 	$(LOCAL_PATH)/third_party/webrtc/common_video/interface \
    136 	$(LOCAL_PATH)/third_party/webrtc/common_video/libyuv/include \
    137 	$(LOCAL_PATH)/third_party/webrtc/system_wrappers/interface \
    138 	$(LOCAL_PATH)/third_party/libyuv/include \
    139 	$(LOCAL_PATH)/third_party/libyuv \
    140 	$(PWD)/frameworks/wilhelm/include \
    141 	$(PWD)/bionic \
    142 	$(PWD)/external/stlport/stlport
    143 
    144 
    145 # Flags passed to only C++ (and not C) files.
    146 LOCAL_CPPFLAGS_Debug := \
    147 	-fno-rtti \
    148 	-fno-threadsafe-statics \
    149 	-fvisibility-inlines-hidden \
    150 	-Wsign-compare \
    151 	-Wno-abi \
    152 	-Wno-non-virtual-dtor \
    153 	-Wno-sign-promo
    154 
    155 
    156 LOCAL_FDO_SUPPORT_Debug := false
    157 
    158 # Flags passed to both C and C++ files.
    159 MY_CFLAGS_Release := \
    160 	-fstack-protector \
    161 	--param=ssp-buffer-size=4 \
    162 	-Werror \
    163 	-fno-exceptions \
    164 	-fno-strict-aliasing \
    165 	-Wall \
    166 	-Wno-unused-parameter \
    167 	-Wno-missing-field-initializers \
    168 	-fvisibility=hidden \
    169 	-pipe \
    170 	-fPIC \
    171 	-Wno-unused-local-typedefs \
    172 	-fno-builtin-cos \
    173 	-fno-builtin-sin \
    174 	-fno-builtin-cosf \
    175 	-fno-builtin-sinf \
    176 	-fno-tree-sra \
    177 	-fno-partial-inlining \
    178 	-fno-early-inlining \
    179 	-fno-tree-copy-prop \
    180 	-fno-tree-loop-optimize \
    181 	-fno-move-loop-invariants \
    182 	-fno-caller-saves \
    183 	-Wno-psabi \
    184 	-ffunction-sections \
    185 	-funwind-tables \
    186 	-g \
    187 	-fstack-protector \
    188 	-fno-short-enums \
    189 	-finline-limit=64 \
    190 	-Wa,--noexecstack \
    191 	-U_FORTIFY_SOURCE \
    192 	-Wno-extra \
    193 	-Wno-ignored-qualifiers \
    194 	-Wno-type-limits \
    195 	-Wno-unused-but-set-variable \
    196 	-Os \
    197 	-fno-ident \
    198 	-fdata-sections \
    199 	-ffunction-sections \
    200 	-fomit-frame-pointer \
    201 	-funwind-tables
    202 
    203 MY_DEFS_Release := \
    204 	'-DV8_DEPRECATION_WARNINGS' \
    205 	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
    206 	'-D_FILE_OFFSET_BITS=64' \
    207 	'-DNO_TCMALLOC' \
    208 	'-DDISABLE_NACL' \
    209 	'-DCHROMIUM_BUILD' \
    210 	'-DUSE_LIBJPEG_TURBO=1' \
    211 	'-DENABLE_WEBRTC=1' \
    212 	'-DUSE_PROPRIETARY_CODECS' \
    213 	'-DENABLE_BROWSER_CDMS' \
    214 	'-DENABLE_CONFIGURATION_POLICY' \
    215 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    216 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    217 	'-DENABLE_EGLIMAGE=1' \
    218 	'-DCLD_VERSION=1' \
    219 	'-DENABLE_PRINTING=1' \
    220 	'-DENABLE_MANAGED_USERS=1' \
    221 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    222 	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
    223 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    224 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    225 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    226 	'-DVIDEO_HOLE=1' \
    227 	'-DWEBRTC_RESTRICT_LOGGING' \
    228 	'-DWEBRTC_MODULE_UTILITY_VIDEO' \
    229 	'-DWEBRTC_CHROMIUM_BUILD' \
    230 	'-DLOGGING_INSIDE_WEBRTC' \
    231 	'-DWEBRTC_ARCH_ARM' \
    232 	'-DWEBRTC_ARCH_ARM_V7' \
    233 	'-DWEBRTC_DETECT_ARM_NEON' \
    234 	'-DWEBRTC_POSIX' \
    235 	'-DWEBRTC_LINUX' \
    236 	'-DWEBRTC_ANDROID' \
    237 	'-DWEBRTC_ANDROID_OPENSLES' \
    238 	'-DUSE_OPENSSL=1' \
    239 	'-DUSE_OPENSSL_CERTS=1' \
    240 	'-D__STDC_CONSTANT_MACROS' \
    241 	'-D__STDC_FORMAT_MACROS' \
    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 	'-D_FORTIFY_SOURCE=2'
    251 
    252 
    253 # Include paths placed before CFLAGS/CPPFLAGS
    254 LOCAL_C_INCLUDES_Release := \
    255 	$(gyp_shared_intermediate_dir) \
    256 	$(LOCAL_PATH) \
    257 	$(LOCAL_PATH)/third_party/webrtc/overrides \
    258 	$(LOCAL_PATH)/third_party \
    259 	$(LOCAL_PATH)/third_party/webrtc/modules/interface \
    260 	$(LOCAL_PATH)/third_party/webrtc/common_video/interface \
    261 	$(LOCAL_PATH)/third_party/webrtc/common_video/libyuv/include \
    262 	$(LOCAL_PATH)/third_party/webrtc/system_wrappers/interface \
    263 	$(LOCAL_PATH)/third_party/libyuv/include \
    264 	$(LOCAL_PATH)/third_party/libyuv \
    265 	$(PWD)/frameworks/wilhelm/include \
    266 	$(PWD)/bionic \
    267 	$(PWD)/external/stlport/stlport
    268 
    269 
    270 # Flags passed to only C++ (and not C) files.
    271 LOCAL_CPPFLAGS_Release := \
    272 	-fno-rtti \
    273 	-fno-threadsafe-statics \
    274 	-fvisibility-inlines-hidden \
    275 	-Wsign-compare \
    276 	-Wno-abi \
    277 	-Wno-non-virtual-dtor \
    278 	-Wno-sign-promo
    279 
    280 
    281 LOCAL_FDO_SUPPORT_Release := false
    282 
    283 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    284 LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION))
    285 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    286 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    287 LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
    288 ### Rules for final target.
    289 
    290 LOCAL_LDFLAGS_Debug := \
    291 	-Wl,-z,now \
    292 	-Wl,-z,relro \
    293 	-Wl,--fatal-warnings \
    294 	-Wl,-z,noexecstack \
    295 	-fPIC \
    296 	-Wl,-z,relro \
    297 	-Wl,-z,now \
    298 	-fuse-ld=gold \
    299 	-nostdlib \
    300 	-Wl,--no-undefined \
    301 	-Wl,--exclude-libs=ALL \
    302 	-Wl,--icf=safe \
    303 	-Wl,--warn-shared-textrel \
    304 	-Wl,-O1 \
    305 	-Wl,--as-needed
    306 
    307 
    308 LOCAL_LDFLAGS_Release := \
    309 	-Wl,-z,now \
    310 	-Wl,-z,relro \
    311 	-Wl,--fatal-warnings \
    312 	-Wl,-z,noexecstack \
    313 	-fPIC \
    314 	-Wl,-z,relro \
    315 	-Wl,-z,now \
    316 	-fuse-ld=gold \
    317 	-nostdlib \
    318 	-Wl,--no-undefined \
    319 	-Wl,--exclude-libs=ALL \
    320 	-Wl,--icf=safe \
    321 	-Wl,-O1 \
    322 	-Wl,--as-needed \
    323 	-Wl,--gc-sections \
    324 	-Wl,--warn-shared-textrel
    325 
    326 
    327 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
    328 
    329 LOCAL_STATIC_LIBRARIES :=
    330 
    331 # Enable grouping to fix circular references
    332 LOCAL_GROUP_STATIC_LIBRARIES := true
    333 
    334 LOCAL_SHARED_LIBRARIES := \
    335 	libstlport \
    336 	libdl
    337 
    338 # Add target alias to "gyp_all_modules" target.
    339 .PHONY: gyp_all_modules
    340 gyp_all_modules: third_party_webrtc_common_video_common_video_gyp
    341 
    342 # Alias gyp target name.
    343 .PHONY: common_video
    344 common_video: third_party_webrtc_common_video_common_video_gyp
    345 
    346 include $(BUILD_STATIC_LIBRARY)
    347