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 := mojo_mojo_common_lib_gyp 7 LOCAL_MODULE_SUFFIX := .a 8 LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 9 gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 10 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 11 12 # Make sure our deps are built first. 13 GYP_TARGET_DEPENDENCIES := \ 14 $(call intermediates-dir-for,GYP,mojo_mojo_none_gyp,,,$(GYP_VAR_PREFIX))/mojo_none.stamp 15 16 GYP_GENERATED_OUTPUTS := 17 18 # Make sure our deps and generated files are built first. 19 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 20 21 LOCAL_CPP_EXTENSION := .cc 22 LOCAL_GENERATED_SOURCES := 23 24 GYP_COPIED_SOURCE_ORIGIN_DIRS := 25 26 LOCAL_SRC_FILES := \ 27 mojo/common/common_type_converters.cc \ 28 mojo/common/data_pipe_utils.cc \ 29 mojo/common/handle_watcher.cc \ 30 mojo/common/message_pump_mojo.cc \ 31 mojo/common/time_helper.cc 32 33 34 # Flags passed to both C and C++ files. 35 MY_CFLAGS_Debug := \ 36 --param=ssp-buffer-size=4 \ 37 -Werror \ 38 -fno-strict-aliasing \ 39 -Wall \ 40 -Wno-unused-parameter \ 41 -Wno-missing-field-initializers \ 42 -fvisibility=hidden \ 43 -pipe \ 44 -fPIC \ 45 -Wno-unused-local-typedefs \ 46 -msse2 \ 47 -mfpmath=sse \ 48 -mmmx \ 49 -m32 \ 50 -ffunction-sections \ 51 -funwind-tables \ 52 -g \ 53 -fno-short-enums \ 54 -finline-limit=64 \ 55 -Wa,--noexecstack \ 56 -U_FORTIFY_SOURCE \ 57 -Wno-extra \ 58 -Wno-ignored-qualifiers \ 59 -Wno-type-limits \ 60 -Wno-unused-but-set-variable \ 61 -fno-stack-protector \ 62 -Os \ 63 -g \ 64 -gdwarf-4 \ 65 -fdata-sections \ 66 -ffunction-sections \ 67 -fomit-frame-pointer \ 68 -funwind-tables 69 70 MY_DEFS_Debug := \ 71 '-DV8_DEPRECATION_WARNINGS' \ 72 '-D_FILE_OFFSET_BITS=64' \ 73 '-DNO_TCMALLOC' \ 74 '-DDISABLE_NACL' \ 75 '-DCHROMIUM_BUILD' \ 76 '-DUSE_LIBJPEG_TURBO=1' \ 77 '-DENABLE_WEBRTC=1' \ 78 '-DUSE_PROPRIETARY_CODECS' \ 79 '-DENABLE_BROWSER_CDMS' \ 80 '-DENABLE_CONFIGURATION_POLICY' \ 81 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 82 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 83 '-DENABLE_EGLIMAGE=1' \ 84 '-DCLD_VERSION=1' \ 85 '-DENABLE_PRINTING=1' \ 86 '-DENABLE_MANAGED_USERS=1' \ 87 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 88 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 89 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 90 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 91 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 92 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 93 '-DVIDEO_HOLE=1' \ 94 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 95 '-DMOJO_COMMON_IMPLEMENTATION' \ 96 '-DUSE_OPENSSL=1' \ 97 '-DUSE_OPENSSL_CERTS=1' \ 98 '-D__STDC_CONSTANT_MACROS' \ 99 '-D__STDC_FORMAT_MACROS' \ 100 '-DANDROID' \ 101 '-D__GNU_SOURCE=1' \ 102 '-DUSE_STLPORT=1' \ 103 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 104 '-DCHROME_BUILD_ID=""' \ 105 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 106 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 107 '-D_DEBUG' 108 109 110 # Include paths placed before CFLAGS/CPPFLAGS 111 LOCAL_C_INCLUDES_Debug := \ 112 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 113 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 114 $(gyp_shared_intermediate_dir) \ 115 $(LOCAL_PATH) \ 116 $(PWD)/frameworks/wilhelm/include \ 117 $(PWD)/bionic \ 118 $(PWD)/external/stlport/stlport 119 120 121 # Flags passed to only C++ (and not C) files. 122 LOCAL_CPPFLAGS_Debug := \ 123 -fno-exceptions \ 124 -fno-rtti \ 125 -fno-threadsafe-statics \ 126 -fvisibility-inlines-hidden \ 127 -Wsign-compare \ 128 -std=gnu++11 \ 129 -Wno-narrowing \ 130 -Wno-literal-suffix \ 131 -Wno-non-virtual-dtor \ 132 -Wno-sign-promo 133 134 135 # Flags passed to both C and C++ files. 136 MY_CFLAGS_Release := \ 137 --param=ssp-buffer-size=4 \ 138 -Werror \ 139 -fno-strict-aliasing \ 140 -Wall \ 141 -Wno-unused-parameter \ 142 -Wno-missing-field-initializers \ 143 -fvisibility=hidden \ 144 -pipe \ 145 -fPIC \ 146 -Wno-unused-local-typedefs \ 147 -msse2 \ 148 -mfpmath=sse \ 149 -mmmx \ 150 -m32 \ 151 -ffunction-sections \ 152 -funwind-tables \ 153 -g \ 154 -fno-short-enums \ 155 -finline-limit=64 \ 156 -Wa,--noexecstack \ 157 -U_FORTIFY_SOURCE \ 158 -Wno-extra \ 159 -Wno-ignored-qualifiers \ 160 -Wno-type-limits \ 161 -Wno-unused-but-set-variable \ 162 -fno-stack-protector \ 163 -Os \ 164 -fno-ident \ 165 -fdata-sections \ 166 -ffunction-sections \ 167 -fomit-frame-pointer \ 168 -funwind-tables 169 170 MY_DEFS_Release := \ 171 '-DV8_DEPRECATION_WARNINGS' \ 172 '-D_FILE_OFFSET_BITS=64' \ 173 '-DNO_TCMALLOC' \ 174 '-DDISABLE_NACL' \ 175 '-DCHROMIUM_BUILD' \ 176 '-DUSE_LIBJPEG_TURBO=1' \ 177 '-DENABLE_WEBRTC=1' \ 178 '-DUSE_PROPRIETARY_CODECS' \ 179 '-DENABLE_BROWSER_CDMS' \ 180 '-DENABLE_CONFIGURATION_POLICY' \ 181 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 182 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 183 '-DENABLE_EGLIMAGE=1' \ 184 '-DCLD_VERSION=1' \ 185 '-DENABLE_PRINTING=1' \ 186 '-DENABLE_MANAGED_USERS=1' \ 187 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 188 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 189 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 190 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 191 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 192 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 193 '-DVIDEO_HOLE=1' \ 194 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 195 '-DMOJO_COMMON_IMPLEMENTATION' \ 196 '-DUSE_OPENSSL=1' \ 197 '-DUSE_OPENSSL_CERTS=1' \ 198 '-D__STDC_CONSTANT_MACROS' \ 199 '-D__STDC_FORMAT_MACROS' \ 200 '-DANDROID' \ 201 '-D__GNU_SOURCE=1' \ 202 '-DUSE_STLPORT=1' \ 203 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 204 '-DCHROME_BUILD_ID=""' \ 205 '-DNDEBUG' \ 206 '-DNVALGRIND' \ 207 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 208 '-D_FORTIFY_SOURCE=2' 209 210 211 # Include paths placed before CFLAGS/CPPFLAGS 212 LOCAL_C_INCLUDES_Release := \ 213 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 214 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 215 $(gyp_shared_intermediate_dir) \ 216 $(LOCAL_PATH) \ 217 $(PWD)/frameworks/wilhelm/include \ 218 $(PWD)/bionic \ 219 $(PWD)/external/stlport/stlport 220 221 222 # Flags passed to only C++ (and not C) files. 223 LOCAL_CPPFLAGS_Release := \ 224 -fno-exceptions \ 225 -fno-rtti \ 226 -fno-threadsafe-statics \ 227 -fvisibility-inlines-hidden \ 228 -Wsign-compare \ 229 -std=gnu++11 \ 230 -Wno-narrowing \ 231 -Wno-literal-suffix \ 232 -Wno-non-virtual-dtor \ 233 -Wno-sign-promo 234 235 236 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 237 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 238 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 239 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 240 ### Rules for final target. 241 242 LOCAL_SHARED_LIBRARIES := \ 243 libstlport \ 244 libdl 245 246 # Add target alias to "gyp_all_modules" target. 247 .PHONY: gyp_all_modules 248 gyp_all_modules: mojo_mojo_common_lib_gyp 249 250 # Alias gyp target name. 251 .PHONY: mojo_common_lib 252 mojo_common_lib: mojo_mojo_common_lib_gyp 253 254 include $(BUILD_STATIC_LIBRARY) 255