1 # This file is generated by gyp; do not edit. 2 3 include $(CLEAR_VARS) 4 5 LOCAL_MODULE_CLASS := GYP 6 LOCAL_MODULE := webkit_child_overscroller_jni_headers_gyp 7 LOCAL_MODULE_STEM := overscroller_jni_headers 8 LOCAL_MODULE_SUFFIX := .stamp 9 LOCAL_MODULE_TAGS := optional 10 LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 11 gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 12 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 13 14 # Make sure our deps are built first. 15 GYP_TARGET_DEPENDENCIES := \ 16 $(call intermediates-dir-for,GYP,build_android_android_exports_gyp,,,$(GYP_VAR_PREFIX))/android_exports.stamp 17 18 ### Rules for action "generate_jni_headers_from_jar_file": 19 $(gyp_shared_intermediate_dir)/webkit/jni/OverScroller_jni.h: gyp_local_path := $(LOCAL_PATH) 20 $(gyp_shared_intermediate_dir)/webkit/jni/OverScroller_jni.h: gyp_var_prefix := $(GYP_VAR_PREFIX) 21 $(gyp_shared_intermediate_dir)/webkit/jni/OverScroller_jni.h: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir)) 22 $(gyp_shared_intermediate_dir)/webkit/jni/OverScroller_jni.h: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir)) 23 $(gyp_shared_intermediate_dir)/webkit/jni/OverScroller_jni.h: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH)) 24 $(gyp_shared_intermediate_dir)/webkit/jni/OverScroller_jni.h: $(LOCAL_PATH)/base/android/jni_generator/jni_generator.py $(PWD)/prebuilts/sdk/18/android.jar $(GYP_TARGET_DEPENDENCIES) 25 @echo "Gyp action: Generating JNI bindings from $(PWD)/prebuilts/sdk/18/android.jar/android/widget/OverScroller.class ($@)" 26 $(hide)cd $(gyp_local_path)/webkit/child; mkdir -p $(gyp_shared_intermediate_dir)/webkit/jni; ../../base/android/jni_generator/jni_generator.py -j "$(PWD)/prebuilts/sdk/18/android.jar" --input_file android/widget/OverScroller.class --output_dir "$(gyp_shared_intermediate_dir)/webkit/jni" --includes base/android/jni_generator/jni_generator_helper.h --optimize_generation 0 --native_exports 27 28 29 30 GYP_GENERATED_OUTPUTS := \ 31 $(gyp_shared_intermediate_dir)/webkit/jni/OverScroller_jni.h 32 33 # Make sure our deps and generated files are built first. 34 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 35 36 LOCAL_GENERATED_SOURCES := \ 37 $(gyp_shared_intermediate_dir)/webkit/jni/OverScroller_jni.h 38 39 GYP_COPIED_SOURCE_ORIGIN_DIRS := 40 41 LOCAL_SRC_FILES := 42 43 44 # Flags passed to both C and C++ files. 45 MY_CFLAGS_Debug := \ 46 --param=ssp-buffer-size=4 \ 47 -Werror \ 48 -fno-exceptions \ 49 -fno-strict-aliasing \ 50 -Wall \ 51 -Wno-unused-parameter \ 52 -Wno-missing-field-initializers \ 53 -fvisibility=hidden \ 54 -pipe \ 55 -fPIC \ 56 -Wno-unused-local-typedefs \ 57 -ffunction-sections \ 58 -funwind-tables \ 59 -g \ 60 -fno-short-enums \ 61 -finline-limit=64 \ 62 -Wa,--noexecstack \ 63 -U_FORTIFY_SOURCE \ 64 -Wno-extra \ 65 -Wno-ignored-qualifiers \ 66 -Wno-type-limits \ 67 -Wno-unused-but-set-variable \ 68 -Os \ 69 -g \ 70 -fdata-sections \ 71 -ffunction-sections \ 72 -funwind-tables 73 74 MY_DEFS_Debug := \ 75 '-DV8_DEPRECATION_WARNINGS' \ 76 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 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="http://proxy-dev.googlezip.net:80/"' \ 94 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 95 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 96 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 97 '-DVIDEO_HOLE=1' \ 98 '-DUSE_OPENSSL=1' \ 99 '-DUSE_OPENSSL_CERTS=1' \ 100 '-D__STDC_CONSTANT_MACROS' \ 101 '-D__STDC_FORMAT_MACROS' \ 102 '-DANDROID' \ 103 '-D__GNU_SOURCE=1' \ 104 '-DUSE_STLPORT=1' \ 105 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 106 '-DCHROME_BUILD_ID=""' \ 107 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 108 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 109 '-D_DEBUG' 110 111 112 # Include paths placed before CFLAGS/CPPFLAGS 113 LOCAL_C_INCLUDES_Debug := \ 114 $(gyp_shared_intermediate_dir) \ 115 $(PWD)/frameworks/wilhelm/include \ 116 $(PWD)/bionic \ 117 $(PWD)/external/stlport/stlport 118 119 120 # Flags passed to only C++ (and not C) files. 121 LOCAL_CPPFLAGS_Debug := \ 122 -fno-rtti \ 123 -fno-threadsafe-statics \ 124 -fvisibility-inlines-hidden \ 125 -Wsign-compare \ 126 -Wno-non-virtual-dtor \ 127 -Wno-sign-promo 128 129 130 LOCAL_FDO_SUPPORT_Debug := false 131 132 # Flags passed to both C and C++ files. 133 MY_CFLAGS_Release := \ 134 --param=ssp-buffer-size=4 \ 135 -Werror \ 136 -fno-exceptions \ 137 -fno-strict-aliasing \ 138 -Wall \ 139 -Wno-unused-parameter \ 140 -Wno-missing-field-initializers \ 141 -fvisibility=hidden \ 142 -pipe \ 143 -fPIC \ 144 -Wno-unused-local-typedefs \ 145 -ffunction-sections \ 146 -funwind-tables \ 147 -g \ 148 -fno-short-enums \ 149 -finline-limit=64 \ 150 -Wa,--noexecstack \ 151 -U_FORTIFY_SOURCE \ 152 -Wno-extra \ 153 -Wno-ignored-qualifiers \ 154 -Wno-type-limits \ 155 -Wno-unused-but-set-variable \ 156 -Os \ 157 -fno-ident \ 158 -fdata-sections \ 159 -ffunction-sections \ 160 -funwind-tables 161 162 MY_DEFS_Release := \ 163 '-DV8_DEPRECATION_WARNINGS' \ 164 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 165 '-D_FILE_OFFSET_BITS=64' \ 166 '-DNO_TCMALLOC' \ 167 '-DDISABLE_NACL' \ 168 '-DCHROMIUM_BUILD' \ 169 '-DUSE_LIBJPEG_TURBO=1' \ 170 '-DENABLE_WEBRTC=1' \ 171 '-DUSE_PROPRIETARY_CODECS' \ 172 '-DENABLE_BROWSER_CDMS' \ 173 '-DENABLE_CONFIGURATION_POLICY' \ 174 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 175 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 176 '-DENABLE_EGLIMAGE=1' \ 177 '-DCLD_VERSION=1' \ 178 '-DENABLE_PRINTING=1' \ 179 '-DENABLE_MANAGED_USERS=1' \ 180 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 181 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 182 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 183 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 184 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 185 '-DVIDEO_HOLE=1' \ 186 '-DUSE_OPENSSL=1' \ 187 '-DUSE_OPENSSL_CERTS=1' \ 188 '-D__STDC_CONSTANT_MACROS' \ 189 '-D__STDC_FORMAT_MACROS' \ 190 '-DANDROID' \ 191 '-D__GNU_SOURCE=1' \ 192 '-DUSE_STLPORT=1' \ 193 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 194 '-DCHROME_BUILD_ID=""' \ 195 '-DNDEBUG' \ 196 '-DNVALGRIND' \ 197 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 198 '-D_FORTIFY_SOURCE=2' 199 200 201 # Include paths placed before CFLAGS/CPPFLAGS 202 LOCAL_C_INCLUDES_Release := \ 203 $(gyp_shared_intermediate_dir) \ 204 $(PWD)/frameworks/wilhelm/include \ 205 $(PWD)/bionic \ 206 $(PWD)/external/stlport/stlport 207 208 209 # Flags passed to only C++ (and not C) files. 210 LOCAL_CPPFLAGS_Release := \ 211 -fno-rtti \ 212 -fno-threadsafe-statics \ 213 -fvisibility-inlines-hidden \ 214 -Wsign-compare \ 215 -Wno-non-virtual-dtor \ 216 -Wno-sign-promo 217 218 219 LOCAL_FDO_SUPPORT_Release := false 220 221 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 222 LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION)) 223 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 224 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 225 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 226 ### Rules for final target. 227 # Add target alias to "gyp_all_modules" target. 228 .PHONY: gyp_all_modules 229 gyp_all_modules: webkit_child_overscroller_jni_headers_gyp 230 231 # Alias gyp target name. 232 .PHONY: overscroller_jni_headers 233 overscroller_jni_headers: webkit_child_overscroller_jni_headers_gyp 234 235 LOCAL_MODULE_PATH := $(PRODUCT_OUT)/gyp_stamp 236 LOCAL_UNINSTALLABLE_MODULE := true 237 LOCAL_2ND_ARCH_VAR_PREFIX := $(GYP_VAR_PREFIX) 238 239 include $(BUILD_SYSTEM)/base_rules.mk 240 241 $(LOCAL_BUILT_MODULE): $(LOCAL_ADDITIONAL_DEPENDENCIES) 242 $(hide) echo "Gyp timestamp: $@" 243 $(hide) mkdir -p $(dir $@) 244 $(hide) touch $@ 245 246 LOCAL_2ND_ARCH_VAR_PREFIX := 247