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