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