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