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 \ 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 -ffunction-sections \ 57 -funwind-tables \ 58 -g \ 59 -fstack-protector \ 60 -fno-short-enums \ 61 -finline-limit=64 \ 62 -Wa,--noexecstack \ 63 -U_FORTIFY_SOURCE \ 64 -Wno-extra \ 65 -Wno-ignored-qualifiers \ 66 -Wno-type-limits \ 67 -Wno-unused-but-set-variable \ 68 -Os \ 69 -g \ 70 -gdwarf-4 \ 71 -fdata-sections \ 72 -ffunction-sections \ 73 -fomit-frame-pointer \ 74 -funwind-tables 75 76MY_DEFS_Debug := \ 77 '-DV8_DEPRECATION_WARNINGS' \ 78 '-D_FILE_OFFSET_BITS=64' \ 79 '-DNO_TCMALLOC' \ 80 '-DDISABLE_NACL' \ 81 '-DCHROMIUM_BUILD' \ 82 '-DUSE_LIBJPEG_TURBO=1' \ 83 '-DENABLE_WEBRTC=1' \ 84 '-DUSE_PROPRIETARY_CODECS' \ 85 '-DENABLE_BROWSER_CDMS' \ 86 '-DENABLE_CONFIGURATION_POLICY' \ 87 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 88 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 89 '-DENABLE_EGLIMAGE=1' \ 90 '-DCLD_VERSION=1' \ 91 '-DENABLE_PRINTING=1' \ 92 '-DENABLE_MANAGED_USERS=1' \ 93 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 94 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 95 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 96 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 97 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 98 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 99 '-DVIDEO_HOLE=1' \ 100 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 101 '-DUSE_OPENSSL=1' \ 102 '-DUSE_OPENSSL_CERTS=1' \ 103 '-D__STDC_CONSTANT_MACROS' \ 104 '-D__STDC_FORMAT_MACROS' \ 105 '-DANDROID' \ 106 '-D__GNU_SOURCE=1' \ 107 '-DUSE_STLPORT=1' \ 108 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 109 '-DCHROME_BUILD_ID=""' \ 110 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 111 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 112 '-D_DEBUG' 113 114 115# Include paths placed before CFLAGS/CPPFLAGS 116LOCAL_C_INCLUDES_Debug := \ 117 $(gyp_shared_intermediate_dir) \ 118 $(PWD)/frameworks/wilhelm/include \ 119 $(PWD)/bionic \ 120 $(PWD)/external/stlport/stlport 121 122 123# Flags passed to only C++ (and not C) files. 124LOCAL_CPPFLAGS_Debug := \ 125 -fno-exceptions \ 126 -fno-rtti \ 127 -fno-threadsafe-statics \ 128 -fvisibility-inlines-hidden \ 129 -Wsign-compare \ 130 -Wno-uninitialized \ 131 -std=gnu++11 \ 132 -Wno-narrowing \ 133 -Wno-literal-suffix \ 134 -Wno-non-virtual-dtor \ 135 -Wno-sign-promo 136 137 138# Flags passed to both C and C++ files. 139MY_CFLAGS_Release := \ 140 -fstack-protector \ 141 --param=ssp-buffer-size=4 \ 142 \ 143 -fno-strict-aliasing \ 144 -Wall \ 145 -Wno-unused-parameter \ 146 -Wno-missing-field-initializers \ 147 -fvisibility=hidden \ 148 -pipe \ 149 -fPIC \ 150 -Wno-unused-local-typedefs \ 151 -ffunction-sections \ 152 -funwind-tables \ 153 -g \ 154 -fstack-protector \ 155 -fno-short-enums \ 156 -finline-limit=64 \ 157 -Wa,--noexecstack \ 158 -U_FORTIFY_SOURCE \ 159 -Wno-extra \ 160 -Wno-ignored-qualifiers \ 161 -Wno-type-limits \ 162 -Wno-unused-but-set-variable \ 163 -Os \ 164 -fno-ident \ 165 -fdata-sections \ 166 -ffunction-sections \ 167 -fomit-frame-pointer \ 168 -funwind-tables 169 170MY_DEFS_Release := \ 171 '-DV8_DEPRECATION_WARNINGS' \ 172 '-D_FILE_OFFSET_BITS=64' \ 173 '-DNO_TCMALLOC' \ 174 '-DDISABLE_NACL' \ 175 '-DCHROMIUM_BUILD' \ 176 '-DUSE_LIBJPEG_TURBO=1' \ 177 '-DENABLE_WEBRTC=1' \ 178 '-DUSE_PROPRIETARY_CODECS' \ 179 '-DENABLE_BROWSER_CDMS' \ 180 '-DENABLE_CONFIGURATION_POLICY' \ 181 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 182 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 183 '-DENABLE_EGLIMAGE=1' \ 184 '-DCLD_VERSION=1' \ 185 '-DENABLE_PRINTING=1' \ 186 '-DENABLE_MANAGED_USERS=1' \ 187 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 188 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 189 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 190 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 191 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 192 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 193 '-DVIDEO_HOLE=1' \ 194 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 195 '-DUSE_OPENSSL=1' \ 196 '-DUSE_OPENSSL_CERTS=1' \ 197 '-D__STDC_CONSTANT_MACROS' \ 198 '-D__STDC_FORMAT_MACROS' \ 199 '-DANDROID' \ 200 '-D__GNU_SOURCE=1' \ 201 '-DUSE_STLPORT=1' \ 202 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 203 '-DCHROME_BUILD_ID=""' \ 204 '-DNDEBUG' \ 205 '-DNVALGRIND' \ 206 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 207 '-D_FORTIFY_SOURCE=2' 208 209 210# Include paths placed before CFLAGS/CPPFLAGS 211LOCAL_C_INCLUDES_Release := \ 212 $(gyp_shared_intermediate_dir) \ 213 $(PWD)/frameworks/wilhelm/include \ 214 $(PWD)/bionic \ 215 $(PWD)/external/stlport/stlport 216 217 218# Flags passed to only C++ (and not C) files. 219LOCAL_CPPFLAGS_Release := \ 220 -fno-exceptions \ 221 -fno-rtti \ 222 -fno-threadsafe-statics \ 223 -fvisibility-inlines-hidden \ 224 -Wsign-compare \ 225 -Wno-uninitialized \ 226 -std=gnu++11 \ 227 -Wno-narrowing \ 228 -Wno-literal-suffix \ 229 -Wno-non-virtual-dtor \ 230 -Wno-sign-promo 231 232 233LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 234LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 235LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 236LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 237### Rules for final target. 238# Add target alias to "gyp_all_modules" target. 239.PHONY: gyp_all_modules 240gyp_all_modules: ui_gl_surface_jni_headers_gyp 241 242# Alias gyp target name. 243.PHONY: surface_jni_headers 244surface_jni_headers: ui_gl_surface_jni_headers_gyp 245 246LOCAL_MODULE_PATH := $(PRODUCT_OUT)/gyp_stamp 247LOCAL_UNINSTALLABLE_MODULE := true 248LOCAL_2ND_ARCH_VAR_PREFIX := $(GYP_VAR_PREFIX) 249 250include $(BUILD_SYSTEM)/base_rules.mk 251 252$(LOCAL_BUILT_MODULE): $(LOCAL_ADDITIONAL_DEPENDENCIES) 253 $(hide) echo "Gyp timestamp: $@" 254 $(hide) mkdir -p $(dir $@) 255 $(hide) touch $@ 256 257LOCAL_2ND_ARCH_VAR_PREFIX := 258