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 --param=ssp-buffer-size=4 \ 69 -Werror \ 70 -fno-strict-aliasing \ 71 -Wall \ 72 -Wno-unused-parameter \ 73 -Wno-missing-field-initializers \ 74 -fvisibility=hidden \ 75 -pipe \ 76 -fPIC \ 77 -Wno-unused-local-typedefs \ 78 -msse2 \ 79 -mfpmath=sse \ 80 -mmmx \ 81 -m32 \ 82 -ffunction-sections \ 83 -funwind-tables \ 84 -g \ 85 -fno-short-enums \ 86 -finline-limit=64 \ 87 -Wa,--noexecstack \ 88 -U_FORTIFY_SOURCE \ 89 -Wno-extra \ 90 -Wno-ignored-qualifiers \ 91 -Wno-type-limits \ 92 -Wno-unused-but-set-variable \ 93 -fno-stack-protector \ 94 -Os \ 95 -g \ 96 -gdwarf-4 \ 97 -fdata-sections \ 98 -ffunction-sections \ 99 -fomit-frame-pointer \ 100 -funwind-tables 101 102MY_DEFS_Debug := \ 103 '-DV8_DEPRECATION_WARNINGS' \ 104 '-D_FILE_OFFSET_BITS=64' \ 105 '-DNO_TCMALLOC' \ 106 '-DDISABLE_NACL' \ 107 '-DCHROMIUM_BUILD' \ 108 '-DUSE_LIBJPEG_TURBO=1' \ 109 '-DENABLE_WEBRTC=1' \ 110 '-DUSE_PROPRIETARY_CODECS' \ 111 '-DENABLE_BROWSER_CDMS' \ 112 '-DENABLE_CONFIGURATION_POLICY' \ 113 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 114 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 115 '-DENABLE_EGLIMAGE=1' \ 116 '-DCLD_VERSION=1' \ 117 '-DENABLE_PRINTING=1' \ 118 '-DENABLE_MANAGED_USERS=1' \ 119 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 120 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 121 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 122 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 123 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 124 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 125 '-DVIDEO_HOLE=1' \ 126 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 127 '-DMOJO_SYSTEM_IMPL_IMPLEMENTATION' \ 128 '-DMOJO_SYSTEM_IMPLEMENTATION' \ 129 '-DMOJO_USE_SYSTEM_IMPL' \ 130 '-DUSE_OPENSSL=1' \ 131 '-DUSE_OPENSSL_CERTS=1' \ 132 '-D__STDC_CONSTANT_MACROS' \ 133 '-D__STDC_FORMAT_MACROS' \ 134 '-DANDROID' \ 135 '-D__GNU_SOURCE=1' \ 136 '-DUSE_STLPORT=1' \ 137 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 138 '-DCHROME_BUILD_ID=""' \ 139 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 140 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 141 '-D_DEBUG' 142 143 144# Include paths placed before CFLAGS/CPPFLAGS 145LOCAL_C_INCLUDES_Debug := \ 146 $(gyp_shared_intermediate_dir) \ 147 $(LOCAL_PATH) \ 148 $(PWD)/frameworks/wilhelm/include \ 149 $(PWD)/bionic \ 150 $(PWD)/external/stlport/stlport 151 152 153# Flags passed to only C++ (and not C) files. 154LOCAL_CPPFLAGS_Debug := \ 155 -fno-exceptions \ 156 -fno-rtti \ 157 -fno-threadsafe-statics \ 158 -fvisibility-inlines-hidden \ 159 -Wsign-compare \ 160 -std=gnu++11 \ 161 -Wno-narrowing \ 162 -Wno-literal-suffix \ 163 -Wno-non-virtual-dtor \ 164 -Wno-sign-promo 165 166 167# Flags passed to both C and C++ files. 168MY_CFLAGS_Release := \ 169 --param=ssp-buffer-size=4 \ 170 -Werror \ 171 -fno-strict-aliasing \ 172 -Wall \ 173 -Wno-unused-parameter \ 174 -Wno-missing-field-initializers \ 175 -fvisibility=hidden \ 176 -pipe \ 177 -fPIC \ 178 -Wno-unused-local-typedefs \ 179 -msse2 \ 180 -mfpmath=sse \ 181 -mmmx \ 182 -m32 \ 183 -ffunction-sections \ 184 -funwind-tables \ 185 -g \ 186 -fno-short-enums \ 187 -finline-limit=64 \ 188 -Wa,--noexecstack \ 189 -U_FORTIFY_SOURCE \ 190 -Wno-extra \ 191 -Wno-ignored-qualifiers \ 192 -Wno-type-limits \ 193 -Wno-unused-but-set-variable \ 194 -fno-stack-protector \ 195 -Os \ 196 -fno-ident \ 197 -fdata-sections \ 198 -ffunction-sections \ 199 -fomit-frame-pointer \ 200 -funwind-tables 201 202MY_DEFS_Release := \ 203 '-DV8_DEPRECATION_WARNINGS' \ 204 '-D_FILE_OFFSET_BITS=64' \ 205 '-DNO_TCMALLOC' \ 206 '-DDISABLE_NACL' \ 207 '-DCHROMIUM_BUILD' \ 208 '-DUSE_LIBJPEG_TURBO=1' \ 209 '-DENABLE_WEBRTC=1' \ 210 '-DUSE_PROPRIETARY_CODECS' \ 211 '-DENABLE_BROWSER_CDMS' \ 212 '-DENABLE_CONFIGURATION_POLICY' \ 213 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 214 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 215 '-DENABLE_EGLIMAGE=1' \ 216 '-DCLD_VERSION=1' \ 217 '-DENABLE_PRINTING=1' \ 218 '-DENABLE_MANAGED_USERS=1' \ 219 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 220 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 221 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 222 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 223 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 224 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 225 '-DVIDEO_HOLE=1' \ 226 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 227 '-DMOJO_SYSTEM_IMPL_IMPLEMENTATION' \ 228 '-DMOJO_SYSTEM_IMPLEMENTATION' \ 229 '-DMOJO_USE_SYSTEM_IMPL' \ 230 '-DUSE_OPENSSL=1' \ 231 '-DUSE_OPENSSL_CERTS=1' \ 232 '-D__STDC_CONSTANT_MACROS' \ 233 '-D__STDC_FORMAT_MACROS' \ 234 '-DANDROID' \ 235 '-D__GNU_SOURCE=1' \ 236 '-DUSE_STLPORT=1' \ 237 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 238 '-DCHROME_BUILD_ID=""' \ 239 '-DNDEBUG' \ 240 '-DNVALGRIND' \ 241 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 242 '-D_FORTIFY_SOURCE=2' 243 244 245# Include paths placed before CFLAGS/CPPFLAGS 246LOCAL_C_INCLUDES_Release := \ 247 $(gyp_shared_intermediate_dir) \ 248 $(LOCAL_PATH) \ 249 $(PWD)/frameworks/wilhelm/include \ 250 $(PWD)/bionic \ 251 $(PWD)/external/stlport/stlport 252 253 254# Flags passed to only C++ (and not C) files. 255LOCAL_CPPFLAGS_Release := \ 256 -fno-exceptions \ 257 -fno-rtti \ 258 -fno-threadsafe-statics \ 259 -fvisibility-inlines-hidden \ 260 -Wsign-compare \ 261 -std=gnu++11 \ 262 -Wno-narrowing \ 263 -Wno-literal-suffix \ 264 -Wno-non-virtual-dtor \ 265 -Wno-sign-promo 266 267 268LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 269LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 270LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 271LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 272### Rules for final target. 273 274LOCAL_SHARED_LIBRARIES := \ 275 libstlport \ 276 libdl 277 278# Add target alias to "gyp_all_modules" target. 279.PHONY: gyp_all_modules 280gyp_all_modules: mojo_mojo_system_impl_gyp 281 282# Alias gyp target name. 283.PHONY: mojo_system_impl 284mojo_system_impl: mojo_mojo_system_impl_gyp 285 286include $(BUILD_STATIC_LIBRARY) 287