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_support_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/17/android.jar $(GYP_TARGET_DEPENDENCIES) 22 @echo "Gyp action: Generating JNI bindings from $(PWD)/prebuilts/sdk/17/android.jar/android/widget/OverScroller.class ($@)" 23 $(hide)cd $(gyp_local_path)/webkit/support; mkdir -p $(gyp_shared_intermediate_dir)/webkit/jni; ../../base/android/jni_generator/jni_generator.py -j "$(PWD)/prebuilts/sdk/17/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 -Wno-narrowing \ 44 --param=ssp-buffer-size=4 \ 45 -Werror \ 46 -fno-exceptions \ 47 -fno-strict-aliasing \ 48 -Wall \ 49 -Wno-unused-parameter \ 50 -Wno-missing-field-initializers \ 51 -fvisibility=hidden \ 52 -pipe \ 53 -fPIC \ 54 -m32 \ 55 -mmmx \ 56 -march=pentium4 \ 57 -msse2 \ 58 -mfpmath=sse \ 59 -fuse-ld=gold \ 60 -ffunction-sections \ 61 -funwind-tables \ 62 -g \ 63 -fno-short-enums \ 64 -finline-limit=64 \ 65 -Wa,--noexecstack \ 66 -U_FORTIFY_SOURCE \ 67 -Wno-extra \ 68 -Wno-ignored-qualifiers \ 69 -Wno-type-limits \ 70 -Wno-address \ 71 -Wno-format-security \ 72 -Wno-return-type \ 73 -Wno-sequence-point \ 74 -fno-stack-protector \ 75 -Os \ 76 -g \ 77 -fomit-frame-pointer \ 78 -fdata-sections \ 79 -ffunction-sections 80 81 MY_DEFS_Debug := \ 82 '-DANGLE_DX11' \ 83 '-D_FILE_OFFSET_BITS=64' \ 84 '-DNO_TCMALLOC' \ 85 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 86 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 87 '-DDISABLE_NACL' \ 88 '-DCHROMIUM_BUILD' \ 89 '-DUSE_LIBJPEG_TURBO=1' \ 90 '-DUSE_PROPRIETARY_CODECS' \ 91 '-DENABLE_CONFIGURATION_POLICY' \ 92 '-DLOGGING_IS_OFFICIAL_BUILD=1' \ 93 '-DTRACING_IS_OFFICIAL_BUILD=1' \ 94 '-DENABLE_GPU=1' \ 95 '-DUSE_OPENSSL=1' \ 96 '-DENABLE_EGLIMAGE=1' \ 97 '-DENABLE_PRINTING=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 $(PWD)/frameworks/wilhelm/include \ 113 $(PWD)/bionic \ 114 $(PWD)/external/stlport/stlport 115 116 117 # Flags passed to only C++ (and not C) files. 118 LOCAL_CPPFLAGS_Debug := \ 119 -Wno-narrowing \ 120 -fno-rtti \ 121 -fno-threadsafe-statics \ 122 -fvisibility-inlines-hidden \ 123 -Wsign-compare \ 124 -Wno-error=c++0x-compat \ 125 -Wno-non-virtual-dtor \ 126 -Wno-sign-promo \ 127 -Wno-non-virtual-dtor 128 129 130 # Flags passed to both C and C++ files. 131 MY_CFLAGS_Release := \ 132 -Wno-narrowing \ 133 --param=ssp-buffer-size=4 \ 134 -Werror \ 135 -fno-exceptions \ 136 -fno-strict-aliasing \ 137 -Wall \ 138 -Wno-unused-parameter \ 139 -Wno-missing-field-initializers \ 140 -fvisibility=hidden \ 141 -pipe \ 142 -fPIC \ 143 -m32 \ 144 -mmmx \ 145 -march=pentium4 \ 146 -msse2 \ 147 -mfpmath=sse \ 148 -fuse-ld=gold \ 149 -ffunction-sections \ 150 -funwind-tables \ 151 -g \ 152 -fno-short-enums \ 153 -finline-limit=64 \ 154 -Wa,--noexecstack \ 155 -U_FORTIFY_SOURCE \ 156 -Wno-extra \ 157 -Wno-ignored-qualifiers \ 158 -Wno-type-limits \ 159 -Wno-address \ 160 -Wno-format-security \ 161 -Wno-return-type \ 162 -Wno-sequence-point \ 163 -fno-stack-protector \ 164 -Os \ 165 -fno-ident \ 166 -fdata-sections \ 167 -ffunction-sections \ 168 -fomit-frame-pointer \ 169 -fno-unwind-tables \ 170 -fno-asynchronous-unwind-tables 171 172 MY_DEFS_Release := \ 173 '-DANGLE_DX11' \ 174 '-D_FILE_OFFSET_BITS=64' \ 175 '-DNO_TCMALLOC' \ 176 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 177 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 178 '-DDISABLE_NACL' \ 179 '-DCHROMIUM_BUILD' \ 180 '-DUSE_LIBJPEG_TURBO=1' \ 181 '-DUSE_PROPRIETARY_CODECS' \ 182 '-DENABLE_CONFIGURATION_POLICY' \ 183 '-DLOGGING_IS_OFFICIAL_BUILD=1' \ 184 '-DTRACING_IS_OFFICIAL_BUILD=1' \ 185 '-DENABLE_GPU=1' \ 186 '-DUSE_OPENSSL=1' \ 187 '-DENABLE_EGLIMAGE=1' \ 188 '-DENABLE_PRINTING=1' \ 189 '-D__STDC_CONSTANT_MACROS' \ 190 '-D__STDC_FORMAT_MACROS' \ 191 '-DANDROID' \ 192 '-D__GNU_SOURCE=1' \ 193 '-DUSE_STLPORT=1' \ 194 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 195 '-DCHROME_BUILD_ID=""' \ 196 '-DNDEBUG' \ 197 '-DNVALGRIND' \ 198 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 199 '-D_FORTIFY_SOURCE=2' 200 201 202 # Include paths placed before CFLAGS/CPPFLAGS 203 LOCAL_C_INCLUDES_Release := \ 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 -Wno-narrowing \ 212 -fno-rtti \ 213 -fno-threadsafe-statics \ 214 -fvisibility-inlines-hidden \ 215 -Wsign-compare \ 216 -Wno-error=c++0x-compat \ 217 -Wno-non-virtual-dtor \ 218 -Wno-sign-promo \ 219 -Wno-non-virtual-dtor 220 221 222 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 223 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 224 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 225 ### Rules for final target. 226 # Add target alias to "gyp_all_modules" target. 227 .PHONY: gyp_all_modules 228 gyp_all_modules: webkit_support_overscroller_jni_headers_gyp 229 230 # Alias gyp target name. 231 .PHONY: overscroller_jni_headers 232 overscroller_jni_headers: webkit_support_overscroller_jni_headers_gyp 233 234 LOCAL_MODULE_PATH := $(PRODUCT_OUT)/gyp_stamp 235 LOCAL_UNINSTALLABLE_MODULE := true 236 237 include $(BUILD_SYSTEM)/base_rules.mk 238 239 $(LOCAL_BUILT_MODULE): $(LOCAL_ADDITIONAL_DEPENDENCIES) 240 $(hide) echo "Gyp timestamp: $@" 241 $(hide) mkdir -p $(dir $@) 242 $(hide) touch $@ 243