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