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