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 -fstack-protector \ 36 --param=ssp-buffer-size=4 \ 37 -Werror \ 38 -fno-exceptions \ 39 -fno-strict-aliasing \ 40 -Wall \ 41 -Wno-unused-parameter \ 42 -Wno-missing-field-initializers \ 43 -fvisibility=hidden \ 44 -pipe \ 45 -fPIC \ 46 -fno-tree-sra \ 47 -fuse-ld=gold \ 48 -Wno-psabi \ 49 -ffunction-sections \ 50 -funwind-tables \ 51 -g \ 52 -fstack-protector \ 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 -Os \ 61 -g \ 62 -fomit-frame-pointer \ 63 -fdata-sections \ 64 -ffunction-sections 65 66 MY_DEFS_Debug := \ 67 '-DANGLE_DX11' \ 68 '-D_FILE_OFFSET_BITS=64' \ 69 '-DNO_TCMALLOC' \ 70 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 71 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 72 '-DDISABLE_NACL' \ 73 '-DCHROMIUM_BUILD' \ 74 '-DUSE_LIBJPEG_TURBO=1' \ 75 '-DUSE_PROPRIETARY_CODECS' \ 76 '-DENABLE_CONFIGURATION_POLICY' \ 77 '-DLOGGING_IS_OFFICIAL_BUILD=1' \ 78 '-DTRACING_IS_OFFICIAL_BUILD=1' \ 79 '-DENABLE_GPU=1' \ 80 '-DUSE_OPENSSL=1' \ 81 '-DENABLE_EGLIMAGE=1' \ 82 '-DENABLE_PRINTING=1' \ 83 '-DMEDIA_IMPLEMENTATION' \ 84 '-D__STDC_CONSTANT_MACROS' \ 85 '-D__STDC_FORMAT_MACROS' \ 86 '-DANDROID' \ 87 '-D__GNU_SOURCE=1' \ 88 '-DUSE_STLPORT=1' \ 89 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 90 '-DCHROME_BUILD_ID=""' \ 91 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 92 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 93 '-D_DEBUG' 94 95 96 # Include paths placed before CFLAGS/CPPFLAGS 97 LOCAL_C_INCLUDES_Debug := \ 98 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 99 $(LOCAL_PATH) \ 100 $(PWD)/frameworks/wilhelm/include \ 101 $(PWD)/bionic \ 102 $(PWD)/external/stlport/stlport 103 104 105 # Flags passed to only C++ (and not C) files. 106 LOCAL_CPPFLAGS_Debug := \ 107 -fno-rtti \ 108 -fno-threadsafe-statics \ 109 -fvisibility-inlines-hidden \ 110 -Wsign-compare \ 111 -Wno-abi \ 112 -Wno-error=c++0x-compat \ 113 -Wno-non-virtual-dtor \ 114 -Wno-sign-promo 115 116 117 # Flags passed to both C and C++ files. 118 MY_CFLAGS_Release := \ 119 -fstack-protector \ 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 -fno-tree-sra \ 131 -fuse-ld=gold \ 132 -Wno-psabi \ 133 -ffunction-sections \ 134 -funwind-tables \ 135 -g \ 136 -fstack-protector \ 137 -fno-short-enums \ 138 -finline-limit=64 \ 139 -Wa,--noexecstack \ 140 -U_FORTIFY_SOURCE \ 141 -Wno-extra \ 142 -Wno-ignored-qualifiers \ 143 -Wno-type-limits \ 144 -Os \ 145 -fno-ident \ 146 -fdata-sections \ 147 -ffunction-sections \ 148 -fomit-frame-pointer 149 150 MY_DEFS_Release := \ 151 '-DANGLE_DX11' \ 152 '-D_FILE_OFFSET_BITS=64' \ 153 '-DNO_TCMALLOC' \ 154 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 155 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 156 '-DDISABLE_NACL' \ 157 '-DCHROMIUM_BUILD' \ 158 '-DUSE_LIBJPEG_TURBO=1' \ 159 '-DUSE_PROPRIETARY_CODECS' \ 160 '-DENABLE_CONFIGURATION_POLICY' \ 161 '-DLOGGING_IS_OFFICIAL_BUILD=1' \ 162 '-DTRACING_IS_OFFICIAL_BUILD=1' \ 163 '-DENABLE_GPU=1' \ 164 '-DUSE_OPENSSL=1' \ 165 '-DENABLE_EGLIMAGE=1' \ 166 '-DENABLE_PRINTING=1' \ 167 '-DMEDIA_IMPLEMENTATION' \ 168 '-D__STDC_CONSTANT_MACROS' \ 169 '-D__STDC_FORMAT_MACROS' \ 170 '-DANDROID' \ 171 '-D__GNU_SOURCE=1' \ 172 '-DUSE_STLPORT=1' \ 173 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 174 '-DCHROME_BUILD_ID=""' \ 175 '-DNDEBUG' \ 176 '-DNVALGRIND' \ 177 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 178 '-D_FORTIFY_SOURCE=2' 179 180 181 # Include paths placed before CFLAGS/CPPFLAGS 182 LOCAL_C_INCLUDES_Release := \ 183 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 184 $(LOCAL_PATH) \ 185 $(PWD)/frameworks/wilhelm/include \ 186 $(PWD)/bionic \ 187 $(PWD)/external/stlport/stlport 188 189 190 # Flags passed to only C++ (and not C) files. 191 LOCAL_CPPFLAGS_Release := \ 192 -fno-rtti \ 193 -fno-threadsafe-statics \ 194 -fvisibility-inlines-hidden \ 195 -Wsign-compare \ 196 -Wno-abi \ 197 -Wno-error=c++0x-compat \ 198 -Wno-non-virtual-dtor \ 199 -Wno-sign-promo 200 201 202 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 203 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 204 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 205 ### Rules for final target. 206 207 LOCAL_LDFLAGS_Debug := \ 208 -Wl,-z,now \ 209 -Wl,-z,relro \ 210 -Wl,-z,noexecstack \ 211 -fPIC \ 212 -Wl,-z,relro \ 213 -Wl,-z,now \ 214 -fuse-ld=gold \ 215 -nostdlib \ 216 -Wl,--no-undefined \ 217 -Wl,--exclude-libs=ALL \ 218 -Wl,--icf=safe \ 219 -Wl,--fatal-warnings \ 220 -Wl,--gc-sections \ 221 -Wl,--warn-shared-textrel \ 222 -Wl,-O1 \ 223 -Wl,--as-needed 224 225 226 LOCAL_LDFLAGS_Release := \ 227 -Wl,-z,now \ 228 -Wl,-z,relro \ 229 -Wl,-z,noexecstack \ 230 -fPIC \ 231 -Wl,-z,relro \ 232 -Wl,-z,now \ 233 -fuse-ld=gold \ 234 -nostdlib \ 235 -Wl,--no-undefined \ 236 -Wl,--exclude-libs=ALL \ 237 -Wl,--icf=safe \ 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