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 -fstack-protector \ 45 --param=ssp-buffer-size=4 \ 46 -Werror \ 47 -fno-exceptions \ 48 -fno-strict-aliasing \ 49 -Wall \ 50 -Wno-unused-parameter \ 51 -Wno-missing-field-initializers \ 52 -fvisibility=hidden \ 53 -pipe \ 54 -fPIC \ 55 -fno-tree-sra \ 56 -fuse-ld=gold \ 57 -Wno-psabi \ 58 -ffunction-sections \ 59 -funwind-tables \ 60 -g \ 61 -fstack-protector \ 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 -Wno-address \ 70 -Wno-format-security \ 71 -Wno-return-type \ 72 -Wno-sequence-point \ 73 -Os \ 74 -g \ 75 -fomit-frame-pointer \ 76 -fdata-sections \ 77 -ffunction-sections 78 79 MY_DEFS_Debug := \ 80 '-DANGLE_DX11' \ 81 '-D_FILE_OFFSET_BITS=64' \ 82 '-DNO_TCMALLOC' \ 83 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 84 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 85 '-DDISABLE_NACL' \ 86 '-DCHROMIUM_BUILD' \ 87 '-DUSE_LIBJPEG_TURBO=1' \ 88 '-DUSE_PROPRIETARY_CODECS' \ 89 '-DENABLE_CONFIGURATION_POLICY' \ 90 '-DLOGGING_IS_OFFICIAL_BUILD=1' \ 91 '-DTRACING_IS_OFFICIAL_BUILD=1' \ 92 '-DENABLE_GPU=1' \ 93 '-DUSE_OPENSSL=1' \ 94 '-DENABLE_EGLIMAGE=1' \ 95 '-DENABLE_PRINTING=1' \ 96 '-D__STDC_CONSTANT_MACROS' \ 97 '-D__STDC_FORMAT_MACROS' \ 98 '-DANDROID' \ 99 '-D__GNU_SOURCE=1' \ 100 '-DUSE_STLPORT=1' \ 101 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 102 '-DCHROME_BUILD_ID=""' \ 103 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 104 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 105 '-D_DEBUG' 106 107 108 # Include paths placed before CFLAGS/CPPFLAGS 109 LOCAL_C_INCLUDES_Debug := \ 110 $(PWD)/frameworks/wilhelm/include \ 111 $(PWD)/bionic \ 112 $(PWD)/external/stlport/stlport 113 114 115 # Flags passed to only C++ (and not C) files. 116 LOCAL_CPPFLAGS_Debug := \ 117 -Wno-narrowing \ 118 -fno-rtti \ 119 -fno-threadsafe-statics \ 120 -fvisibility-inlines-hidden \ 121 -Wsign-compare \ 122 -Wno-abi \ 123 -Wno-error=c++0x-compat \ 124 -Wno-non-virtual-dtor \ 125 -Wno-sign-promo \ 126 -Wno-non-virtual-dtor 127 128 129 # Flags passed to both C and C++ files. 130 MY_CFLAGS_Release := \ 131 -Wno-narrowing \ 132 -fstack-protector \ 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 -fno-tree-sra \ 144 -fuse-ld=gold \ 145 -Wno-psabi \ 146 -ffunction-sections \ 147 -funwind-tables \ 148 -g \ 149 -fstack-protector \ 150 -fno-short-enums \ 151 -finline-limit=64 \ 152 -Wa,--noexecstack \ 153 -U_FORTIFY_SOURCE \ 154 -Wno-extra \ 155 -Wno-ignored-qualifiers \ 156 -Wno-type-limits \ 157 -Wno-address \ 158 -Wno-format-security \ 159 -Wno-return-type \ 160 -Wno-sequence-point \ 161 -Os \ 162 -fno-ident \ 163 -fdata-sections \ 164 -ffunction-sections \ 165 -fomit-frame-pointer 166 167 MY_DEFS_Release := \ 168 '-DANGLE_DX11' \ 169 '-D_FILE_OFFSET_BITS=64' \ 170 '-DNO_TCMALLOC' \ 171 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 172 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 173 '-DDISABLE_NACL' \ 174 '-DCHROMIUM_BUILD' \ 175 '-DUSE_LIBJPEG_TURBO=1' \ 176 '-DUSE_PROPRIETARY_CODECS' \ 177 '-DENABLE_CONFIGURATION_POLICY' \ 178 '-DLOGGING_IS_OFFICIAL_BUILD=1' \ 179 '-DTRACING_IS_OFFICIAL_BUILD=1' \ 180 '-DENABLE_GPU=1' \ 181 '-DUSE_OPENSSL=1' \ 182 '-DENABLE_EGLIMAGE=1' \ 183 '-DENABLE_PRINTING=1' \ 184 '-D__STDC_CONSTANT_MACROS' \ 185 '-D__STDC_FORMAT_MACROS' \ 186 '-DANDROID' \ 187 '-D__GNU_SOURCE=1' \ 188 '-DUSE_STLPORT=1' \ 189 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 190 '-DCHROME_BUILD_ID=""' \ 191 '-DNDEBUG' \ 192 '-DNVALGRIND' \ 193 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 194 '-D_FORTIFY_SOURCE=2' 195 196 197 # Include paths placed before CFLAGS/CPPFLAGS 198 LOCAL_C_INCLUDES_Release := \ 199 $(PWD)/frameworks/wilhelm/include \ 200 $(PWD)/bionic \ 201 $(PWD)/external/stlport/stlport 202 203 204 # Flags passed to only C++ (and not C) files. 205 LOCAL_CPPFLAGS_Release := \ 206 -Wno-narrowing \ 207 -fno-rtti \ 208 -fno-threadsafe-statics \ 209 -fvisibility-inlines-hidden \ 210 -Wsign-compare \ 211 -Wno-abi \ 212 -Wno-error=c++0x-compat \ 213 -Wno-non-virtual-dtor \ 214 -Wno-sign-promo \ 215 -Wno-non-virtual-dtor 216 217 218 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 219 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 220 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 221 ### Rules for final target. 222 # Add target alias to "gyp_all_modules" target. 223 .PHONY: gyp_all_modules 224 gyp_all_modules: webkit_support_overscroller_jni_headers_gyp 225 226 # Alias gyp target name. 227 .PHONY: overscroller_jni_headers 228 overscroller_jni_headers: webkit_support_overscroller_jni_headers_gyp 229 230 LOCAL_MODULE_PATH := $(PRODUCT_OUT)/gyp_stamp 231 LOCAL_UNINSTALLABLE_MODULE := true 232 233 include $(BUILD_SYSTEM)/base_rules.mk 234 235 $(LOCAL_BUILT_MODULE): $(LOCAL_ADDITIONAL_DEPENDENCIES) 236 $(hide) echo "Gyp timestamp: $@" 237 $(hide) mkdir -p $(dir $@) 238 $(hide) touch $@ 239