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