Home | History | Annotate | Download | only in ipc
      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 	-Werror \
     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 	-fno-tree-sra \
     58 	-fuse-ld=gold \
     59 	-Wno-psabi \
     60 	-ffunction-sections \
     61 	-funwind-tables \
     62 	-g \
     63 	-fstack-protector \
     64 	-fno-short-enums \
     65 	-finline-limit=64 \
     66 	-Wa,--noexecstack \
     67 	-U_FORTIFY_SOURCE \
     68 	-Wno-extra \
     69 	-Wno-ignored-qualifiers \
     70 	-Wno-type-limits \
     71 	-Os \
     72 	-g \
     73 	-fomit-frame-pointer \
     74 	-fdata-sections \
     75 	-ffunction-sections
     76 
     77 MY_DEFS_Debug := \
     78 	'-DV8_DEPRECATION_WARNINGS' \
     79 	'-D_FILE_OFFSET_BITS=64' \
     80 	'-DNO_TCMALLOC' \
     81 	'-DDISABLE_NACL' \
     82 	'-DCHROMIUM_BUILD' \
     83 	'-DUSE_LIBJPEG_TURBO=1' \
     84 	'-DUSE_PROPRIETARY_CODECS' \
     85 	'-DENABLE_CONFIGURATION_POLICY' \
     86 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
     87 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
     88 	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
     89 	'-DUSE_OPENSSL=1' \
     90 	'-DENABLE_EGLIMAGE=1' \
     91 	'-DCLD_VERSION=1' \
     92 	'-DENABLE_PRINTING=1' \
     93 	'-DENABLE_MANAGED_USERS=1' \
     94 	'-D__STDC_CONSTANT_MACROS' \
     95 	'-D__STDC_FORMAT_MACROS' \
     96 	'-DIPC_IMPLEMENTATION' \
     97 	'-DANDROID' \
     98 	'-D__GNU_SOURCE=1' \
     99 	'-DUSE_STLPORT=1' \
    100 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    101 	'-DCHROME_BUILD_ID=""' \
    102 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    103 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    104 	'-D_DEBUG'
    105 
    106 
    107 # Include paths placed before CFLAGS/CPPFLAGS
    108 LOCAL_C_INCLUDES_Debug := \
    109 	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
    110 	$(LOCAL_PATH) \
    111 	$(PWD)/frameworks/wilhelm/include \
    112 	$(PWD)/bionic \
    113 	$(PWD)/external/stlport/stlport
    114 
    115 
    116 # Flags passed to only C++ (and not C) files.
    117 LOCAL_CPPFLAGS_Debug := \
    118 	-fno-rtti \
    119 	-fno-threadsafe-statics \
    120 	-fvisibility-inlines-hidden \
    121 	-Wsign-compare \
    122 	-Wno-abi \
    123 	-Wno-error=c++0x-compat \
    124 	-Wno-non-virtual-dtor \
    125 	-Wno-sign-promo
    126 
    127 
    128 # Flags passed to both C and C++ files.
    129 MY_CFLAGS_Release := \
    130 	-fstack-protector \
    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 	-fno-tree-sra \
    142 	-fuse-ld=gold \
    143 	-Wno-psabi \
    144 	-ffunction-sections \
    145 	-funwind-tables \
    146 	-g \
    147 	-fstack-protector \
    148 	-fno-short-enums \
    149 	-finline-limit=64 \
    150 	-Wa,--noexecstack \
    151 	-U_FORTIFY_SOURCE \
    152 	-Wno-extra \
    153 	-Wno-ignored-qualifiers \
    154 	-Wno-type-limits \
    155 	-Os \
    156 	-fno-ident \
    157 	-fdata-sections \
    158 	-ffunction-sections \
    159 	-fomit-frame-pointer
    160 
    161 MY_DEFS_Release := \
    162 	'-DV8_DEPRECATION_WARNINGS' \
    163 	'-D_FILE_OFFSET_BITS=64' \
    164 	'-DNO_TCMALLOC' \
    165 	'-DDISABLE_NACL' \
    166 	'-DCHROMIUM_BUILD' \
    167 	'-DUSE_LIBJPEG_TURBO=1' \
    168 	'-DUSE_PROPRIETARY_CODECS' \
    169 	'-DENABLE_CONFIGURATION_POLICY' \
    170 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    171 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    172 	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
    173 	'-DUSE_OPENSSL=1' \
    174 	'-DENABLE_EGLIMAGE=1' \
    175 	'-DCLD_VERSION=1' \
    176 	'-DENABLE_PRINTING=1' \
    177 	'-DENABLE_MANAGED_USERS=1' \
    178 	'-D__STDC_CONSTANT_MACROS' \
    179 	'-D__STDC_FORMAT_MACROS' \
    180 	'-DIPC_IMPLEMENTATION' \
    181 	'-DANDROID' \
    182 	'-D__GNU_SOURCE=1' \
    183 	'-DUSE_STLPORT=1' \
    184 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    185 	'-DCHROME_BUILD_ID=""' \
    186 	'-DNDEBUG' \
    187 	'-DNVALGRIND' \
    188 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
    189 	'-D_FORTIFY_SOURCE=2'
    190 
    191 
    192 # Include paths placed before CFLAGS/CPPFLAGS
    193 LOCAL_C_INCLUDES_Release := \
    194 	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
    195 	$(LOCAL_PATH) \
    196 	$(PWD)/frameworks/wilhelm/include \
    197 	$(PWD)/bionic \
    198 	$(PWD)/external/stlport/stlport
    199 
    200 
    201 # Flags passed to only C++ (and not C) files.
    202 LOCAL_CPPFLAGS_Release := \
    203 	-fno-rtti \
    204 	-fno-threadsafe-statics \
    205 	-fvisibility-inlines-hidden \
    206 	-Wsign-compare \
    207 	-Wno-abi \
    208 	-Wno-error=c++0x-compat \
    209 	-Wno-non-virtual-dtor \
    210 	-Wno-sign-promo
    211 
    212 
    213 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    214 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    215 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    216 ### Rules for final target.
    217 
    218 LOCAL_LDFLAGS_Debug := \
    219 	-Wl,-z,now \
    220 	-Wl,-z,relro \
    221 	-Wl,-z,noexecstack \
    222 	-fPIC \
    223 	-Wl,-z,relro \
    224 	-Wl,-z,now \
    225 	-fuse-ld=gold \
    226 	-nostdlib \
    227 	-Wl,--no-undefined \
    228 	-Wl,--exclude-libs=ALL \
    229 	-Wl,--icf=safe \
    230 	-Wl,--fatal-warnings \
    231 	-Wl,--gc-sections \
    232 	-Wl,--warn-shared-textrel \
    233 	-Wl,-O1 \
    234 	-Wl,--as-needed
    235 
    236 
    237 LOCAL_LDFLAGS_Release := \
    238 	-Wl,-z,now \
    239 	-Wl,-z,relro \
    240 	-Wl,-z,noexecstack \
    241 	-fPIC \
    242 	-Wl,-z,relro \
    243 	-Wl,-z,now \
    244 	-fuse-ld=gold \
    245 	-nostdlib \
    246 	-Wl,--no-undefined \
    247 	-Wl,--exclude-libs=ALL \
    248 	-Wl,--icf=safe \
    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