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 -fstack-protector \ 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 -fno-tree-sra \ 55 -fuse-ld=gold \ 56 -Wno-psabi \ 57 -ffunction-sections \ 58 -funwind-tables \ 59 -g \ 60 -fstack-protector \ 61 -fno-short-enums \ 62 -finline-limit=64 \ 63 -Wa,--noexecstack \ 64 -U_FORTIFY_SOURCE \ 65 -Wno-extra \ 66 -Wno-ignored-qualifiers \ 67 -Wno-type-limits \ 68 -Os \ 69 -g \ 70 -fomit-frame-pointer \ 71 -fdata-sections \ 72 -ffunction-sections 73 74 MY_DEFS_Debug := \ 75 '-DV8_DEPRECATION_WARNINGS' \ 76 '-D_FILE_OFFSET_BITS=64' \ 77 '-DNO_TCMALLOC' \ 78 '-DDISABLE_NACL' \ 79 '-DCHROMIUM_BUILD' \ 80 '-DUSE_LIBJPEG_TURBO=1' \ 81 '-DUSE_PROPRIETARY_CODECS' \ 82 '-DENABLE_CONFIGURATION_POLICY' \ 83 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 84 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 85 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 86 '-DUSE_OPENSSL=1' \ 87 '-DENABLE_EGLIMAGE=1' \ 88 '-DCLD_VERSION=1' \ 89 '-DENABLE_PRINTING=1' \ 90 '-DENABLE_MANAGED_USERS=1' \ 91 '-D__STDC_CONSTANT_MACROS' \ 92 '-D__STDC_FORMAT_MACROS' \ 93 '-DANDROID' \ 94 '-D__GNU_SOURCE=1' \ 95 '-DUSE_STLPORT=1' \ 96 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 97 '-DCHROME_BUILD_ID=""' \ 98 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 99 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 100 '-D_DEBUG' 101 102 103 # Include paths placed before CFLAGS/CPPFLAGS 104 LOCAL_C_INCLUDES_Debug := \ 105 $(PWD)/frameworks/wilhelm/include \ 106 $(PWD)/bionic \ 107 $(PWD)/external/stlport/stlport 108 109 110 # Flags passed to only C++ (and not C) files. 111 LOCAL_CPPFLAGS_Debug := \ 112 -fno-rtti \ 113 -fno-threadsafe-statics \ 114 -fvisibility-inlines-hidden \ 115 -Wsign-compare \ 116 -Wno-abi \ 117 -Wno-error=c++0x-compat \ 118 -Wno-non-virtual-dtor \ 119 -Wno-sign-promo 120 121 122 # Flags passed to both C and C++ files. 123 MY_CFLAGS_Release := \ 124 -fstack-protector \ 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 -fno-tree-sra \ 136 -fuse-ld=gold \ 137 -Wno-psabi \ 138 -ffunction-sections \ 139 -funwind-tables \ 140 -g \ 141 -fstack-protector \ 142 -fno-short-enums \ 143 -finline-limit=64 \ 144 -Wa,--noexecstack \ 145 -U_FORTIFY_SOURCE \ 146 -Wno-extra \ 147 -Wno-ignored-qualifiers \ 148 -Wno-type-limits \ 149 -Os \ 150 -fno-ident \ 151 -fdata-sections \ 152 -ffunction-sections \ 153 -fomit-frame-pointer 154 155 MY_DEFS_Release := \ 156 '-DV8_DEPRECATION_WARNINGS' \ 157 '-D_FILE_OFFSET_BITS=64' \ 158 '-DNO_TCMALLOC' \ 159 '-DDISABLE_NACL' \ 160 '-DCHROMIUM_BUILD' \ 161 '-DUSE_LIBJPEG_TURBO=1' \ 162 '-DUSE_PROPRIETARY_CODECS' \ 163 '-DENABLE_CONFIGURATION_POLICY' \ 164 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 165 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 166 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 167 '-DUSE_OPENSSL=1' \ 168 '-DENABLE_EGLIMAGE=1' \ 169 '-DCLD_VERSION=1' \ 170 '-DENABLE_PRINTING=1' \ 171 '-DENABLE_MANAGED_USERS=1' \ 172 '-D__STDC_CONSTANT_MACROS' \ 173 '-D__STDC_FORMAT_MACROS' \ 174 '-DANDROID' \ 175 '-D__GNU_SOURCE=1' \ 176 '-DUSE_STLPORT=1' \ 177 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 178 '-DCHROME_BUILD_ID=""' \ 179 '-DNDEBUG' \ 180 '-DNVALGRIND' \ 181 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 182 '-D_FORTIFY_SOURCE=2' 183 184 185 # Include paths placed before CFLAGS/CPPFLAGS 186 LOCAL_C_INCLUDES_Release := \ 187 $(PWD)/frameworks/wilhelm/include \ 188 $(PWD)/bionic \ 189 $(PWD)/external/stlport/stlport 190 191 192 # Flags passed to only C++ (and not C) files. 193 LOCAL_CPPFLAGS_Release := \ 194 -fno-rtti \ 195 -fno-threadsafe-statics \ 196 -fvisibility-inlines-hidden \ 197 -Wsign-compare \ 198 -Wno-abi \ 199 -Wno-error=c++0x-compat \ 200 -Wno-non-virtual-dtor \ 201 -Wno-sign-promo 202 203 204 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 205 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 206 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 207 ### Rules for final target. 208 # Add target alias to "gyp_all_modules" target. 209 .PHONY: gyp_all_modules 210 gyp_all_modules: webkit_child_overscroller_jni_headers_gyp 211 212 # Alias gyp target name. 213 .PHONY: overscroller_jni_headers 214 overscroller_jni_headers: webkit_child_overscroller_jni_headers_gyp 215 216 LOCAL_MODULE_PATH := $(PRODUCT_OUT)/gyp_stamp 217 LOCAL_UNINSTALLABLE_MODULE := true 218 219 include $(BUILD_SYSTEM)/base_rules.mk 220 221 $(LOCAL_BUILT_MODULE): $(LOCAL_ADDITIONAL_DEPENDENCIES) 222 $(hide) echo "Gyp timestamp: $@" 223 $(hide) mkdir -p $(dir $@) 224 $(hide) touch $@ 225