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