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_modules_webrtc_utility_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/modules/utility/source/audio_frame_operations.cc \ 28 third_party/webrtc/modules/utility/source/coder.cc \ 29 third_party/webrtc/modules/utility/source/file_player_impl.cc \ 30 third_party/webrtc/modules/utility/source/file_recorder_impl.cc \ 31 third_party/webrtc/modules/utility/source/helpers_android.cc \ 32 third_party/webrtc/modules/utility/source/process_thread_impl.cc \ 33 third_party/webrtc/modules/utility/source/rtp_dump_impl.cc \ 34 third_party/webrtc/modules/utility/source/frame_scaler.cc \ 35 third_party/webrtc/modules/utility/source/video_coder.cc \ 36 third_party/webrtc/modules/utility/source/video_frames_queue.cc 37 38 39 # Flags passed to both C and C++ files. 40 MY_CFLAGS_Debug := \ 41 --param=ssp-buffer-size=4 \ 42 -Werror \ 43 -fno-exceptions \ 44 -fno-strict-aliasing \ 45 -Wall \ 46 -Wno-unused-parameter \ 47 -Wno-missing-field-initializers \ 48 -fvisibility=hidden \ 49 -pipe \ 50 -fPIC \ 51 -Wno-unused-local-typedefs \ 52 -fno-builtin-cos \ 53 -fno-builtin-sin \ 54 -fno-builtin-cosf \ 55 -fno-builtin-sinf \ 56 -fno-builtin-cos \ 57 -fno-builtin-sin \ 58 -fno-builtin-cosf \ 59 -fno-builtin-sinf \ 60 -ffunction-sections \ 61 -funwind-tables \ 62 -g \ 63 -fno-short-enums \ 64 -finline-limit=64 \ 65 -Wa,--noexecstack \ 66 -U_FORTIFY_SOURCE \ 67 -Wno-extra \ 68 -Wno-ignored-qualifiers \ 69 -Wno-type-limits \ 70 -Wno-unused-but-set-variable \ 71 -Os \ 72 -g \ 73 -fdata-sections \ 74 -ffunction-sections \ 75 -funwind-tables 76 77 MY_DEFS_Debug := \ 78 '-DV8_DEPRECATION_WARNINGS' \ 79 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 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="http://proxy-dev.googlezip.net:80/"' \ 97 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 98 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 99 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 100 '-DVIDEO_HOLE=1' \ 101 '-DWEBRTC_RESTRICT_LOGGING' \ 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 124 LOCAL_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/modules/audio_coding/main/interface \ 130 $(LOCAL_PATH)/third_party/webrtc/modules/interface \ 131 $(LOCAL_PATH)/third_party/webrtc \ 132 $(LOCAL_PATH)/third_party/webrtc/modules/media_file/interface \ 133 $(LOCAL_PATH)/third_party/webrtc/common_audio/resampler/include \ 134 $(LOCAL_PATH)/third_party/webrtc/common_audio/signal_processing/include \ 135 $(LOCAL_PATH)/third_party/webrtc/common_audio/vad/include \ 136 $(LOCAL_PATH)/third_party/webrtc/system_wrappers/interface \ 137 $(PWD)/frameworks/wilhelm/include \ 138 $(PWD)/bionic \ 139 $(PWD)/external/stlport/stlport 140 141 142 # Flags passed to only C++ (and not C) files. 143 LOCAL_CPPFLAGS_Debug := \ 144 -fno-rtti \ 145 -fno-threadsafe-statics \ 146 -fvisibility-inlines-hidden \ 147 -Wsign-compare \ 148 -Wno-non-virtual-dtor \ 149 -Wno-sign-promo 150 151 152 LOCAL_FDO_SUPPORT_Debug := false 153 154 # Flags passed to both C and C++ files. 155 MY_CFLAGS_Release := \ 156 --param=ssp-buffer-size=4 \ 157 -Werror \ 158 -fno-exceptions \ 159 -fno-strict-aliasing \ 160 -Wall \ 161 -Wno-unused-parameter \ 162 -Wno-missing-field-initializers \ 163 -fvisibility=hidden \ 164 -pipe \ 165 -fPIC \ 166 -Wno-unused-local-typedefs \ 167 -fno-builtin-cos \ 168 -fno-builtin-sin \ 169 -fno-builtin-cosf \ 170 -fno-builtin-sinf \ 171 -fno-builtin-cos \ 172 -fno-builtin-sin \ 173 -fno-builtin-cosf \ 174 -fno-builtin-sinf \ 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 -Os \ 187 -fno-ident \ 188 -fdata-sections \ 189 -ffunction-sections \ 190 -funwind-tables 191 192 MY_DEFS_Release := \ 193 '-DV8_DEPRECATION_WARNINGS' \ 194 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 195 '-D_FILE_OFFSET_BITS=64' \ 196 '-DNO_TCMALLOC' \ 197 '-DDISABLE_NACL' \ 198 '-DCHROMIUM_BUILD' \ 199 '-DUSE_LIBJPEG_TURBO=1' \ 200 '-DENABLE_WEBRTC=1' \ 201 '-DUSE_PROPRIETARY_CODECS' \ 202 '-DENABLE_BROWSER_CDMS' \ 203 '-DENABLE_CONFIGURATION_POLICY' \ 204 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 205 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 206 '-DENABLE_EGLIMAGE=1' \ 207 '-DCLD_VERSION=1' \ 208 '-DENABLE_PRINTING=1' \ 209 '-DENABLE_MANAGED_USERS=1' \ 210 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 211 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 212 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 213 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 214 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 215 '-DVIDEO_HOLE=1' \ 216 '-DWEBRTC_RESTRICT_LOGGING' \ 217 '-DWEBRTC_MODULE_UTILITY_VIDEO' \ 218 '-DWEBRTC_CHROMIUM_BUILD' \ 219 '-DLOGGING_INSIDE_WEBRTC' \ 220 '-DWEBRTC_POSIX' \ 221 '-DWEBRTC_LINUX' \ 222 '-DWEBRTC_ANDROID' \ 223 '-DWEBRTC_ANDROID_OPENSLES' \ 224 '-DUSE_OPENSSL=1' \ 225 '-DUSE_OPENSSL_CERTS=1' \ 226 '-D__STDC_CONSTANT_MACROS' \ 227 '-D__STDC_FORMAT_MACROS' \ 228 '-DANDROID' \ 229 '-D__GNU_SOURCE=1' \ 230 '-DUSE_STLPORT=1' \ 231 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 232 '-DCHROME_BUILD_ID=""' \ 233 '-DNDEBUG' \ 234 '-DNVALGRIND' \ 235 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 236 '-D_FORTIFY_SOURCE=2' 237 238 239 # Include paths placed before CFLAGS/CPPFLAGS 240 LOCAL_C_INCLUDES_Release := \ 241 $(gyp_shared_intermediate_dir) \ 242 $(LOCAL_PATH) \ 243 $(LOCAL_PATH)/third_party/webrtc/overrides \ 244 $(LOCAL_PATH)/third_party \ 245 $(LOCAL_PATH)/third_party/webrtc/modules/audio_coding/main/interface \ 246 $(LOCAL_PATH)/third_party/webrtc/modules/interface \ 247 $(LOCAL_PATH)/third_party/webrtc \ 248 $(LOCAL_PATH)/third_party/webrtc/modules/media_file/interface \ 249 $(LOCAL_PATH)/third_party/webrtc/common_audio/resampler/include \ 250 $(LOCAL_PATH)/third_party/webrtc/common_audio/signal_processing/include \ 251 $(LOCAL_PATH)/third_party/webrtc/common_audio/vad/include \ 252 $(LOCAL_PATH)/third_party/webrtc/system_wrappers/interface \ 253 $(PWD)/frameworks/wilhelm/include \ 254 $(PWD)/bionic \ 255 $(PWD)/external/stlport/stlport 256 257 258 # Flags passed to only C++ (and not C) files. 259 LOCAL_CPPFLAGS_Release := \ 260 -fno-rtti \ 261 -fno-threadsafe-statics \ 262 -fvisibility-inlines-hidden \ 263 -Wsign-compare \ 264 -Wno-non-virtual-dtor \ 265 -Wno-sign-promo 266 267 268 LOCAL_FDO_SUPPORT_Release := false 269 270 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 271 LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION)) 272 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 273 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 274 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 275 ### Rules for final target. 276 277 LOCAL_LDFLAGS_Debug := \ 278 -Wl,-z,now \ 279 -Wl,-z,relro \ 280 -Wl,--fatal-warnings \ 281 -Wl,-z,noexecstack \ 282 -fPIC \ 283 -nostdlib \ 284 -Wl,--no-undefined \ 285 -Wl,--exclude-libs=ALL \ 286 -Wl,--warn-shared-textrel \ 287 -Wl,-O1 \ 288 -Wl,--as-needed 289 290 291 LOCAL_LDFLAGS_Release := \ 292 -Wl,-z,now \ 293 -Wl,-z,relro \ 294 -Wl,--fatal-warnings \ 295 -Wl,-z,noexecstack \ 296 -fPIC \ 297 -nostdlib \ 298 -Wl,--no-undefined \ 299 -Wl,--exclude-libs=ALL \ 300 -Wl,-O1 \ 301 -Wl,--as-needed \ 302 -Wl,--gc-sections \ 303 -Wl,--warn-shared-textrel 304 305 306 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 307 308 LOCAL_STATIC_LIBRARIES := 309 310 # Enable grouping to fix circular references 311 LOCAL_GROUP_STATIC_LIBRARIES := true 312 313 LOCAL_SHARED_LIBRARIES := \ 314 libstlport \ 315 libdl 316 317 # Add target alias to "gyp_all_modules" target. 318 .PHONY: gyp_all_modules 319 gyp_all_modules: third_party_webrtc_modules_webrtc_utility_gyp 320 321 # Alias gyp target name. 322 .PHONY: webrtc_utility 323 webrtc_utility: third_party_webrtc_modules_webrtc_utility_gyp 324 325 include $(BUILD_STATIC_LIBRARY) 326