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