1 # This file is generated by gyp; do not edit. 2 3 include $(CLEAR_VARS) 4 5 LOCAL_MODULE_CLASS := GYP 6 LOCAL_MODULE := content_java_set_jni_headers_gyp 7 LOCAL_MODULE_STEM := java_set_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)/content/jni/HashSet_jni.h: gyp_local_path := $(LOCAL_PATH) 18 $(gyp_shared_intermediate_dir)/content/jni/HashSet_jni.h: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir)) 19 $(gyp_shared_intermediate_dir)/content/jni/HashSet_jni.h: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir)) 20 $(gyp_shared_intermediate_dir)/content/jni/HashSet_jni.h: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH)) 21 $(gyp_shared_intermediate_dir)/content/jni/HashSet_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/java/util/HashSet.class ($@)" 23 $(hide)cd $(gyp_local_path)/content; mkdir -p $(gyp_shared_intermediate_dir)/content/jni; ../base/android/jni_generator/jni_generator.py -j "$(PWD)/prebuilts/sdk/18/android.jar" --input_file java/util/HashSet.class --output_dir "$(gyp_shared_intermediate_dir)/content/jni" --optimize_generation 0 24 25 26 27 GYP_GENERATED_OUTPUTS := \ 28 $(gyp_shared_intermediate_dir)/content/jni/HashSet_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)/content/jni/HashSet_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 '-DCONTENT_IMPLEMENTATION' \ 78 '-DV8_DEPRECATION_WARNINGS' \ 79 '-D_FILE_OFFSET_BITS=64' \ 80 '-DNO_TCMALLOC' \ 81 '-DDISABLE_NACL' \ 82 '-DCHROMIUM_BUILD' \ 83 '-DUSE_LIBJPEG_TURBO=1' \ 84 '-DUSE_PROPRIETARY_CODECS' \ 85 '-DENABLE_CONFIGURATION_POLICY' \ 86 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 87 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 88 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 89 '-DUSE_OPENSSL=1' \ 90 '-DENABLE_EGLIMAGE=1' \ 91 '-DCLD_VERSION=1' \ 92 '-DENABLE_PRINTING=1' \ 93 '-DENABLE_MANAGED_USERS=1' \ 94 '-D__STDC_CONSTANT_MACROS' \ 95 '-D__STDC_FORMAT_MACROS' \ 96 '-DANDROID' \ 97 '-D__GNU_SOURCE=1' \ 98 '-DUSE_STLPORT=1' \ 99 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 100 '-DCHROME_BUILD_ID=""' \ 101 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 102 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 103 '-D_DEBUG' 104 105 106 # Include paths placed before CFLAGS/CPPFLAGS 107 LOCAL_C_INCLUDES_Debug := \ 108 $(PWD)/frameworks/wilhelm/include \ 109 $(PWD)/bionic \ 110 $(PWD)/external/stlport/stlport 111 112 113 # Flags passed to only C++ (and not C) files. 114 LOCAL_CPPFLAGS_Debug := \ 115 -fno-rtti \ 116 -fno-threadsafe-statics \ 117 -fvisibility-inlines-hidden \ 118 -Wsign-compare \ 119 -Wno-error=c++0x-compat \ 120 -Wno-non-virtual-dtor \ 121 -Wno-sign-promo 122 123 124 # Flags passed to both C and C++ files. 125 MY_CFLAGS_Release := \ 126 --param=ssp-buffer-size=4 \ 127 -Werror \ 128 -fno-exceptions \ 129 -fno-strict-aliasing \ 130 -Wall \ 131 -Wno-unused-parameter \ 132 -Wno-missing-field-initializers \ 133 -fvisibility=hidden \ 134 -pipe \ 135 -fPIC \ 136 -m32 \ 137 -mmmx \ 138 -march=pentium4 \ 139 -msse2 \ 140 -mfpmath=sse \ 141 -fuse-ld=gold \ 142 -ffunction-sections \ 143 -funwind-tables \ 144 -g \ 145 -fno-short-enums \ 146 -finline-limit=64 \ 147 -Wa,--noexecstack \ 148 -U_FORTIFY_SOURCE \ 149 -Wno-extra \ 150 -Wno-ignored-qualifiers \ 151 -Wno-type-limits \ 152 -fno-stack-protector \ 153 -Os \ 154 -fno-ident \ 155 -fdata-sections \ 156 -ffunction-sections \ 157 -fomit-frame-pointer \ 158 -fno-unwind-tables \ 159 -fno-asynchronous-unwind-tables 160 161 MY_DEFS_Release := \ 162 '-DCONTENT_IMPLEMENTATION' \ 163 '-DV8_DEPRECATION_WARNINGS' \ 164 '-D_FILE_OFFSET_BITS=64' \ 165 '-DNO_TCMALLOC' \ 166 '-DDISABLE_NACL' \ 167 '-DCHROMIUM_BUILD' \ 168 '-DUSE_LIBJPEG_TURBO=1' \ 169 '-DUSE_PROPRIETARY_CODECS' \ 170 '-DENABLE_CONFIGURATION_POLICY' \ 171 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 172 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 173 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 174 '-DUSE_OPENSSL=1' \ 175 '-DENABLE_EGLIMAGE=1' \ 176 '-DCLD_VERSION=1' \ 177 '-DENABLE_PRINTING=1' \ 178 '-DENABLE_MANAGED_USERS=1' \ 179 '-D__STDC_CONSTANT_MACROS' \ 180 '-D__STDC_FORMAT_MACROS' \ 181 '-DANDROID' \ 182 '-D__GNU_SOURCE=1' \ 183 '-DUSE_STLPORT=1' \ 184 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 185 '-DCHROME_BUILD_ID=""' \ 186 '-DNDEBUG' \ 187 '-DNVALGRIND' \ 188 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 189 '-D_FORTIFY_SOURCE=2' 190 191 192 # Include paths placed before CFLAGS/CPPFLAGS 193 LOCAL_C_INCLUDES_Release := \ 194 $(PWD)/frameworks/wilhelm/include \ 195 $(PWD)/bionic \ 196 $(PWD)/external/stlport/stlport 197 198 199 # Flags passed to only C++ (and not C) files. 200 LOCAL_CPPFLAGS_Release := \ 201 -fno-rtti \ 202 -fno-threadsafe-statics \ 203 -fvisibility-inlines-hidden \ 204 -Wsign-compare \ 205 -Wno-error=c++0x-compat \ 206 -Wno-non-virtual-dtor \ 207 -Wno-sign-promo 208 209 210 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 211 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 212 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 213 ### Rules for final target. 214 # Add target alias to "gyp_all_modules" target. 215 .PHONY: gyp_all_modules 216 gyp_all_modules: content_java_set_jni_headers_gyp 217 218 # Alias gyp target name. 219 .PHONY: java_set_jni_headers 220 java_set_jni_headers: content_java_set_jni_headers_gyp 221 222 LOCAL_MODULE_PATH := $(PRODUCT_OUT)/gyp_stamp 223 LOCAL_UNINSTALLABLE_MODULE := true 224 225 include $(BUILD_SYSTEM)/base_rules.mk 226 227 $(LOCAL_BUILT_MODULE): $(LOCAL_ADDITIONAL_DEPENDENCIES) 228 $(hide) echo "Gyp timestamp: $@" 229 $(hide) mkdir -p $(dir $@) 230 $(hide) touch $@ 231