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