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