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