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