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