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_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 10 gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 11 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 12 13 # Make sure our deps are built first. 14 GYP_TARGET_DEPENDENCIES := \ 15 $(call intermediates-dir-for,GYP,build_android_android_exports_gyp,,,$(GYP_VAR_PREFIX))/android_exports.stamp 16 17 ### Rules for action "generate_jni_headers_from_jar_file": 18 $(gyp_shared_intermediate_dir)/content/jni/HashSet_jni.h: gyp_local_path := $(LOCAL_PATH) 19 $(gyp_shared_intermediate_dir)/content/jni/HashSet_jni.h: gyp_var_prefix := $(GYP_VAR_PREFIX) 20 $(gyp_shared_intermediate_dir)/content/jni/HashSet_jni.h: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir)) 21 $(gyp_shared_intermediate_dir)/content/jni/HashSet_jni.h: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir)) 22 $(gyp_shared_intermediate_dir)/content/jni/HashSet_jni.h: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH)) 23 $(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) 24 @echo "Gyp action: Generating JNI bindings from $(PWD)/prebuilts/sdk/18/android.jar/java/util/HashSet.class ($@)" 25 $(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" --includes base/android/jni_generator/jni_generator_helper.h --optimize_generation 0 --native_exports 26 27 28 29 GYP_GENERATED_OUTPUTS := \ 30 $(gyp_shared_intermediate_dir)/content/jni/HashSet_jni.h 31 32 # Make sure our deps and generated files are built first. 33 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 34 35 LOCAL_GENERATED_SOURCES := \ 36 $(gyp_shared_intermediate_dir)/content/jni/HashSet_jni.h 37 38 GYP_COPIED_SOURCE_ORIGIN_DIRS := 39 40 LOCAL_SRC_FILES := 41 42 43 # Flags passed to both C and C++ files. 44 MY_CFLAGS_Debug := \ 45 -fstack-protector \ 46 --param=ssp-buffer-size=4 \ 47 -Werror \ 48 -fno-strict-aliasing \ 49 -Wall \ 50 -Wno-unused-parameter \ 51 -Wno-missing-field-initializers \ 52 -fvisibility=hidden \ 53 -pipe \ 54 -fPIC \ 55 -Wno-unused-local-typedefs \ 56 -fno-tree-sra \ 57 -fno-caller-saves \ 58 -Wno-psabi \ 59 -fno-partial-inlining \ 60 -fno-early-inlining \ 61 -fno-tree-copy-prop \ 62 -fno-tree-loop-optimize \ 63 -fno-move-loop-invariants \ 64 -ffunction-sections \ 65 -funwind-tables \ 66 -g \ 67 -fstack-protector \ 68 -fno-short-enums \ 69 -finline-limit=64 \ 70 -Wa,--noexecstack \ 71 -U_FORTIFY_SOURCE \ 72 -Wno-extra \ 73 -Wno-ignored-qualifiers \ 74 -Wno-type-limits \ 75 -Wno-unused-but-set-variable \ 76 -Os \ 77 -g \ 78 -gdwarf-4 \ 79 -fdata-sections \ 80 -ffunction-sections \ 81 -fomit-frame-pointer \ 82 -funwind-tables 83 84 MY_DEFS_Debug := \ 85 '-DCONTENT_IMPLEMENTATION' \ 86 '-DV8_DEPRECATION_WARNINGS' \ 87 '-D_FILE_OFFSET_BITS=64' \ 88 '-DNO_TCMALLOC' \ 89 '-DDISABLE_NACL' \ 90 '-DCHROMIUM_BUILD' \ 91 '-DUSE_LIBJPEG_TURBO=1' \ 92 '-DENABLE_WEBRTC=1' \ 93 '-DUSE_PROPRIETARY_CODECS' \ 94 '-DENABLE_BROWSER_CDMS' \ 95 '-DENABLE_CONFIGURATION_POLICY' \ 96 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 97 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 98 '-DENABLE_EGLIMAGE=1' \ 99 '-DCLD_VERSION=1' \ 100 '-DENABLE_PRINTING=1' \ 101 '-DENABLE_MANAGED_USERS=1' \ 102 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 103 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 104 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 105 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 106 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 107 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 108 '-DVIDEO_HOLE=1' \ 109 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 110 '-DUSE_OPENSSL=1' \ 111 '-DUSE_OPENSSL_CERTS=1' \ 112 '-D__STDC_CONSTANT_MACROS' \ 113 '-D__STDC_FORMAT_MACROS' \ 114 '-DANDROID' \ 115 '-D__GNU_SOURCE=1' \ 116 '-DUSE_STLPORT=1' \ 117 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 118 '-DCHROME_BUILD_ID=""' \ 119 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 120 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 121 '-D_DEBUG' 122 123 124 # Include paths placed before CFLAGS/CPPFLAGS 125 LOCAL_C_INCLUDES_Debug := \ 126 $(gyp_shared_intermediate_dir) \ 127 $(PWD)/frameworks/wilhelm/include \ 128 $(PWD)/bionic \ 129 $(PWD)/external/stlport/stlport 130 131 132 # Flags passed to only C++ (and not C) files. 133 LOCAL_CPPFLAGS_Debug := \ 134 -fno-exceptions \ 135 -fno-rtti \ 136 -fno-threadsafe-statics \ 137 -fvisibility-inlines-hidden \ 138 -Wsign-compare \ 139 -Wno-abi \ 140 -std=gnu++11 \ 141 -Wno-narrowing \ 142 -Wno-literal-suffix \ 143 -Wno-non-virtual-dtor \ 144 -Wno-sign-promo 145 146 147 # Flags passed to both C and C++ files. 148 MY_CFLAGS_Release := \ 149 -fstack-protector \ 150 --param=ssp-buffer-size=4 \ 151 -Werror \ 152 -fno-strict-aliasing \ 153 -Wall \ 154 -Wno-unused-parameter \ 155 -Wno-missing-field-initializers \ 156 -fvisibility=hidden \ 157 -pipe \ 158 -fPIC \ 159 -Wno-unused-local-typedefs \ 160 -fno-tree-sra \ 161 -fno-caller-saves \ 162 -Wno-psabi \ 163 -fno-partial-inlining \ 164 -fno-early-inlining \ 165 -fno-tree-copy-prop \ 166 -fno-tree-loop-optimize \ 167 -fno-move-loop-invariants \ 168 -ffunction-sections \ 169 -funwind-tables \ 170 -g \ 171 -fstack-protector \ 172 -fno-short-enums \ 173 -finline-limit=64 \ 174 -Wa,--noexecstack \ 175 -U_FORTIFY_SOURCE \ 176 -Wno-extra \ 177 -Wno-ignored-qualifiers \ 178 -Wno-type-limits \ 179 -Wno-unused-but-set-variable \ 180 -Os \ 181 -fno-ident \ 182 -fdata-sections \ 183 -ffunction-sections \ 184 -fomit-frame-pointer \ 185 -funwind-tables 186 187 MY_DEFS_Release := \ 188 '-DCONTENT_IMPLEMENTATION' \ 189 '-DV8_DEPRECATION_WARNINGS' \ 190 '-D_FILE_OFFSET_BITS=64' \ 191 '-DNO_TCMALLOC' \ 192 '-DDISABLE_NACL' \ 193 '-DCHROMIUM_BUILD' \ 194 '-DUSE_LIBJPEG_TURBO=1' \ 195 '-DENABLE_WEBRTC=1' \ 196 '-DUSE_PROPRIETARY_CODECS' \ 197 '-DENABLE_BROWSER_CDMS' \ 198 '-DENABLE_CONFIGURATION_POLICY' \ 199 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 200 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 201 '-DENABLE_EGLIMAGE=1' \ 202 '-DCLD_VERSION=1' \ 203 '-DENABLE_PRINTING=1' \ 204 '-DENABLE_MANAGED_USERS=1' \ 205 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 206 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 207 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 208 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 209 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 210 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 211 '-DVIDEO_HOLE=1' \ 212 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 213 '-DUSE_OPENSSL=1' \ 214 '-DUSE_OPENSSL_CERTS=1' \ 215 '-D__STDC_CONSTANT_MACROS' \ 216 '-D__STDC_FORMAT_MACROS' \ 217 '-DANDROID' \ 218 '-D__GNU_SOURCE=1' \ 219 '-DUSE_STLPORT=1' \ 220 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 221 '-DCHROME_BUILD_ID=""' \ 222 '-DNDEBUG' \ 223 '-DNVALGRIND' \ 224 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 225 '-D_FORTIFY_SOURCE=2' 226 227 228 # Include paths placed before CFLAGS/CPPFLAGS 229 LOCAL_C_INCLUDES_Release := \ 230 $(gyp_shared_intermediate_dir) \ 231 $(PWD)/frameworks/wilhelm/include \ 232 $(PWD)/bionic \ 233 $(PWD)/external/stlport/stlport 234 235 236 # Flags passed to only C++ (and not C) files. 237 LOCAL_CPPFLAGS_Release := \ 238 -fno-exceptions \ 239 -fno-rtti \ 240 -fno-threadsafe-statics \ 241 -fvisibility-inlines-hidden \ 242 -Wsign-compare \ 243 -Wno-abi \ 244 -std=gnu++11 \ 245 -Wno-narrowing \ 246 -Wno-literal-suffix \ 247 -Wno-non-virtual-dtor \ 248 -Wno-sign-promo 249 250 251 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 252 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 253 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 254 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 255 ### Rules for final target. 256 # Add target alias to "gyp_all_modules" target. 257 .PHONY: gyp_all_modules 258 gyp_all_modules: content_java_set_jni_headers_gyp 259 260 # Alias gyp target name. 261 .PHONY: java_set_jni_headers 262 java_set_jni_headers: content_java_set_jni_headers_gyp 263 264 LOCAL_MODULE_PATH := $(PRODUCT_OUT)/gyp_stamp 265 LOCAL_UNINSTALLABLE_MODULE := true 266 LOCAL_2ND_ARCH_VAR_PREFIX := $(GYP_VAR_PREFIX) 267 268 include $(BUILD_SYSTEM)/base_rules.mk 269 270 $(LOCAL_BUILT_MODULE): $(LOCAL_ADDITIONAL_DEPENDENCIES) 271 $(hide) echo "Gyp timestamp: $@" 272 $(hide) mkdir -p $(dir $@) 273 $(hide) touch $@ 274 275 LOCAL_2ND_ARCH_VAR_PREFIX := 276