1# This file is generated by gyp; do not edit. 2 3include $(CLEAR_VARS) 4 5LOCAL_MODULE_CLASS := GYP 6LOCAL_MODULE := ui_gl_surface_jni_headers_gyp 7LOCAL_MODULE_STEM := surface_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)/ui/gl/jni/Surface_jni.h: gyp_local_path := $(LOCAL_PATH) 19$(gyp_shared_intermediate_dir)/ui/gl/jni/Surface_jni.h: gyp_var_prefix := $(GYP_VAR_PREFIX) 20$(gyp_shared_intermediate_dir)/ui/gl/jni/Surface_jni.h: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir)) 21$(gyp_shared_intermediate_dir)/ui/gl/jni/Surface_jni.h: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir)) 22$(gyp_shared_intermediate_dir)/ui/gl/jni/Surface_jni.h: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH)) 23$(gyp_shared_intermediate_dir)/ui/gl/jni/Surface_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/android/view/Surface.class ($@)" 25 $(hide)cd $(gyp_local_path)/ui/gl; mkdir -p $(gyp_shared_intermediate_dir)/ui/gl/jni; ../../base/android/jni_generator/jni_generator.py -j "$(PWD)/prebuilts/sdk/18/android.jar" --input_file android/view/Surface.class --output_dir "$(gyp_shared_intermediate_dir)/ui/gl/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)/ui/gl/jni/Surface_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)/ui/gl/jni/Surface_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 -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 84MY_DEFS_Debug := \ 85 '-DV8_DEPRECATION_WARNINGS' \ 86 '-D_FILE_OFFSET_BITS=64' \ 87 '-DNO_TCMALLOC' \ 88 '-DDISABLE_NACL' \ 89 '-DCHROMIUM_BUILD' \ 90 '-DUSE_LIBJPEG_TURBO=1' \ 91 '-DENABLE_WEBRTC=1' \ 92 '-DUSE_PROPRIETARY_CODECS' \ 93 '-DENABLE_BROWSER_CDMS' \ 94 '-DENABLE_CONFIGURATION_POLICY' \ 95 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 96 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 97 '-DENABLE_EGLIMAGE=1' \ 98 '-DCLD_VERSION=1' \ 99 '-DENABLE_PRINTING=1' \ 100 '-DENABLE_MANAGED_USERS=1' \ 101 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 102 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 103 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 104 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 105 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 106 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 107 '-DVIDEO_HOLE=1' \ 108 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 109 '-DUSE_OPENSSL=1' \ 110 '-DUSE_OPENSSL_CERTS=1' \ 111 '-D__STDC_CONSTANT_MACROS' \ 112 '-D__STDC_FORMAT_MACROS' \ 113 '-DANDROID' \ 114 '-D__GNU_SOURCE=1' \ 115 '-DUSE_STLPORT=1' \ 116 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 117 '-DCHROME_BUILD_ID=""' \ 118 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 119 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 120 '-D_DEBUG' 121 122 123# Include paths placed before CFLAGS/CPPFLAGS 124LOCAL_C_INCLUDES_Debug := \ 125 $(gyp_shared_intermediate_dir) \ 126 $(PWD)/frameworks/wilhelm/include \ 127 $(PWD)/bionic \ 128 $(PWD)/external/stlport/stlport 129 130 131# Flags passed to only C++ (and not C) files. 132LOCAL_CPPFLAGS_Debug := \ 133 -fno-exceptions \ 134 -fno-rtti \ 135 -fno-threadsafe-statics \ 136 -fvisibility-inlines-hidden \ 137 -Wsign-compare \ 138 -Wno-abi \ 139 -std=gnu++11 \ 140 -Wno-narrowing \ 141 -Wno-literal-suffix \ 142 -Wno-non-virtual-dtor \ 143 -Wno-sign-promo 144 145 146# Flags passed to both C and C++ files. 147MY_CFLAGS_Release := \ 148 -fstack-protector \ 149 --param=ssp-buffer-size=4 \ 150 -Werror \ 151 -fno-strict-aliasing \ 152 -Wall \ 153 -Wno-unused-parameter \ 154 -Wno-missing-field-initializers \ 155 -fvisibility=hidden \ 156 -pipe \ 157 -fPIC \ 158 -Wno-unused-local-typedefs \ 159 -fno-tree-sra \ 160 -fno-caller-saves \ 161 -Wno-psabi \ 162 -fno-partial-inlining \ 163 -fno-early-inlining \ 164 -fno-tree-copy-prop \ 165 -fno-tree-loop-optimize \ 166 -fno-move-loop-invariants \ 167 -ffunction-sections \ 168 -funwind-tables \ 169 -g \ 170 -fstack-protector \ 171 -fno-short-enums \ 172 -finline-limit=64 \ 173 -Wa,--noexecstack \ 174 -U_FORTIFY_SOURCE \ 175 -Wno-extra \ 176 -Wno-ignored-qualifiers \ 177 -Wno-type-limits \ 178 -Wno-unused-but-set-variable \ 179 -Os \ 180 -fno-ident \ 181 -fdata-sections \ 182 -ffunction-sections \ 183 -fomit-frame-pointer \ 184 -funwind-tables 185 186MY_DEFS_Release := \ 187 '-DV8_DEPRECATION_WARNINGS' \ 188 '-D_FILE_OFFSET_BITS=64' \ 189 '-DNO_TCMALLOC' \ 190 '-DDISABLE_NACL' \ 191 '-DCHROMIUM_BUILD' \ 192 '-DUSE_LIBJPEG_TURBO=1' \ 193 '-DENABLE_WEBRTC=1' \ 194 '-DUSE_PROPRIETARY_CODECS' \ 195 '-DENABLE_BROWSER_CDMS' \ 196 '-DENABLE_CONFIGURATION_POLICY' \ 197 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 198 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 199 '-DENABLE_EGLIMAGE=1' \ 200 '-DCLD_VERSION=1' \ 201 '-DENABLE_PRINTING=1' \ 202 '-DENABLE_MANAGED_USERS=1' \ 203 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 204 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 205 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 206 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 207 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 208 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 209 '-DVIDEO_HOLE=1' \ 210 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 211 '-DUSE_OPENSSL=1' \ 212 '-DUSE_OPENSSL_CERTS=1' \ 213 '-D__STDC_CONSTANT_MACROS' \ 214 '-D__STDC_FORMAT_MACROS' \ 215 '-DANDROID' \ 216 '-D__GNU_SOURCE=1' \ 217 '-DUSE_STLPORT=1' \ 218 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 219 '-DCHROME_BUILD_ID=""' \ 220 '-DNDEBUG' \ 221 '-DNVALGRIND' \ 222 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 223 '-D_FORTIFY_SOURCE=2' 224 225 226# Include paths placed before CFLAGS/CPPFLAGS 227LOCAL_C_INCLUDES_Release := \ 228 $(gyp_shared_intermediate_dir) \ 229 $(PWD)/frameworks/wilhelm/include \ 230 $(PWD)/bionic \ 231 $(PWD)/external/stlport/stlport 232 233 234# Flags passed to only C++ (and not C) files. 235LOCAL_CPPFLAGS_Release := \ 236 -fno-exceptions \ 237 -fno-rtti \ 238 -fno-threadsafe-statics \ 239 -fvisibility-inlines-hidden \ 240 -Wsign-compare \ 241 -Wno-abi \ 242 -std=gnu++11 \ 243 -Wno-narrowing \ 244 -Wno-literal-suffix \ 245 -Wno-non-virtual-dtor \ 246 -Wno-sign-promo 247 248 249LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 250LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 251LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 252LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 253### Rules for final target. 254# Add target alias to "gyp_all_modules" target. 255.PHONY: gyp_all_modules 256gyp_all_modules: ui_gl_surface_jni_headers_gyp 257 258# Alias gyp target name. 259.PHONY: surface_jni_headers 260surface_jni_headers: ui_gl_surface_jni_headers_gyp 261 262LOCAL_MODULE_PATH := $(PRODUCT_OUT)/gyp_stamp 263LOCAL_UNINSTALLABLE_MODULE := true 264LOCAL_2ND_ARCH_VAR_PREFIX := $(GYP_VAR_PREFIX) 265 266include $(BUILD_SYSTEM)/base_rules.mk 267 268$(LOCAL_BUILT_MODULE): $(LOCAL_ADDITIONAL_DEPENDENCIES) 269 $(hide) echo "Gyp timestamp: $@" 270 $(hide) mkdir -p $(dir $@) 271 $(hide) touch $@ 272 273LOCAL_2ND_ARCH_VAR_PREFIX := 274