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 := gin_gin_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,v8_tools_gyp_v8_gyp,,,$(GYP_VAR_PREFIX))/v8.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 gin/arguments.cc \ 28 gin/array_buffer.cc \ 29 gin/context_holder.cc \ 30 gin/converter.cc \ 31 gin/debug_impl.cc \ 32 gin/dictionary.cc \ 33 gin/function_template.cc \ 34 gin/interceptor.cc \ 35 gin/isolate_holder.cc \ 36 gin/modules/console.cc \ 37 gin/modules/file_module_provider.cc \ 38 gin/modules/module_registry.cc \ 39 gin/modules/module_runner_delegate.cc \ 40 gin/modules/timer.cc \ 41 gin/object_template_builder.cc \ 42 gin/per_context_data.cc \ 43 gin/per_isolate_data.cc \ 44 gin/runner.cc \ 45 gin/run_microtasks_observer.cc \ 46 gin/shell_runner.cc \ 47 gin/try_catch.cc \ 48 gin/v8_platform.cc \ 49 gin/wrappable.cc \ 50 gin/wrapper_info.cc 51 52 53 # Flags passed to both C and C++ files. 54 MY_CFLAGS_Debug := \ 55 -fstack-protector \ 56 --param=ssp-buffer-size=4 \ 57 -Werror \ 58 -fno-strict-aliasing \ 59 -Wall \ 60 -Wno-unused-parameter \ 61 -Wno-missing-field-initializers \ 62 -fvisibility=hidden \ 63 -pipe \ 64 -fPIC \ 65 -Wno-unused-local-typedefs \ 66 -fno-tree-sra \ 67 -fno-caller-saves \ 68 -Wno-psabi \ 69 -fno-partial-inlining \ 70 -fno-early-inlining \ 71 -fno-tree-copy-prop \ 72 -fno-tree-loop-optimize \ 73 -fno-move-loop-invariants \ 74 -ffunction-sections \ 75 -funwind-tables \ 76 -g \ 77 -fstack-protector \ 78 -fno-short-enums \ 79 -finline-limit=64 \ 80 -Wa,--noexecstack \ 81 -U_FORTIFY_SOURCE \ 82 -Wno-extra \ 83 -Wno-ignored-qualifiers \ 84 -Wno-type-limits \ 85 -Wno-unused-but-set-variable \ 86 -Os \ 87 -g \ 88 -gdwarf-4 \ 89 -fdata-sections \ 90 -ffunction-sections \ 91 -fomit-frame-pointer \ 92 -funwind-tables 93 94 MY_DEFS_Debug := \ 95 '-DV8_DEPRECATION_WARNINGS' \ 96 '-D_FILE_OFFSET_BITS=64' \ 97 '-DNO_TCMALLOC' \ 98 '-DDISABLE_NACL' \ 99 '-DCHROMIUM_BUILD' \ 100 '-DUSE_LIBJPEG_TURBO=1' \ 101 '-DENABLE_WEBRTC=1' \ 102 '-DUSE_PROPRIETARY_CODECS' \ 103 '-DENABLE_BROWSER_CDMS' \ 104 '-DENABLE_CONFIGURATION_POLICY' \ 105 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 106 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 107 '-DENABLE_EGLIMAGE=1' \ 108 '-DCLD_VERSION=1' \ 109 '-DENABLE_PRINTING=1' \ 110 '-DENABLE_MANAGED_USERS=1' \ 111 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 112 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 113 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 114 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 115 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 116 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 117 '-DVIDEO_HOLE=1' \ 118 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 119 '-DGIN_IMPLEMENTATION' \ 120 '-DUSE_OPENSSL=1' \ 121 '-DUSE_OPENSSL_CERTS=1' \ 122 '-D__STDC_CONSTANT_MACROS' \ 123 '-D__STDC_FORMAT_MACROS' \ 124 '-DANDROID' \ 125 '-D__GNU_SOURCE=1' \ 126 '-DUSE_STLPORT=1' \ 127 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 128 '-DCHROME_BUILD_ID=""' \ 129 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 130 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 131 '-D_DEBUG' 132 133 134 # Include paths placed before CFLAGS/CPPFLAGS 135 LOCAL_C_INCLUDES_Debug := \ 136 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 137 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 138 $(gyp_shared_intermediate_dir) \ 139 $(LOCAL_PATH) \ 140 $(LOCAL_PATH)/v8/include \ 141 $(PWD)/frameworks/wilhelm/include \ 142 $(PWD)/bionic \ 143 $(PWD)/external/stlport/stlport 144 145 146 # Flags passed to only C++ (and not C) files. 147 LOCAL_CPPFLAGS_Debug := \ 148 -fno-exceptions \ 149 -fno-rtti \ 150 -fno-threadsafe-statics \ 151 -fvisibility-inlines-hidden \ 152 -Wsign-compare \ 153 -Wno-abi \ 154 -std=gnu++11 \ 155 -Wno-narrowing \ 156 -Wno-literal-suffix \ 157 -Wno-non-virtual-dtor \ 158 -Wno-sign-promo 159 160 161 # Flags passed to both C and C++ files. 162 MY_CFLAGS_Release := \ 163 -fstack-protector \ 164 --param=ssp-buffer-size=4 \ 165 -Werror \ 166 -fno-strict-aliasing \ 167 -Wall \ 168 -Wno-unused-parameter \ 169 -Wno-missing-field-initializers \ 170 -fvisibility=hidden \ 171 -pipe \ 172 -fPIC \ 173 -Wno-unused-local-typedefs \ 174 -fno-tree-sra \ 175 -fno-caller-saves \ 176 -Wno-psabi \ 177 -fno-partial-inlining \ 178 -fno-early-inlining \ 179 -fno-tree-copy-prop \ 180 -fno-tree-loop-optimize \ 181 -fno-move-loop-invariants \ 182 -ffunction-sections \ 183 -funwind-tables \ 184 -g \ 185 -fstack-protector \ 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 -Os \ 195 -fno-ident \ 196 -fdata-sections \ 197 -ffunction-sections \ 198 -fomit-frame-pointer \ 199 -funwind-tables 200 201 MY_DEFS_Release := \ 202 '-DV8_DEPRECATION_WARNINGS' \ 203 '-D_FILE_OFFSET_BITS=64' \ 204 '-DNO_TCMALLOC' \ 205 '-DDISABLE_NACL' \ 206 '-DCHROMIUM_BUILD' \ 207 '-DUSE_LIBJPEG_TURBO=1' \ 208 '-DENABLE_WEBRTC=1' \ 209 '-DUSE_PROPRIETARY_CODECS' \ 210 '-DENABLE_BROWSER_CDMS' \ 211 '-DENABLE_CONFIGURATION_POLICY' \ 212 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 213 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 214 '-DENABLE_EGLIMAGE=1' \ 215 '-DCLD_VERSION=1' \ 216 '-DENABLE_PRINTING=1' \ 217 '-DENABLE_MANAGED_USERS=1' \ 218 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 219 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 220 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 221 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 222 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 223 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 224 '-DVIDEO_HOLE=1' \ 225 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 226 '-DGIN_IMPLEMENTATION' \ 227 '-DUSE_OPENSSL=1' \ 228 '-DUSE_OPENSSL_CERTS=1' \ 229 '-D__STDC_CONSTANT_MACROS' \ 230 '-D__STDC_FORMAT_MACROS' \ 231 '-DANDROID' \ 232 '-D__GNU_SOURCE=1' \ 233 '-DUSE_STLPORT=1' \ 234 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 235 '-DCHROME_BUILD_ID=""' \ 236 '-DNDEBUG' \ 237 '-DNVALGRIND' \ 238 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 239 '-D_FORTIFY_SOURCE=2' 240 241 242 # Include paths placed before CFLAGS/CPPFLAGS 243 LOCAL_C_INCLUDES_Release := \ 244 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 245 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 246 $(gyp_shared_intermediate_dir) \ 247 $(LOCAL_PATH) \ 248 $(LOCAL_PATH)/v8/include \ 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. 255 LOCAL_CPPFLAGS_Release := \ 256 -fno-exceptions \ 257 -fno-rtti \ 258 -fno-threadsafe-statics \ 259 -fvisibility-inlines-hidden \ 260 -Wsign-compare \ 261 -Wno-abi \ 262 -std=gnu++11 \ 263 -Wno-narrowing \ 264 -Wno-literal-suffix \ 265 -Wno-non-virtual-dtor \ 266 -Wno-sign-promo 267 268 269 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 270 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 271 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 272 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 273 ### Rules for final target. 274 275 LOCAL_SHARED_LIBRARIES := \ 276 libstlport \ 277 libdl 278 279 # Add target alias to "gyp_all_modules" target. 280 .PHONY: gyp_all_modules 281 gyp_all_modules: gin_gin_gyp 282 283 # Alias gyp target name. 284 .PHONY: gin 285 gin: gin_gin_gyp 286 287 include $(BUILD_STATIC_LIBRARY) 288