1# This file is generated by gyp; do not edit. 2 3include $(CLEAR_VARS) 4 5LOCAL_MODULE_CLASS := STATIC_LIBRARIES 6LOCAL_MODULE := gpu_command_buffer_gles2_utils_gyp 7LOCAL_MODULE_SUFFIX := .a 8LOCAL_MODULE_TAGS := optional 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,third_party_khronos_khronos_headers_gyp,,,$(GYP_VAR_PREFIX))/khronos_headers.stamp 16 17GYP_GENERATED_OUTPUTS := 18 19# Make sure our deps and generated files are built first. 20LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 21 22LOCAL_CPP_EXTENSION := .cc 23LOCAL_GENERATED_SOURCES := 24 25GYP_COPIED_SOURCE_ORIGIN_DIRS := 26 27LOCAL_SRC_FILES := \ 28 gpu/command_buffer/common/gles2_cmd_utils.cc 29 30 31# Flags passed to both C and C++ files. 32MY_CFLAGS_Debug := \ 33 --param=ssp-buffer-size=4 \ 34 -Werror \ 35 -fno-exceptions \ 36 -fno-strict-aliasing \ 37 -Wall \ 38 -Wno-unused-parameter \ 39 -Wno-missing-field-initializers \ 40 -fvisibility=hidden \ 41 -pipe \ 42 -fPIC \ 43 -Wno-unused-local-typedefs \ 44 -ffunction-sections \ 45 -funwind-tables \ 46 -g \ 47 -fno-short-enums \ 48 -finline-limit=64 \ 49 -Wa,--noexecstack \ 50 -U_FORTIFY_SOURCE \ 51 -Wno-extra \ 52 -Wno-ignored-qualifiers \ 53 -Wno-type-limits \ 54 -Wno-unused-but-set-variable \ 55 -Os \ 56 -g \ 57 -fdata-sections \ 58 -ffunction-sections \ 59 -funwind-tables 60 61MY_DEFS_Debug := \ 62 '-DV8_DEPRECATION_WARNINGS' \ 63 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 64 '-D_FILE_OFFSET_BITS=64' \ 65 '-DNO_TCMALLOC' \ 66 '-DDISABLE_NACL' \ 67 '-DCHROMIUM_BUILD' \ 68 '-DUSE_LIBJPEG_TURBO=1' \ 69 '-DENABLE_WEBRTC=1' \ 70 '-DUSE_PROPRIETARY_CODECS' \ 71 '-DENABLE_BROWSER_CDMS' \ 72 '-DENABLE_CONFIGURATION_POLICY' \ 73 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 74 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 75 '-DENABLE_EGLIMAGE=1' \ 76 '-DCLD_VERSION=1' \ 77 '-DENABLE_PRINTING=1' \ 78 '-DENABLE_MANAGED_USERS=1' \ 79 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 80 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 81 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 82 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 83 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 84 '-DVIDEO_HOLE=1' \ 85 '-DUSE_OPENSSL=1' \ 86 '-DUSE_OPENSSL_CERTS=1' \ 87 '-D__STDC_CONSTANT_MACROS' \ 88 '-D__STDC_FORMAT_MACROS' \ 89 '-DGLES2_UTILS_IMPLEMENTATION' \ 90 '-DANDROID' \ 91 '-D__GNU_SOURCE=1' \ 92 '-DUSE_STLPORT=1' \ 93 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 94 '-DCHROME_BUILD_ID=""' \ 95 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 96 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 97 '-D_DEBUG' 98 99 100# Include paths placed before CFLAGS/CPPFLAGS 101LOCAL_C_INCLUDES_Debug := \ 102 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 103 $(gyp_shared_intermediate_dir) \ 104 $(LOCAL_PATH)/third_party/khronos \ 105 $(LOCAL_PATH)/gpu \ 106 $(LOCAL_PATH) \ 107 $(PWD)/frameworks/wilhelm/include \ 108 $(PWD)/bionic \ 109 $(PWD)/external/stlport/stlport 110 111 112# Flags passed to only C++ (and not C) files. 113LOCAL_CPPFLAGS_Debug := \ 114 -fno-rtti \ 115 -fno-threadsafe-statics \ 116 -fvisibility-inlines-hidden \ 117 -Wsign-compare \ 118 -Wno-non-virtual-dtor \ 119 -Wno-sign-promo 120 121 122LOCAL_FDO_SUPPORT_Debug := false 123 124# Flags passed to both C and C++ files. 125MY_CFLAGS_Release := \ 126 --param=ssp-buffer-size=4 \ 127 -Werror \ 128 -fno-exceptions \ 129 -fno-strict-aliasing \ 130 -Wall \ 131 -Wno-unused-parameter \ 132 -Wno-missing-field-initializers \ 133 -fvisibility=hidden \ 134 -pipe \ 135 -fPIC \ 136 -Wno-unused-local-typedefs \ 137 -ffunction-sections \ 138 -funwind-tables \ 139 -g \ 140 -fno-short-enums \ 141 -finline-limit=64 \ 142 -Wa,--noexecstack \ 143 -U_FORTIFY_SOURCE \ 144 -Wno-extra \ 145 -Wno-ignored-qualifiers \ 146 -Wno-type-limits \ 147 -Wno-unused-but-set-variable \ 148 -Os \ 149 -fno-ident \ 150 -fdata-sections \ 151 -ffunction-sections \ 152 -funwind-tables 153 154MY_DEFS_Release := \ 155 '-DV8_DEPRECATION_WARNINGS' \ 156 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 157 '-D_FILE_OFFSET_BITS=64' \ 158 '-DNO_TCMALLOC' \ 159 '-DDISABLE_NACL' \ 160 '-DCHROMIUM_BUILD' \ 161 '-DUSE_LIBJPEG_TURBO=1' \ 162 '-DENABLE_WEBRTC=1' \ 163 '-DUSE_PROPRIETARY_CODECS' \ 164 '-DENABLE_BROWSER_CDMS' \ 165 '-DENABLE_CONFIGURATION_POLICY' \ 166 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 167 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 168 '-DENABLE_EGLIMAGE=1' \ 169 '-DCLD_VERSION=1' \ 170 '-DENABLE_PRINTING=1' \ 171 '-DENABLE_MANAGED_USERS=1' \ 172 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 173 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 174 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 175 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 176 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 177 '-DVIDEO_HOLE=1' \ 178 '-DUSE_OPENSSL=1' \ 179 '-DUSE_OPENSSL_CERTS=1' \ 180 '-D__STDC_CONSTANT_MACROS' \ 181 '-D__STDC_FORMAT_MACROS' \ 182 '-DGLES2_UTILS_IMPLEMENTATION' \ 183 '-DANDROID' \ 184 '-D__GNU_SOURCE=1' \ 185 '-DUSE_STLPORT=1' \ 186 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 187 '-DCHROME_BUILD_ID=""' \ 188 '-DNDEBUG' \ 189 '-DNVALGRIND' \ 190 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 191 '-D_FORTIFY_SOURCE=2' 192 193 194# Include paths placed before CFLAGS/CPPFLAGS 195LOCAL_C_INCLUDES_Release := \ 196 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 197 $(gyp_shared_intermediate_dir) \ 198 $(LOCAL_PATH)/third_party/khronos \ 199 $(LOCAL_PATH)/gpu \ 200 $(LOCAL_PATH) \ 201 $(PWD)/frameworks/wilhelm/include \ 202 $(PWD)/bionic \ 203 $(PWD)/external/stlport/stlport 204 205 206# Flags passed to only C++ (and not C) files. 207LOCAL_CPPFLAGS_Release := \ 208 -fno-rtti \ 209 -fno-threadsafe-statics \ 210 -fvisibility-inlines-hidden \ 211 -Wsign-compare \ 212 -Wno-non-virtual-dtor \ 213 -Wno-sign-promo 214 215 216LOCAL_FDO_SUPPORT_Release := false 217 218LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 219LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION)) 220LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 221LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 222LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 223### Rules for final target. 224 225LOCAL_LDFLAGS_Debug := \ 226 -Wl,-z,now \ 227 -Wl,-z,relro \ 228 -Wl,--fatal-warnings \ 229 -Wl,-z,noexecstack \ 230 -fPIC \ 231 -nostdlib \ 232 -Wl,--no-undefined \ 233 -Wl,--exclude-libs=ALL \ 234 -Wl,--warn-shared-textrel \ 235 -Wl,-O1 \ 236 -Wl,--as-needed 237 238 239LOCAL_LDFLAGS_Release := \ 240 -Wl,-z,now \ 241 -Wl,-z,relro \ 242 -Wl,--fatal-warnings \ 243 -Wl,-z,noexecstack \ 244 -fPIC \ 245 -nostdlib \ 246 -Wl,--no-undefined \ 247 -Wl,--exclude-libs=ALL \ 248 -Wl,-O1 \ 249 -Wl,--as-needed \ 250 -Wl,--gc-sections \ 251 -Wl,--warn-shared-textrel 252 253 254LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 255 256LOCAL_STATIC_LIBRARIES := 257 258# Enable grouping to fix circular references 259LOCAL_GROUP_STATIC_LIBRARIES := true 260 261LOCAL_SHARED_LIBRARIES := \ 262 libstlport \ 263 libdl 264 265# Add target alias to "gyp_all_modules" target. 266.PHONY: gyp_all_modules 267gyp_all_modules: gpu_command_buffer_gles2_utils_gyp 268 269# Alias gyp target name. 270.PHONY: gles2_utils 271gles2_utils: gpu_command_buffer_gles2_utils_gyp 272 273include $(BUILD_STATIC_LIBRARY) 274