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_implementation_gyp 7 LOCAL_MODULE_SUFFIX := .a 8 LOCAL_MODULE_TAGS := optional 9 gyp_intermediate_dir := $(call local-intermediates-dir) 10 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared) 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)/khronos_headers.stamp \ 15 $(call intermediates-dir-for,STATIC_LIBRARIES,ui_gl_gl_gyp)/ui_gl_gl_gyp.a 16 17 GYP_GENERATED_OUTPUTS := 18 19 # Make sure our deps and generated files are built first. 20 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 21 22 LOCAL_CPP_EXTENSION := .cc 23 LOCAL_GENERATED_SOURCES := 24 25 GYP_COPIED_SOURCE_ORIGIN_DIRS := 26 27 LOCAL_SRC_FILES := \ 28 gpu/command_buffer/client/buffer_tracker.cc \ 29 gpu/command_buffer/client/client_context_state.cc \ 30 gpu/command_buffer/client/gles2_implementation.cc \ 31 gpu/command_buffer/client/gles2_trace_implementation.cc \ 32 gpu/command_buffer/client/gpu_memory_buffer_tracker.cc \ 33 gpu/command_buffer/client/program_info_manager.cc \ 34 gpu/command_buffer/client/query_tracker.cc \ 35 gpu/command_buffer/client/share_group.cc \ 36 gpu/command_buffer/client/vertex_array_object_manager.cc \ 37 gpu/command_buffer/client/gl_in_process_context.cc 38 39 40 # Flags passed to both C and C++ files. 41 MY_CFLAGS_Debug := \ 42 -fstack-protector \ 43 --param=ssp-buffer-size=4 \ 44 \ 45 -fno-exceptions \ 46 -fno-strict-aliasing \ 47 -Wall \ 48 -Wno-unused-parameter \ 49 -Wno-missing-field-initializers \ 50 -fvisibility=hidden \ 51 -pipe \ 52 -fPIC \ 53 -Wno-unknown-pragmas \ 54 -EL \ 55 -mhard-float \ 56 -ffunction-sections \ 57 -funwind-tables \ 58 -g \ 59 -fstack-protector \ 60 -fno-short-enums \ 61 -finline-limit=64 \ 62 -Wa,--noexecstack \ 63 -U_FORTIFY_SOURCE \ 64 -Wno-extra \ 65 -Wno-ignored-qualifiers \ 66 -Wno-type-limits \ 67 -Os \ 68 -g \ 69 -fomit-frame-pointer \ 70 -fdata-sections \ 71 -ffunction-sections 72 73 MY_DEFS_Debug := \ 74 '-DV8_DEPRECATION_WARNINGS' \ 75 '-D_FILE_OFFSET_BITS=64' \ 76 '-DNO_TCMALLOC' \ 77 '-DDISABLE_NACL' \ 78 '-DCHROMIUM_BUILD' \ 79 '-DUSE_LIBJPEG_TURBO=1' \ 80 '-DUSE_PROPRIETARY_CODECS' \ 81 '-DENABLE_CONFIGURATION_POLICY' \ 82 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 83 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 84 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 85 '-DUSE_OPENSSL=1' \ 86 '-DENABLE_EGLIMAGE=1' \ 87 '-DCLD_VERSION=1' \ 88 '-DENABLE_PRINTING=1' \ 89 '-DENABLE_MANAGED_USERS=1' \ 90 '-DGLES2_IMPL_IMPLEMENTATION' \ 91 '-DMESA_EGL_NO_X11_HEADERS' \ 92 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 93 '-DU_USING_ICU_NAMESPACE=0' \ 94 '-D__STDC_CONSTANT_MACROS' \ 95 '-D__STDC_FORMAT_MACROS' \ 96 '-DANDROID' \ 97 '-D__GNU_SOURCE=1' \ 98 '-DUSE_STLPORT=1' \ 99 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 100 '-DCHROME_BUILD_ID=""' \ 101 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 102 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 103 '-D_DEBUG' 104 105 106 # Include paths placed before CFLAGS/CPPFLAGS 107 LOCAL_C_INCLUDES_Debug := \ 108 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 109 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 110 $(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \ 111 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 112 $(LOCAL_PATH)/third_party/khronos \ 113 $(LOCAL_PATH)/gpu \ 114 $(LOCAL_PATH) \ 115 $(LOCAL_PATH)/skia/config \ 116 $(gyp_shared_intermediate_dir)/ui/gl \ 117 $(LOCAL_PATH)/third_party/mesa/src/include \ 118 $(PWD)/external/skia/include \ 119 $(PWD)/external/skia/include/core \ 120 $(LOCAL_PATH)/third_party/skia/src/core \ 121 $(LOCAL_PATH)/skia/ext \ 122 $(PWD)/external/icu4c/common \ 123 $(PWD)/external/icu4c/i18n \ 124 $(PWD)/frameworks/wilhelm/include \ 125 $(PWD)/bionic \ 126 $(PWD)/external/stlport/stlport 127 128 129 # Flags passed to only C++ (and not C) files. 130 LOCAL_CPPFLAGS_Debug := \ 131 -fno-rtti \ 132 -fno-threadsafe-statics \ 133 -fvisibility-inlines-hidden \ 134 -Wsign-compare \ 135 -Wno-uninitialized \ 136 -Wno-error=c++0x-compat \ 137 -Wno-non-virtual-dtor \ 138 -Wno-sign-promo 139 140 141 # Flags passed to both C and C++ files. 142 MY_CFLAGS_Release := \ 143 -fstack-protector \ 144 --param=ssp-buffer-size=4 \ 145 \ 146 -fno-exceptions \ 147 -fno-strict-aliasing \ 148 -Wall \ 149 -Wno-unused-parameter \ 150 -Wno-missing-field-initializers \ 151 -fvisibility=hidden \ 152 -pipe \ 153 -fPIC \ 154 -Wno-unknown-pragmas \ 155 -EL \ 156 -mhard-float \ 157 -ffunction-sections \ 158 -funwind-tables \ 159 -g \ 160 -fstack-protector \ 161 -fno-short-enums \ 162 -finline-limit=64 \ 163 -Wa,--noexecstack \ 164 -U_FORTIFY_SOURCE \ 165 -Wno-extra \ 166 -Wno-ignored-qualifiers \ 167 -Wno-type-limits \ 168 -Os \ 169 -fno-ident \ 170 -fdata-sections \ 171 -ffunction-sections \ 172 -fomit-frame-pointer 173 174 MY_DEFS_Release := \ 175 '-DV8_DEPRECATION_WARNINGS' \ 176 '-D_FILE_OFFSET_BITS=64' \ 177 '-DNO_TCMALLOC' \ 178 '-DDISABLE_NACL' \ 179 '-DCHROMIUM_BUILD' \ 180 '-DUSE_LIBJPEG_TURBO=1' \ 181 '-DUSE_PROPRIETARY_CODECS' \ 182 '-DENABLE_CONFIGURATION_POLICY' \ 183 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 184 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 185 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 186 '-DUSE_OPENSSL=1' \ 187 '-DENABLE_EGLIMAGE=1' \ 188 '-DCLD_VERSION=1' \ 189 '-DENABLE_PRINTING=1' \ 190 '-DENABLE_MANAGED_USERS=1' \ 191 '-DGLES2_IMPL_IMPLEMENTATION' \ 192 '-DMESA_EGL_NO_X11_HEADERS' \ 193 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 194 '-DU_USING_ICU_NAMESPACE=0' \ 195 '-D__STDC_CONSTANT_MACROS' \ 196 '-D__STDC_FORMAT_MACROS' \ 197 '-DANDROID' \ 198 '-D__GNU_SOURCE=1' \ 199 '-DUSE_STLPORT=1' \ 200 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 201 '-DCHROME_BUILD_ID=""' \ 202 '-DNDEBUG' \ 203 '-DNVALGRIND' \ 204 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 205 '-D_FORTIFY_SOURCE=2' 206 207 208 # Include paths placed before CFLAGS/CPPFLAGS 209 LOCAL_C_INCLUDES_Release := \ 210 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 211 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 212 $(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \ 213 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 214 $(LOCAL_PATH)/third_party/khronos \ 215 $(LOCAL_PATH)/gpu \ 216 $(LOCAL_PATH) \ 217 $(LOCAL_PATH)/skia/config \ 218 $(gyp_shared_intermediate_dir)/ui/gl \ 219 $(LOCAL_PATH)/third_party/mesa/src/include \ 220 $(PWD)/external/skia/include \ 221 $(PWD)/external/skia/include/core \ 222 $(LOCAL_PATH)/third_party/skia/src/core \ 223 $(LOCAL_PATH)/skia/ext \ 224 $(PWD)/external/icu4c/common \ 225 $(PWD)/external/icu4c/i18n \ 226 $(PWD)/frameworks/wilhelm/include \ 227 $(PWD)/bionic \ 228 $(PWD)/external/stlport/stlport 229 230 231 # Flags passed to only C++ (and not C) files. 232 LOCAL_CPPFLAGS_Release := \ 233 -fno-rtti \ 234 -fno-threadsafe-statics \ 235 -fvisibility-inlines-hidden \ 236 -Wsign-compare \ 237 -Wno-uninitialized \ 238 -Wno-error=c++0x-compat \ 239 -Wno-non-virtual-dtor \ 240 -Wno-sign-promo 241 242 243 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 244 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 245 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 246 ### Rules for final target. 247 248 LOCAL_LDFLAGS_Debug := \ 249 -Wl,-z,now \ 250 -Wl,-z,relro \ 251 -Wl,-z,noexecstack \ 252 -fPIC \ 253 -EL \ 254 -Wl,--no-keep-memory \ 255 -nostdlib \ 256 -Wl,--no-undefined \ 257 -Wl,--exclude-libs=ALL \ 258 -Wl,--fatal-warnings \ 259 -Wl,--gc-sections \ 260 -Wl,--warn-shared-textrel \ 261 -Wl,-O1 \ 262 -Wl,--as-needed 263 264 265 LOCAL_LDFLAGS_Release := \ 266 -Wl,-z,now \ 267 -Wl,-z,relro \ 268 -Wl,-z,noexecstack \ 269 -fPIC \ 270 -EL \ 271 -Wl,--no-keep-memory \ 272 -nostdlib \ 273 -Wl,--no-undefined \ 274 -Wl,--exclude-libs=ALL \ 275 -Wl,-O1 \ 276 -Wl,--as-needed \ 277 -Wl,--gc-sections \ 278 -Wl,--fatal-warnings \ 279 -Wl,--warn-shared-textrel 280 281 282 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 283 284 LOCAL_STATIC_LIBRARIES := \ 285 ui_gl_gl_gyp 286 287 # Enable grouping to fix circular references 288 LOCAL_GROUP_STATIC_LIBRARIES := true 289 290 LOCAL_SHARED_LIBRARIES := \ 291 libskia \ 292 libstlport \ 293 libdl 294 295 # Add target alias to "gyp_all_modules" target. 296 .PHONY: gyp_all_modules 297 gyp_all_modules: gpu_gles2_implementation_gyp 298 299 # Alias gyp target name. 300 .PHONY: gles2_implementation 301 gles2_implementation: gpu_gles2_implementation_gyp 302 303 include $(BUILD_STATIC_LIBRARY) 304