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_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/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. 34 MY_CFLAGS_Debug := \ 35 -fstack-protector \ 36 --param=ssp-buffer-size=4 \ 37 \ 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 -ffunction-sections \ 51 -funwind-tables \ 52 -g \ 53 -fstack-protector \ 54 -fno-short-enums \ 55 -finline-limit=64 \ 56 -Wa,--noexecstack \ 57 -U_FORTIFY_SOURCE \ 58 -Wno-extra \ 59 -Wno-ignored-qualifiers \ 60 -Wno-type-limits \ 61 -Wno-unused-but-set-variable \ 62 -Os \ 63 -g \ 64 -gdwarf-4 \ 65 -fdata-sections \ 66 -ffunction-sections \ 67 -fomit-frame-pointer \ 68 -funwind-tables 69 70 MY_DEFS_Debug := \ 71 '-DV8_DEPRECATION_WARNINGS' \ 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="https://proxy-dev.googlezip.net:443/"' \ 89 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 90 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 91 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 92 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 93 '-DVIDEO_HOLE=1' \ 94 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 95 '-DWEBRTC_RESTRICT_LOGGING' \ 96 '-DEXPAT_RELATIVE_PATH' \ 97 '-DWEBRTC_MODULE_UTILITY_VIDEO' \ 98 '-DWEBRTC_CHROMIUM_BUILD' \ 99 '-DLOGGING_INSIDE_WEBRTC' \ 100 '-DWEBRTC_POSIX' \ 101 '-DWEBRTC_LINUX' \ 102 '-DWEBRTC_ANDROID' \ 103 '-DWEBRTC_ANDROID_OPENSLES' \ 104 '-DUSE_OPENSSL=1' \ 105 '-DUSE_OPENSSL_CERTS=1' \ 106 '-D__STDC_CONSTANT_MACROS' \ 107 '-D__STDC_FORMAT_MACROS' \ 108 '-DANDROID' \ 109 '-D__GNU_SOURCE=1' \ 110 '-DUSE_STLPORT=1' \ 111 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 112 '-DCHROME_BUILD_ID=""' \ 113 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 114 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 115 '-D_DEBUG' 116 117 118 # Include paths placed before CFLAGS/CPPFLAGS 119 LOCAL_C_INCLUDES_Debug := \ 120 $(gyp_shared_intermediate_dir) \ 121 $(LOCAL_PATH) \ 122 $(LOCAL_PATH)/third_party/webrtc/overrides \ 123 $(LOCAL_PATH)/third_party \ 124 $(LOCAL_PATH)/third_party/webrtc/modules/interface \ 125 $(LOCAL_PATH)/third_party/webrtc/common_video/interface \ 126 $(LOCAL_PATH)/third_party/webrtc/common_video/libyuv/include \ 127 $(LOCAL_PATH)/third_party/webrtc/system_wrappers/interface \ 128 $(LOCAL_PATH)/third_party/libyuv/include \ 129 $(LOCAL_PATH)/third_party/libyuv \ 130 $(PWD)/frameworks/wilhelm/include \ 131 $(PWD)/bionic \ 132 $(PWD)/external/stlport/stlport 133 134 135 # Flags passed to only C++ (and not C) files. 136 LOCAL_CPPFLAGS_Debug := \ 137 -fno-exceptions \ 138 -fno-rtti \ 139 -fno-threadsafe-statics \ 140 -fvisibility-inlines-hidden \ 141 -Wsign-compare \ 142 -Wno-uninitialized \ 143 -std=gnu++11 \ 144 -Wno-narrowing \ 145 -Wno-literal-suffix \ 146 -Wno-non-virtual-dtor \ 147 -Wno-sign-promo 148 149 150 # Flags passed to both C and C++ files. 151 MY_CFLAGS_Release := \ 152 -fstack-protector \ 153 --param=ssp-buffer-size=4 \ 154 \ 155 -fno-strict-aliasing \ 156 -Wall \ 157 -Wno-unused-parameter \ 158 -Wno-missing-field-initializers \ 159 -fvisibility=hidden \ 160 -pipe \ 161 -fPIC \ 162 -Wno-unused-local-typedefs \ 163 -fno-builtin-cos \ 164 -fno-builtin-sin \ 165 -fno-builtin-cosf \ 166 -fno-builtin-sinf \ 167 -ffunction-sections \ 168 -funwind-tables \ 169 -g \ 170 -fstack-protector \ 171 -fno-short-enums \ 172 -finline-limit=64 \ 173 -Wa,--noexecstack \ 174 -U_FORTIFY_SOURCE \ 175 -Wno-extra \ 176 -Wno-ignored-qualifiers \ 177 -Wno-type-limits \ 178 -Wno-unused-but-set-variable \ 179 -Os \ 180 -fno-ident \ 181 -fdata-sections \ 182 -ffunction-sections \ 183 -fomit-frame-pointer \ 184 -funwind-tables 185 186 MY_DEFS_Release := \ 187 '-DV8_DEPRECATION_WARNINGS' \ 188 '-D_FILE_OFFSET_BITS=64' \ 189 '-DNO_TCMALLOC' \ 190 '-DDISABLE_NACL' \ 191 '-DCHROMIUM_BUILD' \ 192 '-DUSE_LIBJPEG_TURBO=1' \ 193 '-DENABLE_WEBRTC=1' \ 194 '-DUSE_PROPRIETARY_CODECS' \ 195 '-DENABLE_BROWSER_CDMS' \ 196 '-DENABLE_CONFIGURATION_POLICY' \ 197 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 198 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 199 '-DENABLE_EGLIMAGE=1' \ 200 '-DCLD_VERSION=1' \ 201 '-DENABLE_PRINTING=1' \ 202 '-DENABLE_MANAGED_USERS=1' \ 203 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 204 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 205 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 206 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 207 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 208 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 209 '-DVIDEO_HOLE=1' \ 210 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 211 '-DWEBRTC_RESTRICT_LOGGING' \ 212 '-DEXPAT_RELATIVE_PATH' \ 213 '-DWEBRTC_MODULE_UTILITY_VIDEO' \ 214 '-DWEBRTC_CHROMIUM_BUILD' \ 215 '-DLOGGING_INSIDE_WEBRTC' \ 216 '-DWEBRTC_POSIX' \ 217 '-DWEBRTC_LINUX' \ 218 '-DWEBRTC_ANDROID' \ 219 '-DWEBRTC_ANDROID_OPENSLES' \ 220 '-DUSE_OPENSSL=1' \ 221 '-DUSE_OPENSSL_CERTS=1' \ 222 '-D__STDC_CONSTANT_MACROS' \ 223 '-D__STDC_FORMAT_MACROS' \ 224 '-DANDROID' \ 225 '-D__GNU_SOURCE=1' \ 226 '-DUSE_STLPORT=1' \ 227 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 228 '-DCHROME_BUILD_ID=""' \ 229 '-DNDEBUG' \ 230 '-DNVALGRIND' \ 231 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 232 '-D_FORTIFY_SOURCE=2' 233 234 235 # Include paths placed before CFLAGS/CPPFLAGS 236 LOCAL_C_INCLUDES_Release := \ 237 $(gyp_shared_intermediate_dir) \ 238 $(LOCAL_PATH) \ 239 $(LOCAL_PATH)/third_party/webrtc/overrides \ 240 $(LOCAL_PATH)/third_party \ 241 $(LOCAL_PATH)/third_party/webrtc/modules/interface \ 242 $(LOCAL_PATH)/third_party/webrtc/common_video/interface \ 243 $(LOCAL_PATH)/third_party/webrtc/common_video/libyuv/include \ 244 $(LOCAL_PATH)/third_party/webrtc/system_wrappers/interface \ 245 $(LOCAL_PATH)/third_party/libyuv/include \ 246 $(LOCAL_PATH)/third_party/libyuv \ 247 $(PWD)/frameworks/wilhelm/include \ 248 $(PWD)/bionic \ 249 $(PWD)/external/stlport/stlport 250 251 252 # Flags passed to only C++ (and not C) files. 253 LOCAL_CPPFLAGS_Release := \ 254 -fno-exceptions \ 255 -fno-rtti \ 256 -fno-threadsafe-statics \ 257 -fvisibility-inlines-hidden \ 258 -Wsign-compare \ 259 -Wno-uninitialized \ 260 -std=gnu++11 \ 261 -Wno-narrowing \ 262 -Wno-literal-suffix \ 263 -Wno-non-virtual-dtor \ 264 -Wno-sign-promo 265 266 267 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 268 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 269 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 270 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 271 ### Rules for final target. 272 273 LOCAL_SHARED_LIBRARIES := \ 274 libstlport \ 275 libdl 276 277 # Add target alias to "gyp_all_modules" target. 278 .PHONY: gyp_all_modules 279 gyp_all_modules: third_party_webrtc_common_video_common_video_gyp 280 281 # Alias gyp target name. 282 .PHONY: common_video 283 common_video: third_party_webrtc_common_video_common_video_gyp 284 285 include $(BUILD_STATIC_LIBRARY) 286