1# This file is generated by gyp; do not edit. 2 3include $(CLEAR_VARS) 4 5LOCAL_MODULE_CLASS := GYP 6LOCAL_MODULE := content_java_set_jni_headers_gyp 7LOCAL_MODULE_STEM := java_set_jni_headers 8LOCAL_MODULE_SUFFIX := .stamp 9LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 10gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 11gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 12 13# Make sure our deps are built first. 14GYP_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 29GYP_GENERATED_OUTPUTS := \ 30 $(gyp_shared_intermediate_dir)/content/jni/HashSet_jni.h 31 32# Make sure our deps and generated files are built first. 33LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 34 35LOCAL_GENERATED_SOURCES := \ 36 $(gyp_shared_intermediate_dir)/content/jni/HashSet_jni.h 37 38GYP_COPIED_SOURCE_ORIGIN_DIRS := 39 40LOCAL_SRC_FILES := 41 42 43# Flags passed to both C and C++ files. 44MY_CFLAGS_Debug := \ 45 --param=ssp-buffer-size=4 \ 46 -Werror \ 47 -fno-strict-aliasing \ 48 -Wall \ 49 -Wno-unused-parameter \ 50 -Wno-missing-field-initializers \ 51 -fvisibility=hidden \ 52 -pipe \ 53 -fPIC \ 54 -Wno-unused-local-typedefs \ 55 -ffunction-sections \ 56 -funwind-tables \ 57 -g \ 58 -fno-short-enums \ 59 -finline-limit=64 \ 60 -Wa,--noexecstack \ 61 -U_FORTIFY_SOURCE \ 62 -Wno-extra \ 63 -Wno-ignored-qualifiers \ 64 -Wno-type-limits \ 65 -Wno-unused-but-set-variable \ 66 -Os \ 67 -g \ 68 -gdwarf-4 \ 69 -fdata-sections \ 70 -ffunction-sections \ 71 -funwind-tables 72 73MY_DEFS_Debug := \ 74 '-DCONTENT_IMPLEMENTATION' \ 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 '-DENABLE_WEBRTC=1' \ 82 '-DUSE_PROPRIETARY_CODECS' \ 83 '-DENABLE_BROWSER_CDMS' \ 84 '-DENABLE_CONFIGURATION_POLICY' \ 85 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 86 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 87 '-DENABLE_EGLIMAGE=1' \ 88 '-DCLD_VERSION=1' \ 89 '-DENABLE_PRINTING=1' \ 90 '-DENABLE_MANAGED_USERS=1' \ 91 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 92 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 93 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 94 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 95 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 96 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 97 '-DVIDEO_HOLE=1' \ 98 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 99 '-DUSE_OPENSSL=1' \ 100 '-DUSE_OPENSSL_CERTS=1' \ 101 '-D__STDC_CONSTANT_MACROS' \ 102 '-D__STDC_FORMAT_MACROS' \ 103 '-DANDROID' \ 104 '-D__GNU_SOURCE=1' \ 105 '-DUSE_STLPORT=1' \ 106 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 107 '-DCHROME_BUILD_ID=""' \ 108 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 109 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 110 '-D_DEBUG' 111 112 113# Include paths placed before CFLAGS/CPPFLAGS 114LOCAL_C_INCLUDES_Debug := \ 115 $(gyp_shared_intermediate_dir) \ 116 $(PWD)/frameworks/wilhelm/include \ 117 $(PWD)/bionic \ 118 $(PWD)/external/stlport/stlport 119 120 121# Flags passed to only C++ (and not C) files. 122LOCAL_CPPFLAGS_Debug := \ 123 -fno-exceptions \ 124 -fno-rtti \ 125 -fno-threadsafe-statics \ 126 -fvisibility-inlines-hidden \ 127 -Wsign-compare \ 128 -std=gnu++11 \ 129 -Wno-narrowing \ 130 -Wno-literal-suffix \ 131 -Wno-non-virtual-dtor \ 132 -Wno-sign-promo 133 134 135# Flags passed to both C and C++ files. 136MY_CFLAGS_Release := \ 137 --param=ssp-buffer-size=4 \ 138 -Werror \ 139 -fno-strict-aliasing \ 140 -Wall \ 141 -Wno-unused-parameter \ 142 -Wno-missing-field-initializers \ 143 -fvisibility=hidden \ 144 -pipe \ 145 -fPIC \ 146 -Wno-unused-local-typedefs \ 147 -ffunction-sections \ 148 -funwind-tables \ 149 -g \ 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-unused-but-set-variable \ 158 -Os \ 159 -fno-ident \ 160 -fdata-sections \ 161 -ffunction-sections \ 162 -funwind-tables 163 164MY_DEFS_Release := \ 165 '-DCONTENT_IMPLEMENTATION' \ 166 '-DV8_DEPRECATION_WARNINGS' \ 167 '-D_FILE_OFFSET_BITS=64' \ 168 '-DNO_TCMALLOC' \ 169 '-DDISABLE_NACL' \ 170 '-DCHROMIUM_BUILD' \ 171 '-DUSE_LIBJPEG_TURBO=1' \ 172 '-DENABLE_WEBRTC=1' \ 173 '-DUSE_PROPRIETARY_CODECS' \ 174 '-DENABLE_BROWSER_CDMS' \ 175 '-DENABLE_CONFIGURATION_POLICY' \ 176 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 177 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 178 '-DENABLE_EGLIMAGE=1' \ 179 '-DCLD_VERSION=1' \ 180 '-DENABLE_PRINTING=1' \ 181 '-DENABLE_MANAGED_USERS=1' \ 182 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 183 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 184 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 185 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 186 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 187 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 188 '-DVIDEO_HOLE=1' \ 189 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 190 '-DUSE_OPENSSL=1' \ 191 '-DUSE_OPENSSL_CERTS=1' \ 192 '-D__STDC_CONSTANT_MACROS' \ 193 '-D__STDC_FORMAT_MACROS' \ 194 '-DANDROID' \ 195 '-D__GNU_SOURCE=1' \ 196 '-DUSE_STLPORT=1' \ 197 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 198 '-DCHROME_BUILD_ID=""' \ 199 '-DNDEBUG' \ 200 '-DNVALGRIND' \ 201 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 202 '-D_FORTIFY_SOURCE=2' 203 204 205# Include paths placed before CFLAGS/CPPFLAGS 206LOCAL_C_INCLUDES_Release := \ 207 $(gyp_shared_intermediate_dir) \ 208 $(PWD)/frameworks/wilhelm/include \ 209 $(PWD)/bionic \ 210 $(PWD)/external/stlport/stlport 211 212 213# Flags passed to only C++ (and not C) files. 214LOCAL_CPPFLAGS_Release := \ 215 -fno-exceptions \ 216 -fno-rtti \ 217 -fno-threadsafe-statics \ 218 -fvisibility-inlines-hidden \ 219 -Wsign-compare \ 220 -std=gnu++11 \ 221 -Wno-narrowing \ 222 -Wno-literal-suffix \ 223 -Wno-non-virtual-dtor \ 224 -Wno-sign-promo 225 226 227LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 228LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 229LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 230LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 231### Rules for final target. 232# Add target alias to "gyp_all_modules" target. 233.PHONY: gyp_all_modules 234gyp_all_modules: content_java_set_jni_headers_gyp 235 236# Alias gyp target name. 237.PHONY: java_set_jni_headers 238java_set_jni_headers: content_java_set_jni_headers_gyp 239 240LOCAL_MODULE_PATH := $(PRODUCT_OUT)/gyp_stamp 241LOCAL_UNINSTALLABLE_MODULE := true 242LOCAL_2ND_ARCH_VAR_PREFIX := $(GYP_VAR_PREFIX) 243 244include $(BUILD_SYSTEM)/base_rules.mk 245 246$(LOCAL_BUILT_MODULE): $(LOCAL_ADDITIONAL_DEPENDENCIES) 247 $(hide) echo "Gyp timestamp: $@" 248 $(hide) mkdir -p $(dir $@) 249 $(hide) touch $@ 250 251LOCAL_2ND_ARCH_VAR_PREFIX := 252