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