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_gles2_c_lib_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 15 GYP_GENERATED_OUTPUTS := 16 17 # Make sure our deps and generated files are built first. 18 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 19 20 LOCAL_CPP_EXTENSION := .cc 21 LOCAL_GENERATED_SOURCES := 22 23 GYP_COPIED_SOURCE_ORIGIN_DIRS := 24 25 LOCAL_SRC_FILES := \ 26 gpu/command_buffer/client/gles2_c_lib.cc \ 27 gpu/command_buffer/client/gles2_lib.cc 28 29 30 # Flags passed to both C and C++ files. 31 MY_CFLAGS_Debug := \ 32 --param=ssp-buffer-size=4 \ 33 -Werror \ 34 -fno-strict-aliasing \ 35 -Wall \ 36 -Wno-unused-parameter \ 37 -Wno-missing-field-initializers \ 38 -fvisibility=hidden \ 39 -pipe \ 40 -fPIC \ 41 -Wno-unused-local-typedefs \ 42 -ffunction-sections \ 43 -funwind-tables \ 44 -g \ 45 -fno-short-enums \ 46 -finline-limit=64 \ 47 -Wa,--noexecstack \ 48 -U_FORTIFY_SOURCE \ 49 -Wno-extra \ 50 -Wno-ignored-qualifiers \ 51 -Wno-type-limits \ 52 -Wno-unused-but-set-variable \ 53 -Os \ 54 -g \ 55 -gdwarf-4 \ 56 -fdata-sections \ 57 -ffunction-sections \ 58 -funwind-tables 59 60 MY_DEFS_Debug := \ 61 '-DV8_DEPRECATION_WARNINGS' \ 62 '-D_FILE_OFFSET_BITS=64' \ 63 '-DNO_TCMALLOC' \ 64 '-DDISABLE_NACL' \ 65 '-DCHROMIUM_BUILD' \ 66 '-DUSE_LIBJPEG_TURBO=1' \ 67 '-DENABLE_WEBRTC=1' \ 68 '-DUSE_PROPRIETARY_CODECS' \ 69 '-DENABLE_BROWSER_CDMS' \ 70 '-DENABLE_CONFIGURATION_POLICY' \ 71 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 72 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 73 '-DENABLE_EGLIMAGE=1' \ 74 '-DCLD_VERSION=1' \ 75 '-DENABLE_PRINTING=1' \ 76 '-DENABLE_MANAGED_USERS=1' \ 77 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 78 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 79 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 80 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 81 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 82 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 83 '-DVIDEO_HOLE=1' \ 84 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 85 '-DGLES2_C_LIB_IMPLEMENTATION' \ 86 '-DUSE_OPENSSL=1' \ 87 '-DUSE_OPENSSL_CERTS=1' \ 88 '-D__STDC_CONSTANT_MACROS' \ 89 '-D__STDC_FORMAT_MACROS' \ 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 101 LOCAL_C_INCLUDES_Debug := \ 102 $(gyp_shared_intermediate_dir) \ 103 $(LOCAL_PATH)/third_party/khronos \ 104 $(LOCAL_PATH)/gpu \ 105 $(LOCAL_PATH) \ 106 $(PWD)/frameworks/wilhelm/include \ 107 $(PWD)/bionic \ 108 $(PWD)/external/stlport/stlport 109 110 111 # Flags passed to only C++ (and not C) files. 112 LOCAL_CPPFLAGS_Debug := \ 113 -fno-exceptions \ 114 -fno-rtti \ 115 -fno-threadsafe-statics \ 116 -fvisibility-inlines-hidden \ 117 -Wsign-compare \ 118 -std=gnu++11 \ 119 -Wno-narrowing \ 120 -Wno-literal-suffix \ 121 -Wno-non-virtual-dtor \ 122 -Wno-sign-promo 123 124 125 # Flags passed to both C and C++ files. 126 MY_CFLAGS_Release := \ 127 --param=ssp-buffer-size=4 \ 128 -Werror \ 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 154 MY_DEFS_Release := \ 155 '-DV8_DEPRECATION_WARNINGS' \ 156 '-D_FILE_OFFSET_BITS=64' \ 157 '-DNO_TCMALLOC' \ 158 '-DDISABLE_NACL' \ 159 '-DCHROMIUM_BUILD' \ 160 '-DUSE_LIBJPEG_TURBO=1' \ 161 '-DENABLE_WEBRTC=1' \ 162 '-DUSE_PROPRIETARY_CODECS' \ 163 '-DENABLE_BROWSER_CDMS' \ 164 '-DENABLE_CONFIGURATION_POLICY' \ 165 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 166 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 167 '-DENABLE_EGLIMAGE=1' \ 168 '-DCLD_VERSION=1' \ 169 '-DENABLE_PRINTING=1' \ 170 '-DENABLE_MANAGED_USERS=1' \ 171 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 172 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 173 '-DDATA_REDUCTION_DEV_FALLBACK_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 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 179 '-DGLES2_C_LIB_IMPLEMENTATION' \ 180 '-DUSE_OPENSSL=1' \ 181 '-DUSE_OPENSSL_CERTS=1' \ 182 '-D__STDC_CONSTANT_MACROS' \ 183 '-D__STDC_FORMAT_MACROS' \ 184 '-DANDROID' \ 185 '-D__GNU_SOURCE=1' \ 186 '-DUSE_STLPORT=1' \ 187 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 188 '-DCHROME_BUILD_ID=""' \ 189 '-DNDEBUG' \ 190 '-DNVALGRIND' \ 191 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 192 '-D_FORTIFY_SOURCE=2' 193 194 195 # Include paths placed before CFLAGS/CPPFLAGS 196 LOCAL_C_INCLUDES_Release := \ 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. 207 LOCAL_CPPFLAGS_Release := \ 208 -fno-exceptions \ 209 -fno-rtti \ 210 -fno-threadsafe-statics \ 211 -fvisibility-inlines-hidden \ 212 -Wsign-compare \ 213 -std=gnu++11 \ 214 -Wno-narrowing \ 215 -Wno-literal-suffix \ 216 -Wno-non-virtual-dtor \ 217 -Wno-sign-promo 218 219 220 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 221 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 222 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 223 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 224 ### Rules for final target. 225 226 LOCAL_SHARED_LIBRARIES := \ 227 libstlport \ 228 libdl 229 230 # Add target alias to "gyp_all_modules" target. 231 .PHONY: gyp_all_modules 232 gyp_all_modules: gpu_gles2_c_lib_gyp 233 234 # Alias gyp target name. 235 .PHONY: gles2_c_lib 236 gles2_c_lib: gpu_gles2_c_lib_gyp 237 238 include $(BUILD_STATIC_LIBRARY) 239