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_PCM16B_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_GENERATED_SOURCES := 22 23 GYP_COPIED_SOURCE_ORIGIN_DIRS := 24 25 LOCAL_SRC_FILES := \ 26 third_party/webrtc/modules/audio_coding/codecs/pcm16b/pcm16b.c 27 28 29 # Flags passed to both C and C++ files. 30 MY_CFLAGS_Debug := \ 31 --param=ssp-buffer-size=4 \ 32 -Werror \ 33 -fno-exceptions \ 34 -fno-strict-aliasing \ 35 -Wall \ 36 -Wno-unused-parameter \ 37 -Wno-missing-field-initializers \ 38 -fvisibility=hidden \ 39 -pipe \ 40 -fPIC \ 41 -Wno-unused-local-typedefs \ 42 -fno-builtin-cos \ 43 -fno-builtin-sin \ 44 -fno-builtin-cosf \ 45 -fno-builtin-sinf \ 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 -fno-short-enums \ 54 -finline-limit=64 \ 55 -Wa,--noexecstack \ 56 -U_FORTIFY_SOURCE \ 57 -Wno-extra \ 58 -Wno-ignored-qualifiers \ 59 -Wno-type-limits \ 60 -Wno-unused-but-set-variable \ 61 -Os \ 62 -g \ 63 -fdata-sections \ 64 -ffunction-sections \ 65 -funwind-tables 66 67 MY_DEFS_Debug := \ 68 '-DV8_DEPRECATION_WARNINGS' \ 69 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 70 '-D_FILE_OFFSET_BITS=64' \ 71 '-DNO_TCMALLOC' \ 72 '-DDISABLE_NACL' \ 73 '-DCHROMIUM_BUILD' \ 74 '-DUSE_LIBJPEG_TURBO=1' \ 75 '-DENABLE_WEBRTC=1' \ 76 '-DUSE_PROPRIETARY_CODECS' \ 77 '-DENABLE_BROWSER_CDMS' \ 78 '-DENABLE_CONFIGURATION_POLICY' \ 79 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 80 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 81 '-DENABLE_EGLIMAGE=1' \ 82 '-DCLD_VERSION=1' \ 83 '-DENABLE_PRINTING=1' \ 84 '-DENABLE_MANAGED_USERS=1' \ 85 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 86 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 87 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 88 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 89 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 90 '-DVIDEO_HOLE=1' \ 91 '-DWEBRTC_RESTRICT_LOGGING' \ 92 '-DWEBRTC_MODULE_UTILITY_VIDEO' \ 93 '-DWEBRTC_CHROMIUM_BUILD' \ 94 '-DLOGGING_INSIDE_WEBRTC' \ 95 '-DWEBRTC_POSIX' \ 96 '-DWEBRTC_LINUX' \ 97 '-DWEBRTC_ANDROID' \ 98 '-DWEBRTC_ANDROID_OPENSLES' \ 99 '-DUSE_OPENSSL=1' \ 100 '-DUSE_OPENSSL_CERTS=1' \ 101 '-D__STDC_CONSTANT_MACROS' \ 102 '-D__STDC_FORMAT_MACROS' \ 103 '-DANDROID' \ 104 '-D__GNU_SOURCE=1' \ 105 '-DUSE_STLPORT=1' \ 106 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 107 '-DCHROME_BUILD_ID=""' \ 108 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 109 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 110 '-D_DEBUG' 111 112 113 # Include paths placed before CFLAGS/CPPFLAGS 114 LOCAL_C_INCLUDES_Debug := \ 115 $(gyp_shared_intermediate_dir) \ 116 $(LOCAL_PATH) \ 117 $(LOCAL_PATH)/third_party/webrtc/overrides \ 118 $(LOCAL_PATH)/third_party \ 119 $(LOCAL_PATH)/third_party/webrtc/modules/audio_coding/codecs/pcm16b/include \ 120 $(LOCAL_PATH)/third_party/webrtc \ 121 $(PWD)/frameworks/wilhelm/include \ 122 $(PWD)/bionic \ 123 $(PWD)/external/stlport/stlport 124 125 126 # Flags passed to only C++ (and not C) files. 127 LOCAL_CPPFLAGS_Debug := \ 128 -fno-rtti \ 129 -fno-threadsafe-statics \ 130 -fvisibility-inlines-hidden \ 131 -Wsign-compare \ 132 -Wno-non-virtual-dtor \ 133 -Wno-sign-promo 134 135 136 LOCAL_FDO_SUPPORT_Debug := false 137 138 # Flags passed to both C and C++ files. 139 MY_CFLAGS_Release := \ 140 --param=ssp-buffer-size=4 \ 141 -Werror \ 142 -fno-exceptions \ 143 -fno-strict-aliasing \ 144 -Wall \ 145 -Wno-unused-parameter \ 146 -Wno-missing-field-initializers \ 147 -fvisibility=hidden \ 148 -pipe \ 149 -fPIC \ 150 -Wno-unused-local-typedefs \ 151 -fno-builtin-cos \ 152 -fno-builtin-sin \ 153 -fno-builtin-cosf \ 154 -fno-builtin-sinf \ 155 -fno-builtin-cos \ 156 -fno-builtin-sin \ 157 -fno-builtin-cosf \ 158 -fno-builtin-sinf \ 159 -ffunction-sections \ 160 -funwind-tables \ 161 -g \ 162 -fno-short-enums \ 163 -finline-limit=64 \ 164 -Wa,--noexecstack \ 165 -U_FORTIFY_SOURCE \ 166 -Wno-extra \ 167 -Wno-ignored-qualifiers \ 168 -Wno-type-limits \ 169 -Wno-unused-but-set-variable \ 170 -Os \ 171 -fno-ident \ 172 -fdata-sections \ 173 -ffunction-sections \ 174 -funwind-tables 175 176 MY_DEFS_Release := \ 177 '-DV8_DEPRECATION_WARNINGS' \ 178 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 179 '-D_FILE_OFFSET_BITS=64' \ 180 '-DNO_TCMALLOC' \ 181 '-DDISABLE_NACL' \ 182 '-DCHROMIUM_BUILD' \ 183 '-DUSE_LIBJPEG_TURBO=1' \ 184 '-DENABLE_WEBRTC=1' \ 185 '-DUSE_PROPRIETARY_CODECS' \ 186 '-DENABLE_BROWSER_CDMS' \ 187 '-DENABLE_CONFIGURATION_POLICY' \ 188 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 189 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 190 '-DENABLE_EGLIMAGE=1' \ 191 '-DCLD_VERSION=1' \ 192 '-DENABLE_PRINTING=1' \ 193 '-DENABLE_MANAGED_USERS=1' \ 194 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 195 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 196 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 197 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 198 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 199 '-DVIDEO_HOLE=1' \ 200 '-DWEBRTC_RESTRICT_LOGGING' \ 201 '-DWEBRTC_MODULE_UTILITY_VIDEO' \ 202 '-DWEBRTC_CHROMIUM_BUILD' \ 203 '-DLOGGING_INSIDE_WEBRTC' \ 204 '-DWEBRTC_POSIX' \ 205 '-DWEBRTC_LINUX' \ 206 '-DWEBRTC_ANDROID' \ 207 '-DWEBRTC_ANDROID_OPENSLES' \ 208 '-DUSE_OPENSSL=1' \ 209 '-DUSE_OPENSSL_CERTS=1' \ 210 '-D__STDC_CONSTANT_MACROS' \ 211 '-D__STDC_FORMAT_MACROS' \ 212 '-DANDROID' \ 213 '-D__GNU_SOURCE=1' \ 214 '-DUSE_STLPORT=1' \ 215 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 216 '-DCHROME_BUILD_ID=""' \ 217 '-DNDEBUG' \ 218 '-DNVALGRIND' \ 219 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 220 '-D_FORTIFY_SOURCE=2' 221 222 223 # Include paths placed before CFLAGS/CPPFLAGS 224 LOCAL_C_INCLUDES_Release := \ 225 $(gyp_shared_intermediate_dir) \ 226 $(LOCAL_PATH) \ 227 $(LOCAL_PATH)/third_party/webrtc/overrides \ 228 $(LOCAL_PATH)/third_party \ 229 $(LOCAL_PATH)/third_party/webrtc/modules/audio_coding/codecs/pcm16b/include \ 230 $(LOCAL_PATH)/third_party/webrtc \ 231 $(PWD)/frameworks/wilhelm/include \ 232 $(PWD)/bionic \ 233 $(PWD)/external/stlport/stlport 234 235 236 # Flags passed to only C++ (and not C) files. 237 LOCAL_CPPFLAGS_Release := \ 238 -fno-rtti \ 239 -fno-threadsafe-statics \ 240 -fvisibility-inlines-hidden \ 241 -Wsign-compare \ 242 -Wno-non-virtual-dtor \ 243 -Wno-sign-promo 244 245 246 LOCAL_FDO_SUPPORT_Release := false 247 248 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 249 LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION)) 250 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 251 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 252 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 253 ### Rules for final target. 254 255 LOCAL_LDFLAGS_Debug := \ 256 -Wl,-z,now \ 257 -Wl,-z,relro \ 258 -Wl,--fatal-warnings \ 259 -Wl,-z,noexecstack \ 260 -fPIC \ 261 -nostdlib \ 262 -Wl,--no-undefined \ 263 -Wl,--exclude-libs=ALL \ 264 -Wl,--warn-shared-textrel \ 265 -Wl,-O1 \ 266 -Wl,--as-needed 267 268 269 LOCAL_LDFLAGS_Release := \ 270 -Wl,-z,now \ 271 -Wl,-z,relro \ 272 -Wl,--fatal-warnings \ 273 -Wl,-z,noexecstack \ 274 -fPIC \ 275 -nostdlib \ 276 -Wl,--no-undefined \ 277 -Wl,--exclude-libs=ALL \ 278 -Wl,-O1 \ 279 -Wl,--as-needed \ 280 -Wl,--gc-sections \ 281 -Wl,--warn-shared-textrel 282 283 284 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 285 286 LOCAL_STATIC_LIBRARIES := 287 288 # Enable grouping to fix circular references 289 LOCAL_GROUP_STATIC_LIBRARIES := true 290 291 LOCAL_SHARED_LIBRARIES := \ 292 libstlport \ 293 libdl 294 295 # Add target alias to "gyp_all_modules" target. 296 .PHONY: gyp_all_modules 297 gyp_all_modules: third_party_webrtc_modules_PCM16B_gyp 298 299 # Alias gyp target name. 300 .PHONY: PCM16B 301 PCM16B: third_party_webrtc_modules_PCM16B_gyp 302 303 include $(BUILD_STATIC_LIBRARY) 304