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