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_service_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,STATIC_LIBRARIES,gpu_disk_cache_proto_gyp)/gpu_disk_cache_proto_gyp.a \ 15 $(call intermediates-dir-for,STATIC_LIBRARIES,ui_gl_gl_gyp)/ui_gl_gl_gyp.a \ 16 $(call intermediates-dir-for,STATIC_LIBRARIES,ui_ui_gyp)/ui_ui_gyp.a \ 17 $(call intermediates-dir-for,GYP,third_party_khronos_khronos_headers_gyp)/khronos_headers.stamp 18 19 GYP_GENERATED_OUTPUTS := 20 21 # Make sure our deps and generated files are built first. 22 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 23 24 LOCAL_CPP_EXTENSION := .cc 25 LOCAL_GENERATED_SOURCES := 26 27 GYP_COPIED_SOURCE_ORIGIN_DIRS := 28 29 LOCAL_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_switches.cc \ 53 gpu/command_buffer/service/gpu_tracer.cc \ 54 gpu/command_buffer/service/id_manager.cc \ 55 gpu/command_buffer/service/image_manager.cc \ 56 gpu/command_buffer/service/in_process_command_buffer.cc \ 57 gpu/command_buffer/service/logger.cc \ 58 gpu/command_buffer/service/mailbox_manager.cc \ 59 gpu/command_buffer/service/memory_program_cache.cc \ 60 gpu/command_buffer/service/program_manager.cc \ 61 gpu/command_buffer/service/query_manager.cc \ 62 gpu/command_buffer/service/renderbuffer_manager.cc \ 63 gpu/command_buffer/service/program_cache.cc \ 64 gpu/command_buffer/service/safe_shared_memory_pool.cc \ 65 gpu/command_buffer/service/shader_manager.cc \ 66 gpu/command_buffer/service/shader_translator.cc \ 67 gpu/command_buffer/service/shader_translator_cache.cc \ 68 gpu/command_buffer/service/stream_texture_manager_in_process_android.cc \ 69 gpu/command_buffer/service/texture_manager.cc \ 70 gpu/command_buffer/service/transfer_buffer_manager.cc \ 71 gpu/command_buffer/service/vertex_array_manager.cc \ 72 gpu/command_buffer/service/vertex_attrib_manager.cc \ 73 gpu/command_buffer/service/async_pixel_transfer_manager_egl.cc 74 75 76 # Flags passed to both C and C++ files. 77 MY_CFLAGS_Debug := \ 78 --param=ssp-buffer-size=4 \ 79 -Werror \ 80 -fno-exceptions \ 81 -fno-strict-aliasing \ 82 -Wall \ 83 -Wno-unused-parameter \ 84 -Wno-missing-field-initializers \ 85 -fvisibility=hidden \ 86 -pipe \ 87 -fPIC \ 88 -Wno-unknown-pragmas \ 89 -m32 \ 90 -mmmx \ 91 -march=pentium4 \ 92 -msse2 \ 93 -mfpmath=sse \ 94 -fuse-ld=gold \ 95 -ffunction-sections \ 96 -funwind-tables \ 97 -g \ 98 -fno-short-enums \ 99 -finline-limit=64 \ 100 -Wa,--noexecstack \ 101 -U_FORTIFY_SOURCE \ 102 -Wno-extra \ 103 -Wno-ignored-qualifiers \ 104 -Wno-type-limits \ 105 -fno-stack-protector \ 106 -Os \ 107 -g \ 108 -fomit-frame-pointer \ 109 -fdata-sections \ 110 -ffunction-sections 111 112 MY_DEFS_Debug := \ 113 '-DANGLE_DX11' \ 114 '-D_FILE_OFFSET_BITS=64' \ 115 '-DNO_TCMALLOC' \ 116 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 117 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 118 '-DDISABLE_NACL' \ 119 '-DCHROMIUM_BUILD' \ 120 '-DUSE_LIBJPEG_TURBO=1' \ 121 '-DUSE_PROPRIETARY_CODECS' \ 122 '-DENABLE_CONFIGURATION_POLICY' \ 123 '-DLOGGING_IS_OFFICIAL_BUILD=1' \ 124 '-DTRACING_IS_OFFICIAL_BUILD=1' \ 125 '-DENABLE_GPU=1' \ 126 '-DUSE_OPENSSL=1' \ 127 '-DENABLE_EGLIMAGE=1' \ 128 '-DENABLE_PRINTING=1' \ 129 '-DMESA_EGL_NO_X11_HEADERS' \ 130 '-DU_USING_ICU_NAMESPACE=0' \ 131 '-DPROTOBUF_USE_DLLS' \ 132 '-DGOOGLE_PROTOBUF_NO_RTTI' \ 133 '-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \ 134 '-D__STDC_CONSTANT_MACROS' \ 135 '-D__STDC_FORMAT_MACROS' \ 136 '-DANDROID' \ 137 '-D__GNU_SOURCE=1' \ 138 '-DUSE_STLPORT=1' \ 139 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 140 '-DCHROME_BUILD_ID=""' \ 141 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 142 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 143 '-D_DEBUG' 144 145 146 # Include paths placed before CFLAGS/CPPFLAGS 147 LOCAL_C_INCLUDES_Debug := \ 148 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 149 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 150 $(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \ 151 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 152 $(LOCAL_PATH) \ 153 $(LOCAL_PATH)/third_party/khronos \ 154 $(LOCAL_PATH)/gpu \ 155 $(gyp_shared_intermediate_dir)/protoc_out \ 156 $(gyp_shared_intermediate_dir)/ui/gl \ 157 $(LOCAL_PATH)/third_party/mesa/src/include \ 158 $(PWD)/external/icu4c/common \ 159 $(PWD)/external/icu4c/i18n \ 160 $(LOCAL_PATH)/third_party/protobuf \ 161 $(LOCAL_PATH)/third_party/protobuf/src \ 162 $(LOCAL_PATH)/third_party/re2 \ 163 $(PWD)/frameworks/wilhelm/include \ 164 $(PWD)/bionic \ 165 $(PWD)/external/stlport/stlport 166 167 168 # Flags passed to only C++ (and not C) files. 169 LOCAL_CPPFLAGS_Debug := \ 170 -fno-rtti \ 171 -fno-threadsafe-statics \ 172 -fvisibility-inlines-hidden \ 173 -Wsign-compare \ 174 -Wno-error=c++0x-compat \ 175 -Wno-non-virtual-dtor \ 176 -Wno-sign-promo 177 178 179 # Flags passed to both C and C++ files. 180 MY_CFLAGS_Release := \ 181 --param=ssp-buffer-size=4 \ 182 -Werror \ 183 -fno-exceptions \ 184 -fno-strict-aliasing \ 185 -Wall \ 186 -Wno-unused-parameter \ 187 -Wno-missing-field-initializers \ 188 -fvisibility=hidden \ 189 -pipe \ 190 -fPIC \ 191 -Wno-unknown-pragmas \ 192 -m32 \ 193 -mmmx \ 194 -march=pentium4 \ 195 -msse2 \ 196 -mfpmath=sse \ 197 -fuse-ld=gold \ 198 -ffunction-sections \ 199 -funwind-tables \ 200 -g \ 201 -fno-short-enums \ 202 -finline-limit=64 \ 203 -Wa,--noexecstack \ 204 -U_FORTIFY_SOURCE \ 205 -Wno-extra \ 206 -Wno-ignored-qualifiers \ 207 -Wno-type-limits \ 208 -fno-stack-protector \ 209 -Os \ 210 -fno-ident \ 211 -fdata-sections \ 212 -ffunction-sections \ 213 -fomit-frame-pointer \ 214 -fno-unwind-tables \ 215 -fno-asynchronous-unwind-tables 216 217 MY_DEFS_Release := \ 218 '-DANGLE_DX11' \ 219 '-D_FILE_OFFSET_BITS=64' \ 220 '-DNO_TCMALLOC' \ 221 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 222 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 223 '-DDISABLE_NACL' \ 224 '-DCHROMIUM_BUILD' \ 225 '-DUSE_LIBJPEG_TURBO=1' \ 226 '-DUSE_PROPRIETARY_CODECS' \ 227 '-DENABLE_CONFIGURATION_POLICY' \ 228 '-DLOGGING_IS_OFFICIAL_BUILD=1' \ 229 '-DTRACING_IS_OFFICIAL_BUILD=1' \ 230 '-DENABLE_GPU=1' \ 231 '-DUSE_OPENSSL=1' \ 232 '-DENABLE_EGLIMAGE=1' \ 233 '-DENABLE_PRINTING=1' \ 234 '-DMESA_EGL_NO_X11_HEADERS' \ 235 '-DU_USING_ICU_NAMESPACE=0' \ 236 '-DPROTOBUF_USE_DLLS' \ 237 '-DGOOGLE_PROTOBUF_NO_RTTI' \ 238 '-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \ 239 '-D__STDC_CONSTANT_MACROS' \ 240 '-D__STDC_FORMAT_MACROS' \ 241 '-DANDROID' \ 242 '-D__GNU_SOURCE=1' \ 243 '-DUSE_STLPORT=1' \ 244 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 245 '-DCHROME_BUILD_ID=""' \ 246 '-DNDEBUG' \ 247 '-DNVALGRIND' \ 248 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 249 '-D_FORTIFY_SOURCE=2' 250 251 252 # Include paths placed before CFLAGS/CPPFLAGS 253 LOCAL_C_INCLUDES_Release := \ 254 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 255 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 256 $(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \ 257 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 258 $(LOCAL_PATH) \ 259 $(LOCAL_PATH)/third_party/khronos \ 260 $(LOCAL_PATH)/gpu \ 261 $(gyp_shared_intermediate_dir)/protoc_out \ 262 $(gyp_shared_intermediate_dir)/ui/gl \ 263 $(LOCAL_PATH)/third_party/mesa/src/include \ 264 $(PWD)/external/icu4c/common \ 265 $(PWD)/external/icu4c/i18n \ 266 $(LOCAL_PATH)/third_party/protobuf \ 267 $(LOCAL_PATH)/third_party/protobuf/src \ 268 $(LOCAL_PATH)/third_party/re2 \ 269 $(PWD)/frameworks/wilhelm/include \ 270 $(PWD)/bionic \ 271 $(PWD)/external/stlport/stlport 272 273 274 # Flags passed to only C++ (and not C) files. 275 LOCAL_CPPFLAGS_Release := \ 276 -fno-rtti \ 277 -fno-threadsafe-statics \ 278 -fvisibility-inlines-hidden \ 279 -Wsign-compare \ 280 -Wno-error=c++0x-compat \ 281 -Wno-non-virtual-dtor \ 282 -Wno-sign-promo 283 284 285 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 286 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 287 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 288 ### Rules for final target. 289 290 LOCAL_LDFLAGS_Debug := \ 291 -Wl,-z,now \ 292 -Wl,-z,relro \ 293 -Wl,-z,noexecstack \ 294 -fPIC \ 295 -m32 \ 296 -fuse-ld=gold \ 297 -nostdlib \ 298 -Wl,--no-undefined \ 299 -Wl,--exclude-libs=ALL \ 300 -Wl,--fatal-warnings \ 301 -Wl,--gc-sections \ 302 -Wl,--warn-shared-textrel \ 303 -Wl,-O1 \ 304 -Wl,--as-needed 305 306 307 LOCAL_LDFLAGS_Release := \ 308 -Wl,-z,now \ 309 -Wl,-z,relro \ 310 -Wl,-z,noexecstack \ 311 -fPIC \ 312 -m32 \ 313 -fuse-ld=gold \ 314 -nostdlib \ 315 -Wl,--no-undefined \ 316 -Wl,--exclude-libs=ALL \ 317 -Wl,-O1 \ 318 -Wl,--as-needed \ 319 -Wl,--gc-sections \ 320 -Wl,--fatal-warnings \ 321 -Wl,--warn-shared-textrel 322 323 324 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 325 326 LOCAL_STATIC_LIBRARIES := \ 327 gpu_disk_cache_proto_gyp \ 328 ui_gl_gl_gyp \ 329 ui_ui_gyp 330 331 # Enable grouping to fix circular references 332 LOCAL_GROUP_STATIC_LIBRARIES := true 333 334 LOCAL_SHARED_LIBRARIES := \ 335 libstlport \ 336 libdl 337 338 # Add target alias to "gyp_all_modules" target. 339 .PHONY: gyp_all_modules 340 gyp_all_modules: gpu_command_buffer_service_gyp 341 342 # Alias gyp target name. 343 .PHONY: command_buffer_service 344 command_buffer_service: gpu_command_buffer_service_gyp 345 346 include $(BUILD_STATIC_LIBRARY) 347