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 gyp_intermediate_dir := $(call local-intermediates-dir) 11 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared) 12 13 # Make sure our deps are built first. 14 GYP_TARGET_DEPENDENCIES := 15 16 ### Rules for action "generate_jni_headers_from_jar_file": 17 $(gyp_shared_intermediate_dir)/webkit/jni/OverScroller_jni.h: gyp_local_path := $(LOCAL_PATH) 18 $(gyp_shared_intermediate_dir)/webkit/jni/OverScroller_jni.h: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir)) 19 $(gyp_shared_intermediate_dir)/webkit/jni/OverScroller_jni.h: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir)) 20 $(gyp_shared_intermediate_dir)/webkit/jni/OverScroller_jni.h: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH)) 21 $(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) 22 @echo "Gyp action: Generating JNI bindings from $(PWD)/prebuilts/sdk/18/android.jar/android/widget/OverScroller.class ($@)" 23 $(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" --optimize_generation 0 24 25 26 27 GYP_GENERATED_OUTPUTS := \ 28 $(gyp_shared_intermediate_dir)/webkit/jni/OverScroller_jni.h 29 30 # Make sure our deps and generated files are built first. 31 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 32 33 LOCAL_GENERATED_SOURCES := \ 34 $(gyp_shared_intermediate_dir)/webkit/jni/OverScroller_jni.h 35 36 GYP_COPIED_SOURCE_ORIGIN_DIRS := 37 38 LOCAL_SRC_FILES := 39 40 41 # Flags passed to both C and C++ files. 42 MY_CFLAGS_Debug := \ 43 --param=ssp-buffer-size=4 \ 44 -Werror \ 45 -fno-exceptions \ 46 -fno-strict-aliasing \ 47 -Wall \ 48 -Wno-unused-parameter \ 49 -Wno-missing-field-initializers \ 50 -fvisibility=hidden \ 51 -pipe \ 52 -fPIC \ 53 -m32 \ 54 -mmmx \ 55 -march=pentium4 \ 56 -msse2 \ 57 -mfpmath=sse \ 58 -fuse-ld=gold \ 59 -ffunction-sections \ 60 -funwind-tables \ 61 -g \ 62 -fno-short-enums \ 63 -finline-limit=64 \ 64 -Wa,--noexecstack \ 65 -U_FORTIFY_SOURCE \ 66 -Wno-extra \ 67 -Wno-ignored-qualifiers \ 68 -Wno-type-limits \ 69 -fno-stack-protector \ 70 -Os \ 71 -g \ 72 -fomit-frame-pointer \ 73 -fdata-sections \ 74 -ffunction-sections 75 76 MY_DEFS_Debug := \ 77 '-DV8_DEPRECATION_WARNINGS' \ 78 '-D_FILE_OFFSET_BITS=64' \ 79 '-DNO_TCMALLOC' \ 80 '-DDISABLE_NACL' \ 81 '-DCHROMIUM_BUILD' \ 82 '-DUSE_LIBJPEG_TURBO=1' \ 83 '-DUSE_PROPRIETARY_CODECS' \ 84 '-DENABLE_CONFIGURATION_POLICY' \ 85 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 86 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 87 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 88 '-DUSE_OPENSSL=1' \ 89 '-DENABLE_EGLIMAGE=1' \ 90 '-DCLD_VERSION=1' \ 91 '-DENABLE_PRINTING=1' \ 92 '-DENABLE_MANAGED_USERS=1' \ 93 '-D__STDC_CONSTANT_MACROS' \ 94 '-D__STDC_FORMAT_MACROS' \ 95 '-DANDROID' \ 96 '-D__GNU_SOURCE=1' \ 97 '-DUSE_STLPORT=1' \ 98 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 99 '-DCHROME_BUILD_ID=""' \ 100 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 101 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 102 '-D_DEBUG' 103 104 105 # Include paths placed before CFLAGS/CPPFLAGS 106 LOCAL_C_INCLUDES_Debug := \ 107 $(PWD)/frameworks/wilhelm/include \ 108 $(PWD)/bionic \ 109 $(PWD)/external/stlport/stlport 110 111 112 # Flags passed to only C++ (and not C) files. 113 LOCAL_CPPFLAGS_Debug := \ 114 -fno-rtti \ 115 -fno-threadsafe-statics \ 116 -fvisibility-inlines-hidden \ 117 -Wsign-compare \ 118 -Wno-error=c++0x-compat \ 119 -Wno-non-virtual-dtor \ 120 -Wno-sign-promo 121 122 123 # Flags passed to both C and C++ files. 124 MY_CFLAGS_Release := \ 125 --param=ssp-buffer-size=4 \ 126 -Werror \ 127 -fno-exceptions \ 128 -fno-strict-aliasing \ 129 -Wall \ 130 -Wno-unused-parameter \ 131 -Wno-missing-field-initializers \ 132 -fvisibility=hidden \ 133 -pipe \ 134 -fPIC \ 135 -m32 \ 136 -mmmx \ 137 -march=pentium4 \ 138 -msse2 \ 139 -mfpmath=sse \ 140 -fuse-ld=gold \ 141 -ffunction-sections \ 142 -funwind-tables \ 143 -g \ 144 -fno-short-enums \ 145 -finline-limit=64 \ 146 -Wa,--noexecstack \ 147 -U_FORTIFY_SOURCE \ 148 -Wno-extra \ 149 -Wno-ignored-qualifiers \ 150 -Wno-type-limits \ 151 -fno-stack-protector \ 152 -Os \ 153 -fno-ident \ 154 -fdata-sections \ 155 -ffunction-sections \ 156 -fomit-frame-pointer \ 157 -fno-unwind-tables \ 158 -fno-asynchronous-unwind-tables 159 160 MY_DEFS_Release := \ 161 '-DV8_DEPRECATION_WARNINGS' \ 162 '-D_FILE_OFFSET_BITS=64' \ 163 '-DNO_TCMALLOC' \ 164 '-DDISABLE_NACL' \ 165 '-DCHROMIUM_BUILD' \ 166 '-DUSE_LIBJPEG_TURBO=1' \ 167 '-DUSE_PROPRIETARY_CODECS' \ 168 '-DENABLE_CONFIGURATION_POLICY' \ 169 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 170 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 171 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 172 '-DUSE_OPENSSL=1' \ 173 '-DENABLE_EGLIMAGE=1' \ 174 '-DCLD_VERSION=1' \ 175 '-DENABLE_PRINTING=1' \ 176 '-DENABLE_MANAGED_USERS=1' \ 177 '-D__STDC_CONSTANT_MACROS' \ 178 '-D__STDC_FORMAT_MACROS' \ 179 '-DANDROID' \ 180 '-D__GNU_SOURCE=1' \ 181 '-DUSE_STLPORT=1' \ 182 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 183 '-DCHROME_BUILD_ID=""' \ 184 '-DNDEBUG' \ 185 '-DNVALGRIND' \ 186 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 187 '-D_FORTIFY_SOURCE=2' 188 189 190 # Include paths placed before CFLAGS/CPPFLAGS 191 LOCAL_C_INCLUDES_Release := \ 192 $(PWD)/frameworks/wilhelm/include \ 193 $(PWD)/bionic \ 194 $(PWD)/external/stlport/stlport 195 196 197 # Flags passed to only C++ (and not C) files. 198 LOCAL_CPPFLAGS_Release := \ 199 -fno-rtti \ 200 -fno-threadsafe-statics \ 201 -fvisibility-inlines-hidden \ 202 -Wsign-compare \ 203 -Wno-error=c++0x-compat \ 204 -Wno-non-virtual-dtor \ 205 -Wno-sign-promo 206 207 208 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 209 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 210 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 211 ### Rules for final target. 212 # Add target alias to "gyp_all_modules" target. 213 .PHONY: gyp_all_modules 214 gyp_all_modules: webkit_child_overscroller_jni_headers_gyp 215 216 # Alias gyp target name. 217 .PHONY: overscroller_jni_headers 218 overscroller_jni_headers: webkit_child_overscroller_jni_headers_gyp 219 220 LOCAL_MODULE_PATH := $(PRODUCT_OUT)/gyp_stamp 221 LOCAL_UNINSTALLABLE_MODULE := true 222 223 include $(BUILD_SYSTEM)/base_rules.mk 224 225 $(LOCAL_BUILT_MODULE): $(LOCAL_ADDITIONAL_DEPENDENCIES) 226 $(hide) echo "Gyp timestamp: $@" 227 $(hide) mkdir -p $(dir $@) 228 $(hide) touch $@ 229