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_TAGS := optional 9 gyp_intermediate_dir := $(call local-intermediates-dir) 10 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared) 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/audio/shared_memory_util.cc \ 28 media/base/audio_bus.cc \ 29 media/base/channel_layout.cc \ 30 media/base/vector_math.cc 31 32 33 # Flags passed to both C and C++ files. 34 MY_CFLAGS_Debug := \ 35 --param=ssp-buffer-size=4 \ 36 -Werror \ 37 -fno-exceptions \ 38 -fno-strict-aliasing \ 39 -Wall \ 40 -Wno-unused-parameter \ 41 -Wno-missing-field-initializers \ 42 -fvisibility=hidden \ 43 -pipe \ 44 -fPIC \ 45 -m32 \ 46 -mmmx \ 47 -march=pentium4 \ 48 -msse2 \ 49 -mfpmath=sse \ 50 -fuse-ld=gold \ 51 -ffunction-sections \ 52 -funwind-tables \ 53 -g \ 54 -fno-short-enums \ 55 -finline-limit=64 \ 56 -Wa,--noexecstack \ 57 -U_FORTIFY_SOURCE \ 58 -Wno-extra \ 59 -Wno-ignored-qualifiers \ 60 -Wno-type-limits \ 61 -fno-stack-protector \ 62 -Os \ 63 -g \ 64 -fomit-frame-pointer \ 65 -fdata-sections \ 66 -ffunction-sections 67 68 MY_DEFS_Debug := \ 69 '-DANGLE_DX11' \ 70 '-D_FILE_OFFSET_BITS=64' \ 71 '-DNO_TCMALLOC' \ 72 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 73 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 74 '-DDISABLE_NACL' \ 75 '-DCHROMIUM_BUILD' \ 76 '-DUSE_LIBJPEG_TURBO=1' \ 77 '-DUSE_PROPRIETARY_CODECS' \ 78 '-DENABLE_CONFIGURATION_POLICY' \ 79 '-DLOGGING_IS_OFFICIAL_BUILD=1' \ 80 '-DTRACING_IS_OFFICIAL_BUILD=1' \ 81 '-DENABLE_GPU=1' \ 82 '-DUSE_OPENSSL=1' \ 83 '-DENABLE_EGLIMAGE=1' \ 84 '-DENABLE_PRINTING=1' \ 85 '-DMEDIA_IMPLEMENTATION' \ 86 '-D__STDC_CONSTANT_MACROS' \ 87 '-D__STDC_FORMAT_MACROS' \ 88 '-DANDROID' \ 89 '-D__GNU_SOURCE=1' \ 90 '-DUSE_STLPORT=1' \ 91 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 92 '-DCHROME_BUILD_ID=""' \ 93 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 94 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 95 '-D_DEBUG' 96 97 98 # Include paths placed before CFLAGS/CPPFLAGS 99 LOCAL_C_INCLUDES_Debug := \ 100 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 101 $(LOCAL_PATH) \ 102 $(PWD)/frameworks/wilhelm/include \ 103 $(PWD)/bionic \ 104 $(PWD)/external/stlport/stlport 105 106 107 # Flags passed to only C++ (and not C) files. 108 LOCAL_CPPFLAGS_Debug := \ 109 -fno-rtti \ 110 -fno-threadsafe-statics \ 111 -fvisibility-inlines-hidden \ 112 -Wsign-compare \ 113 -Wno-error=c++0x-compat \ 114 -Wno-non-virtual-dtor \ 115 -Wno-sign-promo 116 117 118 # Flags passed to both C and C++ files. 119 MY_CFLAGS_Release := \ 120 --param=ssp-buffer-size=4 \ 121 -Werror \ 122 -fno-exceptions \ 123 -fno-strict-aliasing \ 124 -Wall \ 125 -Wno-unused-parameter \ 126 -Wno-missing-field-initializers \ 127 -fvisibility=hidden \ 128 -pipe \ 129 -fPIC \ 130 -m32 \ 131 -mmmx \ 132 -march=pentium4 \ 133 -msse2 \ 134 -mfpmath=sse \ 135 -fuse-ld=gold \ 136 -ffunction-sections \ 137 -funwind-tables \ 138 -g \ 139 -fno-short-enums \ 140 -finline-limit=64 \ 141 -Wa,--noexecstack \ 142 -U_FORTIFY_SOURCE \ 143 -Wno-extra \ 144 -Wno-ignored-qualifiers \ 145 -Wno-type-limits \ 146 -fno-stack-protector \ 147 -Os \ 148 -fno-ident \ 149 -fdata-sections \ 150 -ffunction-sections \ 151 -fomit-frame-pointer \ 152 -fno-unwind-tables \ 153 -fno-asynchronous-unwind-tables 154 155 MY_DEFS_Release := \ 156 '-DANGLE_DX11' \ 157 '-D_FILE_OFFSET_BITS=64' \ 158 '-DNO_TCMALLOC' \ 159 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 160 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 161 '-DDISABLE_NACL' \ 162 '-DCHROMIUM_BUILD' \ 163 '-DUSE_LIBJPEG_TURBO=1' \ 164 '-DUSE_PROPRIETARY_CODECS' \ 165 '-DENABLE_CONFIGURATION_POLICY' \ 166 '-DLOGGING_IS_OFFICIAL_BUILD=1' \ 167 '-DTRACING_IS_OFFICIAL_BUILD=1' \ 168 '-DENABLE_GPU=1' \ 169 '-DUSE_OPENSSL=1' \ 170 '-DENABLE_EGLIMAGE=1' \ 171 '-DENABLE_PRINTING=1' \ 172 '-DMEDIA_IMPLEMENTATION' \ 173 '-D__STDC_CONSTANT_MACROS' \ 174 '-D__STDC_FORMAT_MACROS' \ 175 '-DANDROID' \ 176 '-D__GNU_SOURCE=1' \ 177 '-DUSE_STLPORT=1' \ 178 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 179 '-DCHROME_BUILD_ID=""' \ 180 '-DNDEBUG' \ 181 '-DNVALGRIND' \ 182 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 183 '-D_FORTIFY_SOURCE=2' 184 185 186 # Include paths placed before CFLAGS/CPPFLAGS 187 LOCAL_C_INCLUDES_Release := \ 188 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 189 $(LOCAL_PATH) \ 190 $(PWD)/frameworks/wilhelm/include \ 191 $(PWD)/bionic \ 192 $(PWD)/external/stlport/stlport 193 194 195 # Flags passed to only C++ (and not C) files. 196 LOCAL_CPPFLAGS_Release := \ 197 -fno-rtti \ 198 -fno-threadsafe-statics \ 199 -fvisibility-inlines-hidden \ 200 -Wsign-compare \ 201 -Wno-error=c++0x-compat \ 202 -Wno-non-virtual-dtor \ 203 -Wno-sign-promo 204 205 206 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 207 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 208 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 209 ### Rules for final target. 210 211 LOCAL_LDFLAGS_Debug := \ 212 -Wl,-z,now \ 213 -Wl,-z,relro \ 214 -Wl,-z,noexecstack \ 215 -fPIC \ 216 -m32 \ 217 -fuse-ld=gold \ 218 -nostdlib \ 219 -Wl,--no-undefined \ 220 -Wl,--exclude-libs=ALL \ 221 -Wl,--fatal-warnings \ 222 -Wl,--gc-sections \ 223 -Wl,--warn-shared-textrel \ 224 -Wl,-O1 \ 225 -Wl,--as-needed 226 227 228 LOCAL_LDFLAGS_Release := \ 229 -Wl,-z,now \ 230 -Wl,-z,relro \ 231 -Wl,-z,noexecstack \ 232 -fPIC \ 233 -m32 \ 234 -fuse-ld=gold \ 235 -nostdlib \ 236 -Wl,--no-undefined \ 237 -Wl,--exclude-libs=ALL \ 238 -Wl,-O1 \ 239 -Wl,--as-needed \ 240 -Wl,--gc-sections \ 241 -Wl,--fatal-warnings \ 242 -Wl,--warn-shared-textrel 243 244 245 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 246 247 LOCAL_STATIC_LIBRARIES := 248 249 # Enable grouping to fix circular references 250 LOCAL_GROUP_STATIC_LIBRARIES := true 251 252 LOCAL_SHARED_LIBRARIES := \ 253 libstlport \ 254 libdl 255 256 # Add target alias to "gyp_all_modules" target. 257 .PHONY: gyp_all_modules 258 gyp_all_modules: media_shared_memory_support_gyp 259 260 # Alias gyp target name. 261 .PHONY: shared_memory_support 262 shared_memory_support: media_shared_memory_support_gyp 263 264 include $(BUILD_STATIC_LIBRARY) 265