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 $(call intermediates-dir-for,STATIC_LIBRARIES,ui_ui_gyp)/ui_ui_gyp.a 17 18 GYP_GENERATED_OUTPUTS := 19 20 # Make sure our deps and generated files are built first. 21 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 22 23 LOCAL_CPP_EXTENSION := .cc 24 LOCAL_GENERATED_SOURCES := 25 26 GYP_COPIED_SOURCE_ORIGIN_DIRS := 27 28 LOCAL_SRC_FILES := \ 29 gpu/command_buffer/client/buffer_tracker.cc \ 30 gpu/command_buffer/client/client_context_state.cc \ 31 gpu/command_buffer/client/gles2_implementation.cc \ 32 gpu/command_buffer/client/gles2_interface.cc \ 33 gpu/command_buffer/client/gles2_trace_implementation.cc \ 34 gpu/command_buffer/client/gpu_memory_buffer_tracker.cc \ 35 gpu/command_buffer/client/program_info_manager.cc \ 36 gpu/command_buffer/client/query_tracker.cc \ 37 gpu/command_buffer/client/share_group.cc \ 38 gpu/command_buffer/client/vertex_array_object_manager.cc \ 39 gpu/command_buffer/client/gl_in_process_context.cc 40 41 42 # Flags passed to both C and C++ files. 43 MY_CFLAGS_Debug := \ 44 -fstack-protector \ 45 --param=ssp-buffer-size=4 \ 46 \ 47 -fno-exceptions \ 48 -fno-strict-aliasing \ 49 -Wall \ 50 -Wno-unused-parameter \ 51 -Wno-missing-field-initializers \ 52 -fvisibility=hidden \ 53 -pipe \ 54 -fPIC \ 55 -Wno-unknown-pragmas \ 56 -EL \ 57 -mhard-float \ 58 -ffunction-sections \ 59 -funwind-tables \ 60 -g \ 61 -fstack-protector \ 62 -fno-short-enums \ 63 -finline-limit=64 \ 64 -Wa,--noexecstack \ 65 -U_FORTIFY_SOURCE \ 66 -Wno-extra \ 67 -Wno-ignored-qualifiers \ 68 -Wno-type-limits \ 69 -Os \ 70 -g \ 71 -fomit-frame-pointer \ 72 -fdata-sections \ 73 -ffunction-sections 74 75 MY_DEFS_Debug := \ 76 '-DANGLE_DX11' \ 77 '-D_FILE_OFFSET_BITS=64' \ 78 '-DNO_TCMALLOC' \ 79 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 80 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 81 '-DDISABLE_NACL' \ 82 '-DCHROMIUM_BUILD' \ 83 '-DUSE_LIBJPEG_TURBO=1' \ 84 '-DUSE_PROPRIETARY_CODECS' \ 85 '-DENABLE_CONFIGURATION_POLICY' \ 86 '-DLOGGING_IS_OFFICIAL_BUILD=1' \ 87 '-DTRACING_IS_OFFICIAL_BUILD=1' \ 88 '-DENABLE_GPU=1' \ 89 '-DUSE_OPENSSL=1' \ 90 '-DENABLE_EGLIMAGE=1' \ 91 '-DENABLE_PRINTING=1' \ 92 '-DGLES2_IMPL_IMPLEMENTATION' \ 93 '-DMESA_EGL_NO_X11_HEADERS' \ 94 '-DPOSIX_AVOID_MMAP' \ 95 '-DU_USING_ICU_NAMESPACE=0' \ 96 '-D__STDC_CONSTANT_MACROS' \ 97 '-D__STDC_FORMAT_MACROS' \ 98 '-DANDROID' \ 99 '-D__GNU_SOURCE=1' \ 100 '-DUSE_STLPORT=1' \ 101 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 102 '-DCHROME_BUILD_ID=""' \ 103 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 104 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 105 '-D_DEBUG' 106 107 108 # Include paths placed before CFLAGS/CPPFLAGS 109 LOCAL_C_INCLUDES_Debug := \ 110 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 111 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 112 $(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \ 113 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 114 $(LOCAL_PATH)/third_party/khronos \ 115 $(LOCAL_PATH)/gpu \ 116 $(LOCAL_PATH) \ 117 $(gyp_shared_intermediate_dir)/ui/gl \ 118 $(LOCAL_PATH)/third_party/mesa/src/include \ 119 $(PWD)/external/icu4c/common \ 120 $(PWD)/external/icu4c/i18n \ 121 $(PWD)/frameworks/wilhelm/include \ 122 $(PWD)/bionic \ 123 $(PWD)/external/stlport/stlport 124 125 126 # Flags passed to only C++ (and not C) files. 127 LOCAL_CPPFLAGS_Debug := \ 128 -fno-rtti \ 129 -fno-threadsafe-statics \ 130 -fvisibility-inlines-hidden \ 131 -Wsign-compare \ 132 -Wno-uninitialized \ 133 -Wno-error=c++0x-compat \ 134 -Wno-non-virtual-dtor \ 135 -Wno-sign-promo 136 137 138 # Flags passed to both C and C++ files. 139 MY_CFLAGS_Release := \ 140 -fstack-protector \ 141 --param=ssp-buffer-size=4 \ 142 \ 143 -fno-exceptions \ 144 -fno-strict-aliasing \ 145 -Wall \ 146 -Wno-unused-parameter \ 147 -Wno-missing-field-initializers \ 148 -fvisibility=hidden \ 149 -pipe \ 150 -fPIC \ 151 -Wno-unknown-pragmas \ 152 -EL \ 153 -mhard-float \ 154 -ffunction-sections \ 155 -funwind-tables \ 156 -g \ 157 -fstack-protector \ 158 -fno-short-enums \ 159 -finline-limit=64 \ 160 -Wa,--noexecstack \ 161 -U_FORTIFY_SOURCE \ 162 -Wno-extra \ 163 -Wno-ignored-qualifiers \ 164 -Wno-type-limits \ 165 -Os \ 166 -fno-ident \ 167 -fdata-sections \ 168 -ffunction-sections \ 169 -fomit-frame-pointer 170 171 MY_DEFS_Release := \ 172 '-DANGLE_DX11' \ 173 '-D_FILE_OFFSET_BITS=64' \ 174 '-DNO_TCMALLOC' \ 175 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 176 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 177 '-DDISABLE_NACL' \ 178 '-DCHROMIUM_BUILD' \ 179 '-DUSE_LIBJPEG_TURBO=1' \ 180 '-DUSE_PROPRIETARY_CODECS' \ 181 '-DENABLE_CONFIGURATION_POLICY' \ 182 '-DLOGGING_IS_OFFICIAL_BUILD=1' \ 183 '-DTRACING_IS_OFFICIAL_BUILD=1' \ 184 '-DENABLE_GPU=1' \ 185 '-DUSE_OPENSSL=1' \ 186 '-DENABLE_EGLIMAGE=1' \ 187 '-DENABLE_PRINTING=1' \ 188 '-DGLES2_IMPL_IMPLEMENTATION' \ 189 '-DMESA_EGL_NO_X11_HEADERS' \ 190 '-DPOSIX_AVOID_MMAP' \ 191 '-DU_USING_ICU_NAMESPACE=0' \ 192 '-D__STDC_CONSTANT_MACROS' \ 193 '-D__STDC_FORMAT_MACROS' \ 194 '-DANDROID' \ 195 '-D__GNU_SOURCE=1' \ 196 '-DUSE_STLPORT=1' \ 197 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 198 '-DCHROME_BUILD_ID=""' \ 199 '-DNDEBUG' \ 200 '-DNVALGRIND' \ 201 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 202 '-D_FORTIFY_SOURCE=2' 203 204 205 # Include paths placed before CFLAGS/CPPFLAGS 206 LOCAL_C_INCLUDES_Release := \ 207 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 208 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 209 $(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \ 210 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 211 $(LOCAL_PATH)/third_party/khronos \ 212 $(LOCAL_PATH)/gpu \ 213 $(LOCAL_PATH) \ 214 $(gyp_shared_intermediate_dir)/ui/gl \ 215 $(LOCAL_PATH)/third_party/mesa/src/include \ 216 $(PWD)/external/icu4c/common \ 217 $(PWD)/external/icu4c/i18n \ 218 $(PWD)/frameworks/wilhelm/include \ 219 $(PWD)/bionic \ 220 $(PWD)/external/stlport/stlport 221 222 223 # Flags passed to only C++ (and not C) files. 224 LOCAL_CPPFLAGS_Release := \ 225 -fno-rtti \ 226 -fno-threadsafe-statics \ 227 -fvisibility-inlines-hidden \ 228 -Wsign-compare \ 229 -Wno-uninitialized \ 230 -Wno-error=c++0x-compat \ 231 -Wno-non-virtual-dtor \ 232 -Wno-sign-promo 233 234 235 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 236 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 237 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 238 ### Rules for final target. 239 240 LOCAL_LDFLAGS_Debug := \ 241 -Wl,-z,now \ 242 -Wl,-z,relro \ 243 -Wl,-z,noexecstack \ 244 -fPIC \ 245 -EL \ 246 -Wl,--no-keep-memory \ 247 -nostdlib \ 248 -Wl,--no-undefined \ 249 -Wl,--exclude-libs=ALL \ 250 -Wl,--fatal-warnings \ 251 -Wl,--gc-sections \ 252 -Wl,--warn-shared-textrel \ 253 -Wl,-O1 \ 254 -Wl,--as-needed 255 256 257 LOCAL_LDFLAGS_Release := \ 258 -Wl,-z,now \ 259 -Wl,-z,relro \ 260 -Wl,-z,noexecstack \ 261 -fPIC \ 262 -EL \ 263 -Wl,--no-keep-memory \ 264 -nostdlib \ 265 -Wl,--no-undefined \ 266 -Wl,--exclude-libs=ALL \ 267 -Wl,-O1 \ 268 -Wl,--as-needed \ 269 -Wl,--gc-sections \ 270 -Wl,--fatal-warnings \ 271 -Wl,--warn-shared-textrel 272 273 274 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 275 276 LOCAL_STATIC_LIBRARIES := \ 277 ui_gl_gl_gyp \ 278 ui_ui_gyp 279 280 # Enable grouping to fix circular references 281 LOCAL_GROUP_STATIC_LIBRARIES := true 282 283 LOCAL_SHARED_LIBRARIES := \ 284 libstlport \ 285 libdl 286 287 # Add target alias to "gyp_all_modules" target. 288 .PHONY: gyp_all_modules 289 gyp_all_modules: gpu_gles2_implementation_gyp 290 291 # Alias gyp target name. 292 .PHONY: gles2_implementation 293 gles2_implementation: gpu_gles2_implementation_gyp 294 295 include $(BUILD_STATIC_LIBRARY) 296