Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 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 \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 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 |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 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 \ |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 34 | gpu/command_buffer/client/gpu_memory_buffer_tracker.cc \ |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 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 \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 38 | gpu/command_buffer/client/vertex_array_object_manager.cc \ |
| 39 | gpu/command_buffer/client/gl_in_process_context.cc |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 40 | |
| 41 | |
| 42 | # Flags passed to both C and C++ files. |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 43 | MY_CFLAGS_Debug := \ |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 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 \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 54 | -Wno-unknown-pragmas \ |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 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 | |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 78 | MY_DEFS_Debug := \ |
Torne (Richard Coles) | 7d4cd47 | 2013-06-19 11:58:07 +0100 | [diff] [blame] | 79 | '-DANGLE_DX11' \ |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 80 | '-D_FILE_OFFSET_BITS=64' \ |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 81 | '-DNO_TCMALLOC' \ |
Ben Murdoch | 7dbb3d5 | 2013-07-17 14:55:54 +0100 | [diff] [blame] | 82 | '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ |
| 83 | '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 84 | '-DDISABLE_NACL' \ |
| 85 | '-DCHROMIUM_BUILD' \ |
| 86 | '-DUSE_LIBJPEG_TURBO=1' \ |
| 87 | '-DUSE_PROPRIETARY_CODECS' \ |
Ben Murdoch | a3f7b4e | 2013-07-24 10:36:34 +0100 | [diff] [blame] | 88 | '-DENABLE_CONFIGURATION_POLICY' \ |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 89 | '-DENABLE_GPU=1' \ |
| 90 | '-DUSE_OPENSSL=1' \ |
| 91 | '-DENABLE_EGLIMAGE=1' \ |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 92 | '-DGLES2_IMPL_IMPLEMENTATION' \ |
Ben Murdoch | 558790d | 2013-07-30 15:19:42 +0100 | [diff] [blame] | 93 | '-DMESA_EGL_NO_X11_HEADERS' \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 94 | '-DU_USING_ICU_NAMESPACE=0' \ |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 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 | |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 106 | |
| 107 | # Include paths placed before CFLAGS/CPPFLAGS |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 108 | LOCAL_C_INCLUDES_Debug := \ |
Ben Murdoch | bbcdd45 | 2013-07-25 10:06:34 +0100 | [diff] [blame] | 109 | $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ |
| 110 | $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 111 | $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ |
| 112 | $(LOCAL_PATH)/third_party/khronos \ |
| 113 | $(LOCAL_PATH)/gpu \ |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 114 | $(LOCAL_PATH) \ |
| 115 | $(gyp_shared_intermediate_dir)/ui/gl \ |
Torne (Richard Coles) | 868fa2f | 2013-06-11 10:57:03 +0100 | [diff] [blame] | 116 | $(LOCAL_PATH)/third_party/mesa/src/include \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 117 | $(PWD)/external/icu4c/common \ |
| 118 | $(PWD)/external/icu4c/i18n \ |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 119 | $(PWD)/frameworks/wilhelm/include \ |
| 120 | $(PWD)/bionic \ |
| 121 | $(PWD)/external/stlport/stlport |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 122 | |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 123 | |
| 124 | # Flags passed to only C++ (and not C) files. |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 125 | LOCAL_CPPFLAGS_Debug := \ |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 126 | -fno-rtti \ |
| 127 | -fno-threadsafe-statics \ |
| 128 | -fvisibility-inlines-hidden \ |
| 129 | -Wsign-compare \ |
| 130 | -Wno-error=c++0x-compat \ |
| 131 | -Wno-non-virtual-dtor \ |
| 132 | -Wno-sign-promo |
| 133 | |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 134 | |
| 135 | # Flags passed to both C and C++ files. |
| 136 | MY_CFLAGS_Release := \ |
| 137 | --param=ssp-buffer-size=4 \ |
| 138 | -Werror \ |
| 139 | -fno-exceptions \ |
| 140 | -fno-strict-aliasing \ |
| 141 | -Wall \ |
| 142 | -Wno-unused-parameter \ |
| 143 | -Wno-missing-field-initializers \ |
| 144 | -fvisibility=hidden \ |
| 145 | -pipe \ |
| 146 | -fPIC \ |
| 147 | -Wno-unknown-pragmas \ |
| 148 | -m32 \ |
| 149 | -mmmx \ |
| 150 | -march=pentium4 \ |
| 151 | -msse2 \ |
| 152 | -mfpmath=sse \ |
| 153 | -fuse-ld=gold \ |
| 154 | -ffunction-sections \ |
| 155 | -funwind-tables \ |
| 156 | -g \ |
| 157 | -fno-short-enums \ |
| 158 | -finline-limit=64 \ |
| 159 | -Wa,--noexecstack \ |
| 160 | -U_FORTIFY_SOURCE \ |
| 161 | -Wno-extra \ |
| 162 | -Wno-ignored-qualifiers \ |
| 163 | -Wno-type-limits \ |
| 164 | -fno-stack-protector \ |
| 165 | -Os \ |
| 166 | -fno-ident \ |
| 167 | -fdata-sections \ |
| 168 | -ffunction-sections \ |
| 169 | -fomit-frame-pointer \ |
| 170 | -fno-unwind-tables \ |
| 171 | -fno-asynchronous-unwind-tables |
| 172 | |
| 173 | MY_DEFS_Release := \ |
| 174 | '-DANGLE_DX11' \ |
| 175 | '-D_FILE_OFFSET_BITS=64' \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 176 | '-DNO_TCMALLOC' \ |
Ben Murdoch | 7dbb3d5 | 2013-07-17 14:55:54 +0100 | [diff] [blame] | 177 | '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ |
| 178 | '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 179 | '-DDISABLE_NACL' \ |
| 180 | '-DCHROMIUM_BUILD' \ |
| 181 | '-DUSE_LIBJPEG_TURBO=1' \ |
| 182 | '-DUSE_PROPRIETARY_CODECS' \ |
Ben Murdoch | a3f7b4e | 2013-07-24 10:36:34 +0100 | [diff] [blame] | 183 | '-DENABLE_CONFIGURATION_POLICY' \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 184 | '-DENABLE_GPU=1' \ |
| 185 | '-DUSE_OPENSSL=1' \ |
| 186 | '-DENABLE_EGLIMAGE=1' \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 187 | '-DGLES2_IMPL_IMPLEMENTATION' \ |
Ben Murdoch | 558790d | 2013-07-30 15:19:42 +0100 | [diff] [blame] | 188 | '-DMESA_EGL_NO_X11_HEADERS' \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 189 | '-DU_USING_ICU_NAMESPACE=0' \ |
| 190 | '-D__STDC_CONSTANT_MACROS' \ |
| 191 | '-D__STDC_FORMAT_MACROS' \ |
| 192 | '-DANDROID' \ |
| 193 | '-D__GNU_SOURCE=1' \ |
| 194 | '-DUSE_STLPORT=1' \ |
| 195 | '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ |
| 196 | '-DCHROME_BUILD_ID=""' \ |
| 197 | '-DNDEBUG' \ |
| 198 | '-DNVALGRIND' \ |
| 199 | '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ |
| 200 | '-D_FORTIFY_SOURCE=2' |
| 201 | |
| 202 | |
| 203 | # Include paths placed before CFLAGS/CPPFLAGS |
| 204 | LOCAL_C_INCLUDES_Release := \ |
Ben Murdoch | bbcdd45 | 2013-07-25 10:06:34 +0100 | [diff] [blame] | 205 | $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ |
| 206 | $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 207 | $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ |
| 208 | $(LOCAL_PATH)/third_party/khronos \ |
| 209 | $(LOCAL_PATH)/gpu \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 210 | $(LOCAL_PATH) \ |
| 211 | $(gyp_shared_intermediate_dir)/ui/gl \ |
| 212 | $(LOCAL_PATH)/third_party/mesa/src/include \ |
| 213 | $(PWD)/external/icu4c/common \ |
| 214 | $(PWD)/external/icu4c/i18n \ |
| 215 | $(PWD)/frameworks/wilhelm/include \ |
| 216 | $(PWD)/bionic \ |
| 217 | $(PWD)/external/stlport/stlport |
| 218 | |
| 219 | |
| 220 | # Flags passed to only C++ (and not C) files. |
| 221 | LOCAL_CPPFLAGS_Release := \ |
| 222 | -fno-rtti \ |
| 223 | -fno-threadsafe-statics \ |
| 224 | -fvisibility-inlines-hidden \ |
| 225 | -Wsign-compare \ |
| 226 | -Wno-error=c++0x-compat \ |
| 227 | -Wno-non-virtual-dtor \ |
| 228 | -Wno-sign-promo |
| 229 | |
| 230 | |
| 231 | LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) |
| 232 | LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) |
| 233 | LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 234 | ### Rules for final target. |
| 235 | |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 236 | LOCAL_LDFLAGS_Debug := \ |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 237 | -Wl,-z,now \ |
| 238 | -Wl,-z,relro \ |
| 239 | -Wl,-z,noexecstack \ |
| 240 | -fPIC \ |
| 241 | -m32 \ |
| 242 | -fuse-ld=gold \ |
| 243 | -nostdlib \ |
| 244 | -Wl,--no-undefined \ |
| 245 | -Wl,--exclude-libs=ALL \ |
| 246 | -Wl,--gc-sections \ |
| 247 | -Wl,-O1 \ |
| 248 | -Wl,--as-needed |
| 249 | |
| 250 | |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 251 | LOCAL_LDFLAGS_Release := \ |
| 252 | -Wl,-z,now \ |
| 253 | -Wl,-z,relro \ |
| 254 | -Wl,-z,noexecstack \ |
| 255 | -fPIC \ |
| 256 | -m32 \ |
| 257 | -fuse-ld=gold \ |
| 258 | -nostdlib \ |
| 259 | -Wl,--no-undefined \ |
| 260 | -Wl,--exclude-libs=ALL \ |
| 261 | -Wl,-O1 \ |
| 262 | -Wl,--as-needed \ |
| 263 | -Wl,--gc-sections |
| 264 | |
| 265 | |
| 266 | LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) |
| 267 | |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 268 | LOCAL_STATIC_LIBRARIES := \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 269 | ui_gl_gl_gyp \ |
| 270 | ui_ui_gyp |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 271 | |
| 272 | # Enable grouping to fix circular references |
| 273 | LOCAL_GROUP_STATIC_LIBRARIES := true |
| 274 | |
| 275 | LOCAL_SHARED_LIBRARIES := \ |
| 276 | libstlport \ |
| 277 | libdl |
| 278 | |
| 279 | # Add target alias to "gyp_all_modules" target. |
| 280 | .PHONY: gyp_all_modules |
| 281 | gyp_all_modules: gpu_gles2_implementation_gyp |
| 282 | |
| 283 | # Alias gyp target name. |
| 284 | .PHONY: gles2_implementation |
| 285 | gles2_implementation: gpu_gles2_implementation_gyp |
| 286 | |
| 287 | include $(BUILD_STATIC_LIBRARY) |