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 --param=ssp-buffer-size=4 \ 43 -Werror \ 44 -fno-exceptions \ 45 -fno-strict-aliasing \ 46 -Wall \ 47 -Wno-unused-parameter \ 48 -Wno-missing-field-initializers \ 49 -fvisibility=hidden \ 50 -pipe \ 51 -fPIC \ 52 -Wno-unknown-pragmas \ 53 -m32 \ 54 -mmmx \ 55 -march=pentium4 \ 56 -msse2 \ 57 -mfpmath=sse \ 58 -fuse-ld=gold \ 59 -ffunction-sections \ 60 -funwind-tables \ 61 -g \ 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 -fno-stack-protector \ 70 -Os \ 71 -g \ 72 -fomit-frame-pointer \ 73 -fdata-sections \ 74 -ffunction-sections 75 76 MY_DEFS_Debug := \ 77 '-DV8_DEPRECATION_WARNINGS' \ 78 '-D_FILE_OFFSET_BITS=64' \ 79 '-DNO_TCMALLOC' \ 80 '-DDISABLE_NACL' \ 81 '-DCHROMIUM_BUILD' \ 82 '-DUSE_LIBJPEG_TURBO=1' \ 83 '-DUSE_PROPRIETARY_CODECS' \ 84 '-DENABLE_CONFIGURATION_POLICY' \ 85 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 86 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 87 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 88 '-DUSE_OPENSSL=1' \ 89 '-DENABLE_EGLIMAGE=1' \ 90 '-DCLD_VERSION=1' \ 91 '-DENABLE_PRINTING=1' \ 92 '-DENABLE_MANAGED_USERS=1' \ 93 '-DGLES2_IMPL_IMPLEMENTATION' \ 94 '-DMESA_EGL_NO_X11_HEADERS' \ 95 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 96 '-DU_USING_ICU_NAMESPACE=0' \ 97 '-D__STDC_CONSTANT_MACROS' \ 98 '-D__STDC_FORMAT_MACROS' \ 99 '-DANDROID' \ 100 '-D__GNU_SOURCE=1' \ 101 '-DUSE_STLPORT=1' \ 102 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 103 '-DCHROME_BUILD_ID=""' \ 104 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 105 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 106 '-D_DEBUG' 107 108 109 # Include paths placed before CFLAGS/CPPFLAGS 110 LOCAL_C_INCLUDES_Debug := \ 111 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 112 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 113 $(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \ 114 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 115 $(LOCAL_PATH)/third_party/khronos \ 116 $(LOCAL_PATH)/gpu \ 117 $(LOCAL_PATH) \ 118 $(LOCAL_PATH)/skia/config \ 119 $(gyp_shared_intermediate_dir)/ui/gl \ 120 $(LOCAL_PATH)/third_party/mesa/src/include \ 121 $(PWD)/external/skia/include \ 122 $(PWD)/external/skia/include/core \ 123 $(LOCAL_PATH)/third_party/skia/src/core \ 124 $(LOCAL_PATH)/skia/ext \ 125 $(PWD)/external/icu4c/common \ 126 $(PWD)/external/icu4c/i18n \ 127 $(PWD)/frameworks/wilhelm/include \ 128 $(PWD)/bionic \ 129 $(PWD)/external/stlport/stlport 130 131 132 # Flags passed to only C++ (and not C) files. 133 LOCAL_CPPFLAGS_Debug := \ 134 -fno-rtti \ 135 -fno-threadsafe-statics \ 136 -fvisibility-inlines-hidden \ 137 -Wsign-compare \ 138 -Wno-error=c++0x-compat \ 139 -Wno-non-virtual-dtor \ 140 -Wno-sign-promo 141 142 143 # Flags passed to both C and C++ files. 144 MY_CFLAGS_Release := \ 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 -m32 \ 157 -mmmx \ 158 -march=pentium4 \ 159 -msse2 \ 160 -mfpmath=sse \ 161 -fuse-ld=gold \ 162 -ffunction-sections \ 163 -funwind-tables \ 164 -g \ 165 -fno-short-enums \ 166 -finline-limit=64 \ 167 -Wa,--noexecstack \ 168 -U_FORTIFY_SOURCE \ 169 -Wno-extra \ 170 -Wno-ignored-qualifiers \ 171 -Wno-type-limits \ 172 -fno-stack-protector \ 173 -Os \ 174 -fno-ident \ 175 -fdata-sections \ 176 -ffunction-sections \ 177 -fomit-frame-pointer \ 178 -fno-unwind-tables \ 179 -fno-asynchronous-unwind-tables 180 181 MY_DEFS_Release := \ 182 '-DV8_DEPRECATION_WARNINGS' \ 183 '-D_FILE_OFFSET_BITS=64' \ 184 '-DNO_TCMALLOC' \ 185 '-DDISABLE_NACL' \ 186 '-DCHROMIUM_BUILD' \ 187 '-DUSE_LIBJPEG_TURBO=1' \ 188 '-DUSE_PROPRIETARY_CODECS' \ 189 '-DENABLE_CONFIGURATION_POLICY' \ 190 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 191 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 192 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 193 '-DUSE_OPENSSL=1' \ 194 '-DENABLE_EGLIMAGE=1' \ 195 '-DCLD_VERSION=1' \ 196 '-DENABLE_PRINTING=1' \ 197 '-DENABLE_MANAGED_USERS=1' \ 198 '-DGLES2_IMPL_IMPLEMENTATION' \ 199 '-DMESA_EGL_NO_X11_HEADERS' \ 200 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 201 '-DU_USING_ICU_NAMESPACE=0' \ 202 '-D__STDC_CONSTANT_MACROS' \ 203 '-D__STDC_FORMAT_MACROS' \ 204 '-DANDROID' \ 205 '-D__GNU_SOURCE=1' \ 206 '-DUSE_STLPORT=1' \ 207 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 208 '-DCHROME_BUILD_ID=""' \ 209 '-DNDEBUG' \ 210 '-DNVALGRIND' \ 211 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 212 '-D_FORTIFY_SOURCE=2' 213 214 215 # Include paths placed before CFLAGS/CPPFLAGS 216 LOCAL_C_INCLUDES_Release := \ 217 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 218 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 219 $(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \ 220 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 221 $(LOCAL_PATH)/third_party/khronos \ 222 $(LOCAL_PATH)/gpu \ 223 $(LOCAL_PATH) \ 224 $(LOCAL_PATH)/skia/config \ 225 $(gyp_shared_intermediate_dir)/ui/gl \ 226 $(LOCAL_PATH)/third_party/mesa/src/include \ 227 $(PWD)/external/skia/include \ 228 $(PWD)/external/skia/include/core \ 229 $(LOCAL_PATH)/third_party/skia/src/core \ 230 $(LOCAL_PATH)/skia/ext \ 231 $(PWD)/external/icu4c/common \ 232 $(PWD)/external/icu4c/i18n \ 233 $(PWD)/frameworks/wilhelm/include \ 234 $(PWD)/bionic \ 235 $(PWD)/external/stlport/stlport 236 237 238 # Flags passed to only C++ (and not C) files. 239 LOCAL_CPPFLAGS_Release := \ 240 -fno-rtti \ 241 -fno-threadsafe-statics \ 242 -fvisibility-inlines-hidden \ 243 -Wsign-compare \ 244 -Wno-error=c++0x-compat \ 245 -Wno-non-virtual-dtor \ 246 -Wno-sign-promo 247 248 249 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 250 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 251 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 252 ### Rules for final target. 253 254 LOCAL_LDFLAGS_Debug := \ 255 -Wl,-z,now \ 256 -Wl,-z,relro \ 257 -Wl,-z,noexecstack \ 258 -fPIC \ 259 -m32 \ 260 -fuse-ld=gold \ 261 -nostdlib \ 262 -Wl,--no-undefined \ 263 -Wl,--exclude-libs=ALL \ 264 -Wl,--fatal-warnings \ 265 -Wl,--gc-sections \ 266 -Wl,--warn-shared-textrel \ 267 -Wl,-O1 \ 268 -Wl,--as-needed 269 270 271 LOCAL_LDFLAGS_Release := \ 272 -Wl,-z,now \ 273 -Wl,-z,relro \ 274 -Wl,-z,noexecstack \ 275 -fPIC \ 276 -m32 \ 277 -fuse-ld=gold \ 278 -nostdlib \ 279 -Wl,--no-undefined \ 280 -Wl,--exclude-libs=ALL \ 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