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