1# This file is generated by gyp; do not edit. 2 3include $(CLEAR_VARS) 4 5LOCAL_MODULE_CLASS := STATIC_LIBRARIES 6LOCAL_MODULE := gpu_command_buffer_service_gyp 7LOCAL_MODULE_SUFFIX := .a 8LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 9gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 11 12# Make sure our deps are built first. 13GYP_TARGET_DEPENDENCIES := \ 14 $(call intermediates-dir-for,STATIC_LIBRARIES,gpu_disk_cache_proto_gyp,,,$(GYP_VAR_PREFIX))/gpu_disk_cache_proto_gyp.a \ 15 $(call intermediates-dir-for,GYP,third_party_khronos_khronos_headers_gyp,,,$(GYP_VAR_PREFIX))/khronos_headers.stamp \ 16 $(call intermediates-dir-for,STATIC_LIBRARIES,skia_skia_library_gyp,,,$(GYP_VAR_PREFIX))/skia_skia_library_gyp.a \ 17 $(call intermediates-dir-for,STATIC_LIBRARIES,ui_gl_gl_gyp,,,$(GYP_VAR_PREFIX))/ui_gl_gl_gyp.a 18 19GYP_GENERATED_OUTPUTS := 20 21# Make sure our deps and generated files are built first. 22LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 23 24LOCAL_CPP_EXTENSION := .cc 25LOCAL_GENERATED_SOURCES := 26 27GYP_COPIED_SOURCE_ORIGIN_DIRS := 28 29LOCAL_SRC_FILES := \ 30 gpu/command_buffer/service/async_pixel_transfer_delegate.cc \ 31 gpu/command_buffer/service/async_pixel_transfer_manager_android.cc \ 32 gpu/command_buffer/service/async_pixel_transfer_manager_idle.cc \ 33 gpu/command_buffer/service/async_pixel_transfer_manager_share_group.cc \ 34 gpu/command_buffer/service/async_pixel_transfer_manager_stub.cc \ 35 gpu/command_buffer/service/async_pixel_transfer_manager_sync.cc \ 36 gpu/command_buffer/service/async_pixel_transfer_manager.cc \ 37 gpu/command_buffer/service/buffer_manager.cc \ 38 gpu/command_buffer/service/cmd_parser.cc \ 39 gpu/command_buffer/service/command_buffer_service.cc \ 40 gpu/command_buffer/service/common_decoder.cc \ 41 gpu/command_buffer/service/context_group.cc \ 42 gpu/command_buffer/service/context_state.cc \ 43 gpu/command_buffer/service/error_state.cc \ 44 gpu/command_buffer/service/feature_info.cc \ 45 gpu/command_buffer/service/framebuffer_manager.cc \ 46 gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc \ 47 gpu/command_buffer/service/gles2_cmd_decoder.cc \ 48 gpu/command_buffer/service/gles2_cmd_validation.cc \ 49 gpu/command_buffer/service/gl_context_virtual.cc \ 50 gpu/command_buffer/service/gl_state_restorer_impl.cc \ 51 gpu/command_buffer/service/gpu_scheduler.cc \ 52 gpu/command_buffer/service/gpu_state_tracer.cc \ 53 gpu/command_buffer/service/gpu_switches.cc \ 54 gpu/command_buffer/service/gpu_tracer.cc \ 55 gpu/command_buffer/service/id_manager.cc \ 56 gpu/command_buffer/service/image_manager.cc \ 57 gpu/command_buffer/service/in_process_command_buffer.cc \ 58 gpu/command_buffer/service/logger.cc \ 59 gpu/command_buffer/service/mailbox_manager.cc \ 60 gpu/command_buffer/service/mailbox_synchronizer.cc \ 61 gpu/command_buffer/service/memory_program_cache.cc \ 62 gpu/command_buffer/service/program_manager.cc \ 63 gpu/command_buffer/service/query_manager.cc \ 64 gpu/command_buffer/service/renderbuffer_manager.cc \ 65 gpu/command_buffer/service/program_cache.cc \ 66 gpu/command_buffer/service/shader_manager.cc \ 67 gpu/command_buffer/service/shader_translator.cc \ 68 gpu/command_buffer/service/shader_translator_cache.cc \ 69 gpu/command_buffer/service/stream_texture_manager_in_process_android.cc \ 70 gpu/command_buffer/service/texture_definition.cc \ 71 gpu/command_buffer/service/texture_manager.cc \ 72 gpu/command_buffer/service/transfer_buffer_manager.cc \ 73 gpu/command_buffer/service/vertex_array_manager.cc \ 74 gpu/command_buffer/service/vertex_attrib_manager.cc \ 75 gpu/command_buffer/service/async_pixel_transfer_manager_egl.cc 76 77 78# Flags passed to both C and C++ files. 79MY_CFLAGS_Debug := \ 80 -fstack-protector \ 81 --param=ssp-buffer-size=4 \ 82 -Werror \ 83 -fno-strict-aliasing \ 84 -Wall \ 85 -Wno-unused-parameter \ 86 -Wno-missing-field-initializers \ 87 -fvisibility=hidden \ 88 -pipe \ 89 -fPIC \ 90 -Wno-unused-local-typedefs \ 91 -fno-tree-sra \ 92 -fno-caller-saves \ 93 -Wno-psabi \ 94 -fno-partial-inlining \ 95 -fno-early-inlining \ 96 -fno-tree-copy-prop \ 97 -fno-tree-loop-optimize \ 98 -fno-move-loop-invariants \ 99 -ffunction-sections \ 100 -funwind-tables \ 101 -g \ 102 -fstack-protector \ 103 -fno-short-enums \ 104 -finline-limit=64 \ 105 -Wa,--noexecstack \ 106 -U_FORTIFY_SOURCE \ 107 -Wno-extra \ 108 -Wno-ignored-qualifiers \ 109 -Wno-type-limits \ 110 -Wno-unused-but-set-variable \ 111 -Os \ 112 -g \ 113 -gdwarf-4 \ 114 -fdata-sections \ 115 -ffunction-sections \ 116 -fomit-frame-pointer \ 117 -funwind-tables 118 119MY_DEFS_Debug := \ 120 '-DV8_DEPRECATION_WARNINGS' \ 121 '-D_FILE_OFFSET_BITS=64' \ 122 '-DNO_TCMALLOC' \ 123 '-DDISABLE_NACL' \ 124 '-DCHROMIUM_BUILD' \ 125 '-DUSE_LIBJPEG_TURBO=1' \ 126 '-DENABLE_WEBRTC=1' \ 127 '-DUSE_PROPRIETARY_CODECS' \ 128 '-DENABLE_BROWSER_CDMS' \ 129 '-DENABLE_CONFIGURATION_POLICY' \ 130 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 131 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 132 '-DENABLE_EGLIMAGE=1' \ 133 '-DCLD_VERSION=1' \ 134 '-DENABLE_PRINTING=1' \ 135 '-DENABLE_MANAGED_USERS=1' \ 136 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 137 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 138 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 139 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 140 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 141 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 142 '-DVIDEO_HOLE=1' \ 143 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 144 '-DPROTOBUF_USE_DLLS' \ 145 '-DGOOGLE_PROTOBUF_NO_RTTI' \ 146 '-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \ 147 '-DSK_ENABLE_INST_COUNT=0' \ 148 '-DSK_SUPPORT_GPU=1' \ 149 '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \ 150 '-DSK_ENABLE_LEGACY_API_ALIASING=1' \ 151 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 152 '-DGR_GL_IGNORE_ES3_MSAA=0' \ 153 '-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \ 154 '-DSK_SUPPORT_LEGACY_TEXTRENDERMODE' \ 155 '-DSK_BUILD_FOR_ANDROID' \ 156 '-DSK_USE_POSIX_THREADS' \ 157 '-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \ 158 '-DSK_FM_NEW_MATCH_FAMILY_STYLE_CHARACTER=1' \ 159 '-DU_USING_ICU_NAMESPACE=0' \ 160 '-DU_ENABLE_DYLOAD=0' \ 161 '-DMESA_EGL_NO_X11_HEADERS' \ 162 '-DUSE_OPENSSL=1' \ 163 '-DUSE_OPENSSL_CERTS=1' \ 164 '-D__STDC_CONSTANT_MACROS' \ 165 '-D__STDC_FORMAT_MACROS' \ 166 '-DANDROID' \ 167 '-D__GNU_SOURCE=1' \ 168 '-DUSE_STLPORT=1' \ 169 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 170 '-DCHROME_BUILD_ID=""' \ 171 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 172 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 173 '-D_DEBUG' 174 175 176# Include paths placed before CFLAGS/CPPFLAGS 177LOCAL_C_INCLUDES_Debug := \ 178 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 179 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 180 $(gyp_shared_intermediate_dir) \ 181 $(LOCAL_PATH) \ 182 $(LOCAL_PATH)/third_party/khronos \ 183 $(LOCAL_PATH)/gpu \ 184 $(LOCAL_PATH)/skia/config \ 185 $(gyp_shared_intermediate_dir)/protoc_out \ 186 $(LOCAL_PATH)/third_party/protobuf \ 187 $(LOCAL_PATH)/third_party/protobuf/src \ 188 $(LOCAL_PATH)/third_party/re2 \ 189 $(LOCAL_PATH)/third_party/skia/src/core \ 190 $(LOCAL_PATH)/third_party/skia/include/core \ 191 $(LOCAL_PATH)/third_party/skia/include/effects \ 192 $(LOCAL_PATH)/third_party/skia/include/pdf \ 193 $(LOCAL_PATH)/third_party/skia/include/gpu \ 194 $(LOCAL_PATH)/third_party/skia/include/lazy \ 195 $(LOCAL_PATH)/third_party/skia/include/pathops \ 196 $(LOCAL_PATH)/third_party/skia/include/pipe \ 197 $(LOCAL_PATH)/third_party/skia/include/ports \ 198 $(LOCAL_PATH)/third_party/skia/include/utils \ 199 $(LOCAL_PATH)/skia/ext \ 200 $(PWD)/external/icu/icu4c/source/common \ 201 $(PWD)/external/icu/icu4c/source/i18n \ 202 $(gyp_shared_intermediate_dir)/ui/gl \ 203 $(LOCAL_PATH)/third_party/mesa/src/include \ 204 $(PWD)/frameworks/wilhelm/include \ 205 $(PWD)/bionic \ 206 $(PWD)/external/stlport/stlport 207 208 209# Flags passed to only C++ (and not C) files. 210LOCAL_CPPFLAGS_Debug := \ 211 -fno-exceptions \ 212 -fno-rtti \ 213 -fno-threadsafe-statics \ 214 -fvisibility-inlines-hidden \ 215 -Wsign-compare \ 216 -Wno-abi \ 217 -std=gnu++11 \ 218 -Wno-narrowing \ 219 -Wno-literal-suffix \ 220 -Wno-non-virtual-dtor \ 221 -Wno-sign-promo 222 223 224# Flags passed to both C and C++ files. 225MY_CFLAGS_Release := \ 226 -fstack-protector \ 227 --param=ssp-buffer-size=4 \ 228 -Werror \ 229 -fno-strict-aliasing \ 230 -Wall \ 231 -Wno-unused-parameter \ 232 -Wno-missing-field-initializers \ 233 -fvisibility=hidden \ 234 -pipe \ 235 -fPIC \ 236 -Wno-unused-local-typedefs \ 237 -fno-tree-sra \ 238 -fno-caller-saves \ 239 -Wno-psabi \ 240 -fno-partial-inlining \ 241 -fno-early-inlining \ 242 -fno-tree-copy-prop \ 243 -fno-tree-loop-optimize \ 244 -fno-move-loop-invariants \ 245 -ffunction-sections \ 246 -funwind-tables \ 247 -g \ 248 -fstack-protector \ 249 -fno-short-enums \ 250 -finline-limit=64 \ 251 -Wa,--noexecstack \ 252 -U_FORTIFY_SOURCE \ 253 -Wno-extra \ 254 -Wno-ignored-qualifiers \ 255 -Wno-type-limits \ 256 -Wno-unused-but-set-variable \ 257 -fno-ident \ 258 -fdata-sections \ 259 -ffunction-sections \ 260 -fomit-frame-pointer \ 261 -funwind-tables \ 262 -O2 263 264MY_DEFS_Release := \ 265 '-DV8_DEPRECATION_WARNINGS' \ 266 '-D_FILE_OFFSET_BITS=64' \ 267 '-DNO_TCMALLOC' \ 268 '-DDISABLE_NACL' \ 269 '-DCHROMIUM_BUILD' \ 270 '-DUSE_LIBJPEG_TURBO=1' \ 271 '-DENABLE_WEBRTC=1' \ 272 '-DUSE_PROPRIETARY_CODECS' \ 273 '-DENABLE_BROWSER_CDMS' \ 274 '-DENABLE_CONFIGURATION_POLICY' \ 275 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 276 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 277 '-DENABLE_EGLIMAGE=1' \ 278 '-DCLD_VERSION=1' \ 279 '-DENABLE_PRINTING=1' \ 280 '-DENABLE_MANAGED_USERS=1' \ 281 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 282 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 283 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 284 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 285 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 286 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 287 '-DVIDEO_HOLE=1' \ 288 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 289 '-DPROTOBUF_USE_DLLS' \ 290 '-DGOOGLE_PROTOBUF_NO_RTTI' \ 291 '-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \ 292 '-DSK_ENABLE_INST_COUNT=0' \ 293 '-DSK_SUPPORT_GPU=1' \ 294 '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \ 295 '-DSK_ENABLE_LEGACY_API_ALIASING=1' \ 296 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 297 '-DGR_GL_IGNORE_ES3_MSAA=0' \ 298 '-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \ 299 '-DSK_SUPPORT_LEGACY_TEXTRENDERMODE' \ 300 '-DSK_BUILD_FOR_ANDROID' \ 301 '-DSK_USE_POSIX_THREADS' \ 302 '-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \ 303 '-DSK_FM_NEW_MATCH_FAMILY_STYLE_CHARACTER=1' \ 304 '-DU_USING_ICU_NAMESPACE=0' \ 305 '-DU_ENABLE_DYLOAD=0' \ 306 '-DMESA_EGL_NO_X11_HEADERS' \ 307 '-DUSE_OPENSSL=1' \ 308 '-DUSE_OPENSSL_CERTS=1' \ 309 '-D__STDC_CONSTANT_MACROS' \ 310 '-D__STDC_FORMAT_MACROS' \ 311 '-DANDROID' \ 312 '-D__GNU_SOURCE=1' \ 313 '-DUSE_STLPORT=1' \ 314 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 315 '-DCHROME_BUILD_ID=""' \ 316 '-DNDEBUG' \ 317 '-DNVALGRIND' \ 318 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 319 '-D_FORTIFY_SOURCE=2' 320 321 322# Include paths placed before CFLAGS/CPPFLAGS 323LOCAL_C_INCLUDES_Release := \ 324 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 325 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 326 $(gyp_shared_intermediate_dir) \ 327 $(LOCAL_PATH) \ 328 $(LOCAL_PATH)/third_party/khronos \ 329 $(LOCAL_PATH)/gpu \ 330 $(LOCAL_PATH)/skia/config \ 331 $(gyp_shared_intermediate_dir)/protoc_out \ 332 $(LOCAL_PATH)/third_party/protobuf \ 333 $(LOCAL_PATH)/third_party/protobuf/src \ 334 $(LOCAL_PATH)/third_party/re2 \ 335 $(LOCAL_PATH)/third_party/skia/src/core \ 336 $(LOCAL_PATH)/third_party/skia/include/core \ 337 $(LOCAL_PATH)/third_party/skia/include/effects \ 338 $(LOCAL_PATH)/third_party/skia/include/pdf \ 339 $(LOCAL_PATH)/third_party/skia/include/gpu \ 340 $(LOCAL_PATH)/third_party/skia/include/lazy \ 341 $(LOCAL_PATH)/third_party/skia/include/pathops \ 342 $(LOCAL_PATH)/third_party/skia/include/pipe \ 343 $(LOCAL_PATH)/third_party/skia/include/ports \ 344 $(LOCAL_PATH)/third_party/skia/include/utils \ 345 $(LOCAL_PATH)/skia/ext \ 346 $(PWD)/external/icu/icu4c/source/common \ 347 $(PWD)/external/icu/icu4c/source/i18n \ 348 $(gyp_shared_intermediate_dir)/ui/gl \ 349 $(LOCAL_PATH)/third_party/mesa/src/include \ 350 $(PWD)/frameworks/wilhelm/include \ 351 $(PWD)/bionic \ 352 $(PWD)/external/stlport/stlport 353 354 355# Flags passed to only C++ (and not C) files. 356LOCAL_CPPFLAGS_Release := \ 357 -fno-exceptions \ 358 -fno-rtti \ 359 -fno-threadsafe-statics \ 360 -fvisibility-inlines-hidden \ 361 -Wsign-compare \ 362 -Wno-abi \ 363 -std=gnu++11 \ 364 -Wno-narrowing \ 365 -Wno-literal-suffix \ 366 -Wno-non-virtual-dtor \ 367 -Wno-sign-promo 368 369 370LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 371LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 372LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 373LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 374### Rules for final target. 375 376LOCAL_SHARED_LIBRARIES := \ 377 libstlport \ 378 libdl 379 380# Add target alias to "gyp_all_modules" target. 381.PHONY: gyp_all_modules 382gyp_all_modules: gpu_command_buffer_service_gyp 383 384# Alias gyp target name. 385.PHONY: command_buffer_service 386command_buffer_service: gpu_command_buffer_service_gyp 387 388include $(BUILD_STATIC_LIBRARY) 389