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