Android Chromium Automerger | c05f045 | 2014-05-30 15:29:23 +0000 | [diff] [blame] | 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_webrtc_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/video/call.cc \ |
| 28 | third_party/webrtc/video/encoded_frame_callback_adapter.cc \ |
| 29 | third_party/webrtc/video/send_statistics_proxy.cc \ |
| 30 | third_party/webrtc/video/receive_statistics_proxy.cc \ |
| 31 | third_party/webrtc/video/transport_adapter.cc \ |
| 32 | third_party/webrtc/video/video_receive_stream.cc \ |
| 33 | third_party/webrtc/video/video_send_stream.cc |
| 34 | |
| 35 | |
| 36 | # Flags passed to both C and C++ files. |
| 37 | MY_CFLAGS_Debug := \ |
| 38 | --param=ssp-buffer-size=4 \ |
| 39 | -Werror \ |
| 40 | -fno-exceptions \ |
| 41 | -fno-strict-aliasing \ |
| 42 | -Wall \ |
| 43 | -Wno-unused-parameter \ |
| 44 | -Wno-missing-field-initializers \ |
| 45 | -fvisibility=hidden \ |
| 46 | -pipe \ |
| 47 | -fPIC \ |
| 48 | -Wno-unused-local-typedefs \ |
| 49 | -fno-builtin-cos \ |
| 50 | -fno-builtin-sin \ |
| 51 | -fno-builtin-cosf \ |
| 52 | -fno-builtin-sinf \ |
| 53 | -msse2 \ |
| 54 | -mfpmath=sse \ |
| 55 | -mmmx \ |
| 56 | -m32 \ |
| 57 | -ffunction-sections \ |
| 58 | -funwind-tables \ |
| 59 | -g \ |
| 60 | -fno-short-enums \ |
| 61 | -finline-limit=64 \ |
| 62 | -Wa,--noexecstack \ |
| 63 | -U_FORTIFY_SOURCE \ |
| 64 | -Wno-extra \ |
| 65 | -Wno-ignored-qualifiers \ |
| 66 | -Wno-type-limits \ |
| 67 | -Wno-unused-but-set-variable \ |
| 68 | -fno-stack-protector \ |
| 69 | -Os \ |
| 70 | -g \ |
| 71 | -fomit-frame-pointer \ |
| 72 | -fdata-sections \ |
| 73 | -ffunction-sections \ |
| 74 | -funwind-tables |
| 75 | |
| 76 | MY_DEFS_Debug := \ |
| 77 | '-DV8_DEPRECATION_WARNINGS' \ |
| 78 | '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ |
| 79 | '-D_FILE_OFFSET_BITS=64' \ |
| 80 | '-DNO_TCMALLOC' \ |
| 81 | '-DDISABLE_NACL' \ |
| 82 | '-DCHROMIUM_BUILD' \ |
| 83 | '-DUSE_LIBJPEG_TURBO=1' \ |
| 84 | '-DENABLE_WEBRTC=1' \ |
| 85 | '-DUSE_PROPRIETARY_CODECS' \ |
Android Chromium Automerger | adda09e | 2014-06-10 23:37:15 +0000 | [diff] [blame] | 86 | '-DENABLE_BROWSER_CDMS' \ |
Android Chromium Automerger | c05f045 | 2014-05-30 15:29:23 +0000 | [diff] [blame] | 87 | '-DENABLE_CONFIGURATION_POLICY' \ |
Android Chromium Automerger | c05f045 | 2014-05-30 15:29:23 +0000 | [diff] [blame] | 88 | '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ |
| 89 | '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ |
| 90 | '-DENABLE_EGLIMAGE=1' \ |
| 91 | '-DCLD_VERSION=1' \ |
Android Chromium Automerger | 841f8c8 | 2014-06-25 15:10:10 +0000 | [diff] [blame] | 92 | '-DCLD_DATA_FROM_STATIC' \ |
Android Chromium Automerger | c05f045 | 2014-05-30 15:29:23 +0000 | [diff] [blame] | 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"' \ |
Android Chromium Automerger | ad3bcf4 | 2014-06-19 03:36:33 +0000 | [diff] [blame] | 99 | '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ |
Android Chromium Automerger | c05f045 | 2014-05-30 15:29:23 +0000 | [diff] [blame] | 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 := \ |
Android Chromium Automerger | cb4fdd1 | 2014-06-16 14:50:41 +0000 | [diff] [blame] | 125 | $(gyp_shared_intermediate_dir) \ |
Android Chromium Automerger | c05f045 | 2014-05-30 15:29:23 +0000 | [diff] [blame] | 126 | $(LOCAL_PATH) \ |
| 127 | $(LOCAL_PATH)/third_party/webrtc/overrides \ |
| 128 | $(LOCAL_PATH)/third_party \ |
| 129 | $(PWD)/frameworks/wilhelm/include \ |
| 130 | $(PWD)/bionic \ |
| 131 | $(PWD)/external/stlport/stlport |
| 132 | |
| 133 | |
| 134 | # Flags passed to only C++ (and not C) files. |
| 135 | LOCAL_CPPFLAGS_Debug := \ |
| 136 | -fno-rtti \ |
| 137 | -fno-threadsafe-statics \ |
| 138 | -fvisibility-inlines-hidden \ |
| 139 | -Wsign-compare \ |
Android Chromium Automerger | 841f8c8 | 2014-06-25 15:10:10 +0000 | [diff] [blame] | 140 | -std=gnu++11 \ |
| 141 | -Wno-narrowing \ |
| 142 | -Wno-literal-suffix \ |
Android Chromium Automerger | c05f045 | 2014-05-30 15:29:23 +0000 | [diff] [blame] | 143 | -Wno-non-virtual-dtor \ |
| 144 | -Wno-sign-promo |
| 145 | |
| 146 | |
| 147 | # Flags passed to both C and C++ files. |
| 148 | MY_CFLAGS_Release := \ |
| 149 | --param=ssp-buffer-size=4 \ |
| 150 | -Werror \ |
| 151 | -fno-exceptions \ |
| 152 | -fno-strict-aliasing \ |
| 153 | -Wall \ |
| 154 | -Wno-unused-parameter \ |
| 155 | -Wno-missing-field-initializers \ |
| 156 | -fvisibility=hidden \ |
| 157 | -pipe \ |
| 158 | -fPIC \ |
| 159 | -Wno-unused-local-typedefs \ |
| 160 | -fno-builtin-cos \ |
| 161 | -fno-builtin-sin \ |
| 162 | -fno-builtin-cosf \ |
| 163 | -fno-builtin-sinf \ |
| 164 | -msse2 \ |
| 165 | -mfpmath=sse \ |
| 166 | -mmmx \ |
| 167 | -m32 \ |
| 168 | -ffunction-sections \ |
| 169 | -funwind-tables \ |
| 170 | -g \ |
| 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 | -fno-stack-protector \ |
| 180 | -Os \ |
| 181 | -fno-ident \ |
| 182 | -fdata-sections \ |
| 183 | -ffunction-sections \ |
| 184 | -fomit-frame-pointer \ |
| 185 | -funwind-tables |
| 186 | |
| 187 | MY_DEFS_Release := \ |
| 188 | '-DV8_DEPRECATION_WARNINGS' \ |
| 189 | '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ |
| 190 | '-D_FILE_OFFSET_BITS=64' \ |
| 191 | '-DNO_TCMALLOC' \ |
| 192 | '-DDISABLE_NACL' \ |
| 193 | '-DCHROMIUM_BUILD' \ |
| 194 | '-DUSE_LIBJPEG_TURBO=1' \ |
| 195 | '-DENABLE_WEBRTC=1' \ |
| 196 | '-DUSE_PROPRIETARY_CODECS' \ |
Android Chromium Automerger | adda09e | 2014-06-10 23:37:15 +0000 | [diff] [blame] | 197 | '-DENABLE_BROWSER_CDMS' \ |
Android Chromium Automerger | c05f045 | 2014-05-30 15:29:23 +0000 | [diff] [blame] | 198 | '-DENABLE_CONFIGURATION_POLICY' \ |
Android Chromium Automerger | c05f045 | 2014-05-30 15:29:23 +0000 | [diff] [blame] | 199 | '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ |
| 200 | '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ |
| 201 | '-DENABLE_EGLIMAGE=1' \ |
| 202 | '-DCLD_VERSION=1' \ |
Android Chromium Automerger | 841f8c8 | 2014-06-25 15:10:10 +0000 | [diff] [blame] | 203 | '-DCLD_DATA_FROM_STATIC' \ |
Android Chromium Automerger | c05f045 | 2014-05-30 15:29:23 +0000 | [diff] [blame] | 204 | '-DENABLE_PRINTING=1' \ |
| 205 | '-DENABLE_MANAGED_USERS=1' \ |
| 206 | '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ |
| 207 | '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ |
| 208 | '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ |
| 209 | '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ |
Android Chromium Automerger | ad3bcf4 | 2014-06-19 03:36:33 +0000 | [diff] [blame] | 210 | '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ |
Android Chromium Automerger | c05f045 | 2014-05-30 15:29:23 +0000 | [diff] [blame] | 211 | '-DVIDEO_HOLE=1' \ |
| 212 | '-DWEBRTC_RESTRICT_LOGGING' \ |
| 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 := \ |
Android Chromium Automerger | cb4fdd1 | 2014-06-16 14:50:41 +0000 | [diff] [blame] | 237 | $(gyp_shared_intermediate_dir) \ |
Android Chromium Automerger | c05f045 | 2014-05-30 15:29:23 +0000 | [diff] [blame] | 238 | $(LOCAL_PATH) \ |
| 239 | $(LOCAL_PATH)/third_party/webrtc/overrides \ |
| 240 | $(LOCAL_PATH)/third_party \ |
| 241 | $(PWD)/frameworks/wilhelm/include \ |
| 242 | $(PWD)/bionic \ |
| 243 | $(PWD)/external/stlport/stlport |
| 244 | |
| 245 | |
| 246 | # Flags passed to only C++ (and not C) files. |
| 247 | LOCAL_CPPFLAGS_Release := \ |
| 248 | -fno-rtti \ |
| 249 | -fno-threadsafe-statics \ |
| 250 | -fvisibility-inlines-hidden \ |
| 251 | -Wsign-compare \ |
Android Chromium Automerger | 841f8c8 | 2014-06-25 15:10:10 +0000 | [diff] [blame] | 252 | -std=gnu++11 \ |
| 253 | -Wno-narrowing \ |
| 254 | -Wno-literal-suffix \ |
Android Chromium Automerger | c05f045 | 2014-05-30 15:29:23 +0000 | [diff] [blame] | 255 | -Wno-non-virtual-dtor \ |
| 256 | -Wno-sign-promo |
| 257 | |
| 258 | |
| 259 | LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) |
| 260 | LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) |
| 261 | LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) |
| 262 | LOCAL_ASFLAGS := $(LOCAL_CFLAGS) |
| 263 | ### Rules for final target. |
| 264 | |
| 265 | LOCAL_LDFLAGS_Debug := \ |
| 266 | -Wl,-z,now \ |
| 267 | -Wl,-z,relro \ |
| 268 | -Wl,--fatal-warnings \ |
| 269 | -Wl,-z,noexecstack \ |
| 270 | -fPIC \ |
| 271 | -m32 \ |
| 272 | -fuse-ld=gold \ |
| 273 | -nostdlib \ |
| 274 | -Wl,--no-undefined \ |
Android Chromium Automerger | 8097a46 | 2014-06-09 17:44:56 +0000 | [diff] [blame] | 275 | -Wl,--exclude-libs=ALL \ |
Android Chromium Automerger | c05f045 | 2014-05-30 15:29:23 +0000 | [diff] [blame] | 276 | -Wl,--warn-shared-textrel \ |
| 277 | -Wl,-O1 \ |
| 278 | -Wl,--as-needed |
| 279 | |
| 280 | |
| 281 | LOCAL_LDFLAGS_Release := \ |
| 282 | -Wl,-z,now \ |
| 283 | -Wl,-z,relro \ |
| 284 | -Wl,--fatal-warnings \ |
| 285 | -Wl,-z,noexecstack \ |
| 286 | -fPIC \ |
| 287 | -m32 \ |
| 288 | -fuse-ld=gold \ |
| 289 | -nostdlib \ |
| 290 | -Wl,--no-undefined \ |
Android Chromium Automerger | 8097a46 | 2014-06-09 17:44:56 +0000 | [diff] [blame] | 291 | -Wl,--exclude-libs=ALL \ |
Android Chromium Automerger | c05f045 | 2014-05-30 15:29:23 +0000 | [diff] [blame] | 292 | -Wl,-O1 \ |
| 293 | -Wl,--as-needed \ |
| 294 | -Wl,--gc-sections \ |
| 295 | -Wl,--warn-shared-textrel |
| 296 | |
| 297 | |
| 298 | LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) |
| 299 | |
| 300 | LOCAL_STATIC_LIBRARIES := |
| 301 | |
| 302 | # Enable grouping to fix circular references |
| 303 | LOCAL_GROUP_STATIC_LIBRARIES := true |
| 304 | |
| 305 | LOCAL_SHARED_LIBRARIES := \ |
| 306 | libstlport \ |
| 307 | libdl |
| 308 | |
| 309 | # Add target alias to "gyp_all_modules" target. |
| 310 | .PHONY: gyp_all_modules |
| 311 | gyp_all_modules: third_party_webrtc_webrtc_gyp |
| 312 | |
| 313 | # Alias gyp target name. |
| 314 | .PHONY: webrtc |
| 315 | webrtc: third_party_webrtc_webrtc_gyp |
| 316 | |
| 317 | include $(BUILD_STATIC_LIBRARY) |