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 := media_shared_memory_support_gyp 7 LOCAL_MODULE_SUFFIX := .a 8 LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 9 gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 10 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 11 12 # Make sure our deps are built first. 13 GYP_TARGET_DEPENDENCIES := 14 15 GYP_GENERATED_OUTPUTS := 16 17 # Make sure our deps and generated files are built first. 18 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 19 20 LOCAL_CPP_EXTENSION := .cc 21 LOCAL_GENERATED_SOURCES := 22 23 GYP_COPIED_SOURCE_ORIGIN_DIRS := 24 25 LOCAL_SRC_FILES := \ 26 media/audio/audio_parameters.cc \ 27 media/base/audio_bus.cc \ 28 media/base/channel_layout.cc \ 29 media/base/vector_math.cc 30 31 32 # Flags passed to both C and C++ files. 33 MY_CFLAGS_Debug := \ 34 --param=ssp-buffer-size=4 \ 35 -Werror \ 36 -fno-strict-aliasing \ 37 -Wall \ 38 -Wno-unused-parameter \ 39 -Wno-missing-field-initializers \ 40 -fvisibility=hidden \ 41 -pipe \ 42 -fPIC \ 43 -Wno-unused-local-typedefs \ 44 -ffunction-sections \ 45 -funwind-tables \ 46 -g \ 47 -fno-short-enums \ 48 -finline-limit=64 \ 49 -Wa,--noexecstack \ 50 -U_FORTIFY_SOURCE \ 51 -Wno-extra \ 52 -Wno-ignored-qualifiers \ 53 -Wno-type-limits \ 54 -Wno-unused-but-set-variable \ 55 -Os \ 56 -g \ 57 -gdwarf-4 \ 58 -fdata-sections \ 59 -ffunction-sections \ 60 -funwind-tables 61 62 MY_DEFS_Debug := \ 63 '-DV8_DEPRECATION_WARNINGS' \ 64 '-D_FILE_OFFSET_BITS=64' \ 65 '-DNO_TCMALLOC' \ 66 '-DDISABLE_NACL' \ 67 '-DCHROMIUM_BUILD' \ 68 '-DUSE_LIBJPEG_TURBO=1' \ 69 '-DENABLE_WEBRTC=1' \ 70 '-DUSE_PROPRIETARY_CODECS' \ 71 '-DENABLE_BROWSER_CDMS' \ 72 '-DENABLE_CONFIGURATION_POLICY' \ 73 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 74 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 75 '-DENABLE_EGLIMAGE=1' \ 76 '-DCLD_VERSION=1' \ 77 '-DENABLE_PRINTING=1' \ 78 '-DENABLE_MANAGED_USERS=1' \ 79 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 80 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 81 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 82 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 83 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 84 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 85 '-DVIDEO_HOLE=1' \ 86 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 87 '-DMEDIA_IMPLEMENTATION' \ 88 '-DUSE_OPENSSL=1' \ 89 '-DUSE_OPENSSL_CERTS=1' \ 90 '-D__STDC_CONSTANT_MACROS' \ 91 '-D__STDC_FORMAT_MACROS' \ 92 '-DANDROID' \ 93 '-D__GNU_SOURCE=1' \ 94 '-DUSE_STLPORT=1' \ 95 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 96 '-DCHROME_BUILD_ID=""' \ 97 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 98 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 99 '-D_DEBUG' 100 101 102 # Include paths placed before CFLAGS/CPPFLAGS 103 LOCAL_C_INCLUDES_Debug := \ 104 $(gyp_shared_intermediate_dir) \ 105 $(LOCAL_PATH) \ 106 $(PWD)/frameworks/wilhelm/include \ 107 $(PWD)/bionic \ 108 $(PWD)/external/stlport/stlport 109 110 111 # Flags passed to only C++ (and not C) files. 112 LOCAL_CPPFLAGS_Debug := \ 113 -fno-exceptions \ 114 -fno-rtti \ 115 -fno-threadsafe-statics \ 116 -fvisibility-inlines-hidden \ 117 -Wsign-compare \ 118 -std=gnu++11 \ 119 -Wno-narrowing \ 120 -Wno-literal-suffix \ 121 -Wno-non-virtual-dtor \ 122 -Wno-sign-promo 123 124 125 # Flags passed to both C and C++ files. 126 MY_CFLAGS_Release := \ 127 --param=ssp-buffer-size=4 \ 128 -Werror \ 129 -fno-strict-aliasing \ 130 -Wall \ 131 -Wno-unused-parameter \ 132 -Wno-missing-field-initializers \ 133 -fvisibility=hidden \ 134 -pipe \ 135 -fPIC \ 136 -Wno-unused-local-typedefs \ 137 -ffunction-sections \ 138 -funwind-tables \ 139 -g \ 140 -fno-short-enums \ 141 -finline-limit=64 \ 142 -Wa,--noexecstack \ 143 -U_FORTIFY_SOURCE \ 144 -Wno-extra \ 145 -Wno-ignored-qualifiers \ 146 -Wno-type-limits \ 147 -Wno-unused-but-set-variable \ 148 -Os \ 149 -fno-ident \ 150 -fdata-sections \ 151 -ffunction-sections \ 152 -funwind-tables 153 154 MY_DEFS_Release := \ 155 '-DV8_DEPRECATION_WARNINGS' \ 156 '-D_FILE_OFFSET_BITS=64' \ 157 '-DNO_TCMALLOC' \ 158 '-DDISABLE_NACL' \ 159 '-DCHROMIUM_BUILD' \ 160 '-DUSE_LIBJPEG_TURBO=1' \ 161 '-DENABLE_WEBRTC=1' \ 162 '-DUSE_PROPRIETARY_CODECS' \ 163 '-DENABLE_BROWSER_CDMS' \ 164 '-DENABLE_CONFIGURATION_POLICY' \ 165 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 166 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 167 '-DENABLE_EGLIMAGE=1' \ 168 '-DCLD_VERSION=1' \ 169 '-DENABLE_PRINTING=1' \ 170 '-DENABLE_MANAGED_USERS=1' \ 171 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 172 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 173 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 174 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 175 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 176 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 177 '-DVIDEO_HOLE=1' \ 178 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 179 '-DMEDIA_IMPLEMENTATION' \ 180 '-DUSE_OPENSSL=1' \ 181 '-DUSE_OPENSSL_CERTS=1' \ 182 '-D__STDC_CONSTANT_MACROS' \ 183 '-D__STDC_FORMAT_MACROS' \ 184 '-DANDROID' \ 185 '-D__GNU_SOURCE=1' \ 186 '-DUSE_STLPORT=1' \ 187 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 188 '-DCHROME_BUILD_ID=""' \ 189 '-DNDEBUG' \ 190 '-DNVALGRIND' \ 191 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 192 '-D_FORTIFY_SOURCE=2' 193 194 195 # Include paths placed before CFLAGS/CPPFLAGS 196 LOCAL_C_INCLUDES_Release := \ 197 $(gyp_shared_intermediate_dir) \ 198 $(LOCAL_PATH) \ 199 $(PWD)/frameworks/wilhelm/include \ 200 $(PWD)/bionic \ 201 $(PWD)/external/stlport/stlport 202 203 204 # Flags passed to only C++ (and not C) files. 205 LOCAL_CPPFLAGS_Release := \ 206 -fno-exceptions \ 207 -fno-rtti \ 208 -fno-threadsafe-statics \ 209 -fvisibility-inlines-hidden \ 210 -Wsign-compare \ 211 -std=gnu++11 \ 212 -Wno-narrowing \ 213 -Wno-literal-suffix \ 214 -Wno-non-virtual-dtor \ 215 -Wno-sign-promo 216 217 218 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 219 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 220 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 221 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 222 ### Rules for final target. 223 224 LOCAL_SHARED_LIBRARIES := \ 225 libstlport \ 226 libdl 227 228 # Add target alias to "gyp_all_modules" target. 229 .PHONY: gyp_all_modules 230 gyp_all_modules: media_shared_memory_support_gyp 231 232 # Alias gyp target name. 233 .PHONY: shared_memory_support 234 shared_memory_support: media_shared_memory_support_gyp 235 236 include $(BUILD_STATIC_LIBRARY) 237