1# This file is generated by gyp; do not edit. 2 3include $(CLEAR_VARS) 4 5LOCAL_MODULE_CLASS := STATIC_LIBRARIES 6LOCAL_MODULE := mojo_mojo_system_impl_gyp 7LOCAL_MODULE_SUFFIX := .a 8LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 9gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 11 12# Make sure our deps are built first. 13GYP_TARGET_DEPENDENCIES := 14 15GYP_GENERATED_OUTPUTS := 16 17# Make sure our deps and generated files are built first. 18LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 19 20LOCAL_CPP_EXTENSION := .cc 21LOCAL_GENERATED_SOURCES := 22 23GYP_COPIED_SOURCE_ORIGIN_DIRS := 24 25LOCAL_SRC_FILES := \ 26 mojo/embedder/channel_init.cc \ 27 mojo/embedder/embedder.cc \ 28 mojo/embedder/platform_channel_pair.cc \ 29 mojo/embedder/platform_channel_pair_posix.cc \ 30 mojo/embedder/platform_channel_utils_posix.cc \ 31 mojo/embedder/platform_handle.cc \ 32 mojo/embedder/platform_handle_utils_posix.cc \ 33 mojo/embedder/simple_platform_shared_buffer.cc \ 34 mojo/embedder/simple_platform_shared_buffer_posix.cc \ 35 mojo/embedder/simple_platform_support.cc \ 36 mojo/system/channel.cc \ 37 mojo/system/channel_endpoint.cc \ 38 mojo/system/core.cc \ 39 mojo/system/data_pipe.cc \ 40 mojo/system/data_pipe_consumer_dispatcher.cc \ 41 mojo/system/data_pipe_producer_dispatcher.cc \ 42 mojo/system/dispatcher.cc \ 43 mojo/system/entrypoints.cc \ 44 mojo/system/handle_table.cc \ 45 mojo/system/local_data_pipe.cc \ 46 mojo/system/local_message_pipe_endpoint.cc \ 47 mojo/system/mapping_table.cc \ 48 mojo/system/memory.cc \ 49 mojo/system/message_in_transit.cc \ 50 mojo/system/message_in_transit_queue.cc \ 51 mojo/system/message_pipe.cc \ 52 mojo/system/message_pipe_dispatcher.cc \ 53 mojo/system/message_pipe_endpoint.cc \ 54 mojo/system/platform_handle_dispatcher.cc \ 55 mojo/system/proxy_message_pipe_endpoint.cc \ 56 mojo/system/raw_channel.cc \ 57 mojo/system/raw_channel_posix.cc \ 58 mojo/system/shared_buffer_dispatcher.cc \ 59 mojo/system/simple_dispatcher.cc \ 60 mojo/system/transport_data.cc \ 61 mojo/system/waiter.cc \ 62 mojo/system/waiter_list.cc \ 63 mojo/embedder/test_embedder.cc 64 65 66# Flags passed to both C and C++ files. 67MY_CFLAGS_Debug := \ 68 -fstack-protector \ 69 --param=ssp-buffer-size=4 \ 70 -Werror \ 71 -fno-strict-aliasing \ 72 -Wall \ 73 -Wno-unused-parameter \ 74 -Wno-missing-field-initializers \ 75 -fvisibility=hidden \ 76 -pipe \ 77 -fPIC \ 78 -Wno-unused-local-typedefs \ 79 -fno-tree-sra \ 80 -fno-caller-saves \ 81 -Wno-psabi \ 82 -fno-partial-inlining \ 83 -fno-early-inlining \ 84 -fno-tree-copy-prop \ 85 -fno-tree-loop-optimize \ 86 -fno-move-loop-invariants \ 87 -ffunction-sections \ 88 -funwind-tables \ 89 -g \ 90 -fstack-protector \ 91 -fno-short-enums \ 92 -finline-limit=64 \ 93 -Wa,--noexecstack \ 94 -U_FORTIFY_SOURCE \ 95 -Wno-extra \ 96 -Wno-ignored-qualifiers \ 97 -Wno-type-limits \ 98 -Wno-unused-but-set-variable \ 99 -Os \ 100 -g \ 101 -gdwarf-4 \ 102 -fdata-sections \ 103 -ffunction-sections \ 104 -fomit-frame-pointer \ 105 -funwind-tables 106 107MY_DEFS_Debug := \ 108 '-DV8_DEPRECATION_WARNINGS' \ 109 '-D_FILE_OFFSET_BITS=64' \ 110 '-DNO_TCMALLOC' \ 111 '-DDISABLE_NACL' \ 112 '-DCHROMIUM_BUILD' \ 113 '-DUSE_LIBJPEG_TURBO=1' \ 114 '-DENABLE_WEBRTC=1' \ 115 '-DUSE_PROPRIETARY_CODECS' \ 116 '-DENABLE_BROWSER_CDMS' \ 117 '-DENABLE_CONFIGURATION_POLICY' \ 118 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 119 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 120 '-DENABLE_EGLIMAGE=1' \ 121 '-DCLD_VERSION=1' \ 122 '-DENABLE_PRINTING=1' \ 123 '-DENABLE_MANAGED_USERS=1' \ 124 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 125 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 126 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 127 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 128 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 129 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 130 '-DVIDEO_HOLE=1' \ 131 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 132 '-DMOJO_SYSTEM_IMPL_IMPLEMENTATION' \ 133 '-DMOJO_SYSTEM_IMPLEMENTATION' \ 134 '-DMOJO_USE_SYSTEM_IMPL' \ 135 '-DUSE_OPENSSL=1' \ 136 '-DUSE_OPENSSL_CERTS=1' \ 137 '-D__STDC_CONSTANT_MACROS' \ 138 '-D__STDC_FORMAT_MACROS' \ 139 '-DANDROID' \ 140 '-D__GNU_SOURCE=1' \ 141 '-DUSE_STLPORT=1' \ 142 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 143 '-DCHROME_BUILD_ID=""' \ 144 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 145 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 146 '-D_DEBUG' 147 148 149# Include paths placed before CFLAGS/CPPFLAGS 150LOCAL_C_INCLUDES_Debug := \ 151 $(gyp_shared_intermediate_dir) \ 152 $(LOCAL_PATH) \ 153 $(PWD)/frameworks/wilhelm/include \ 154 $(PWD)/bionic \ 155 $(PWD)/external/stlport/stlport 156 157 158# Flags passed to only C++ (and not C) files. 159LOCAL_CPPFLAGS_Debug := \ 160 -fno-exceptions \ 161 -fno-rtti \ 162 -fno-threadsafe-statics \ 163 -fvisibility-inlines-hidden \ 164 -Wsign-compare \ 165 -Wno-abi \ 166 -std=gnu++11 \ 167 -Wno-narrowing \ 168 -Wno-literal-suffix \ 169 -Wno-non-virtual-dtor \ 170 -Wno-sign-promo 171 172 173# Flags passed to both C and C++ files. 174MY_CFLAGS_Release := \ 175 -fstack-protector \ 176 --param=ssp-buffer-size=4 \ 177 -Werror \ 178 -fno-strict-aliasing \ 179 -Wall \ 180 -Wno-unused-parameter \ 181 -Wno-missing-field-initializers \ 182 -fvisibility=hidden \ 183 -pipe \ 184 -fPIC \ 185 -Wno-unused-local-typedefs \ 186 -fno-tree-sra \ 187 -fno-caller-saves \ 188 -Wno-psabi \ 189 -fno-partial-inlining \ 190 -fno-early-inlining \ 191 -fno-tree-copy-prop \ 192 -fno-tree-loop-optimize \ 193 -fno-move-loop-invariants \ 194 -ffunction-sections \ 195 -funwind-tables \ 196 -g \ 197 -fstack-protector \ 198 -fno-short-enums \ 199 -finline-limit=64 \ 200 -Wa,--noexecstack \ 201 -U_FORTIFY_SOURCE \ 202 -Wno-extra \ 203 -Wno-ignored-qualifiers \ 204 -Wno-type-limits \ 205 -Wno-unused-but-set-variable \ 206 -Os \ 207 -fno-ident \ 208 -fdata-sections \ 209 -ffunction-sections \ 210 -fomit-frame-pointer \ 211 -funwind-tables 212 213MY_DEFS_Release := \ 214 '-DV8_DEPRECATION_WARNINGS' \ 215 '-D_FILE_OFFSET_BITS=64' \ 216 '-DNO_TCMALLOC' \ 217 '-DDISABLE_NACL' \ 218 '-DCHROMIUM_BUILD' \ 219 '-DUSE_LIBJPEG_TURBO=1' \ 220 '-DENABLE_WEBRTC=1' \ 221 '-DUSE_PROPRIETARY_CODECS' \ 222 '-DENABLE_BROWSER_CDMS' \ 223 '-DENABLE_CONFIGURATION_POLICY' \ 224 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 225 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 226 '-DENABLE_EGLIMAGE=1' \ 227 '-DCLD_VERSION=1' \ 228 '-DENABLE_PRINTING=1' \ 229 '-DENABLE_MANAGED_USERS=1' \ 230 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 231 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 232 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 233 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 234 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 235 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 236 '-DVIDEO_HOLE=1' \ 237 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 238 '-DMOJO_SYSTEM_IMPL_IMPLEMENTATION' \ 239 '-DMOJO_SYSTEM_IMPLEMENTATION' \ 240 '-DMOJO_USE_SYSTEM_IMPL' \ 241 '-DUSE_OPENSSL=1' \ 242 '-DUSE_OPENSSL_CERTS=1' \ 243 '-D__STDC_CONSTANT_MACROS' \ 244 '-D__STDC_FORMAT_MACROS' \ 245 '-DANDROID' \ 246 '-D__GNU_SOURCE=1' \ 247 '-DUSE_STLPORT=1' \ 248 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 249 '-DCHROME_BUILD_ID=""' \ 250 '-DNDEBUG' \ 251 '-DNVALGRIND' \ 252 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 253 '-D_FORTIFY_SOURCE=2' 254 255 256# Include paths placed before CFLAGS/CPPFLAGS 257LOCAL_C_INCLUDES_Release := \ 258 $(gyp_shared_intermediate_dir) \ 259 $(LOCAL_PATH) \ 260 $(PWD)/frameworks/wilhelm/include \ 261 $(PWD)/bionic \ 262 $(PWD)/external/stlport/stlport 263 264 265# Flags passed to only C++ (and not C) files. 266LOCAL_CPPFLAGS_Release := \ 267 -fno-exceptions \ 268 -fno-rtti \ 269 -fno-threadsafe-statics \ 270 -fvisibility-inlines-hidden \ 271 -Wsign-compare \ 272 -Wno-abi \ 273 -std=gnu++11 \ 274 -Wno-narrowing \ 275 -Wno-literal-suffix \ 276 -Wno-non-virtual-dtor \ 277 -Wno-sign-promo 278 279 280LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 281LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 282LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 283LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 284### Rules for final target. 285 286LOCAL_SHARED_LIBRARIES := \ 287 libstlport \ 288 libdl 289 290# Add target alias to "gyp_all_modules" target. 291.PHONY: gyp_all_modules 292gyp_all_modules: mojo_mojo_system_impl_gyp 293 294# Alias gyp target name. 295.PHONY: mojo_system_impl 296mojo_system_impl: mojo_mojo_system_impl_gyp 297 298include $(BUILD_STATIC_LIBRARY) 299