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