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