Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [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_command_buffer_service_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,STATIC_LIBRARIES,gpu_disk_cache_proto_gyp)/gpu_disk_cache_proto_gyp.a \ |
| 15 | $(call intermediates-dir-for,STATIC_LIBRARIES,ui_gl_gl_gyp)/ui_gl_gl_gyp.a \ |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 16 | $(call intermediates-dir-for,STATIC_LIBRARIES,ui_ui_gyp)/ui_ui_gyp.a \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 17 | $(call intermediates-dir-for,GYP,third_party_khronos_khronos_headers_gyp)/khronos_headers.stamp |
| 18 | |
| 19 | GYP_GENERATED_OUTPUTS := |
| 20 | |
| 21 | # Make sure our deps and generated files are built first. |
| 22 | LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) |
| 23 | |
| 24 | LOCAL_CPP_EXTENSION := .cc |
| 25 | LOCAL_GENERATED_SOURCES := |
| 26 | |
| 27 | GYP_COPIED_SOURCE_ORIGIN_DIRS := |
| 28 | |
| 29 | LOCAL_SRC_FILES := \ |
Torne (Richard Coles) | b2df76e | 2013-05-13 16:52:09 +0100 | [diff] [blame] | 30 | gpu/command_buffer/service/async_pixel_transfer_delegate.cc \ |
Torne (Richard Coles) | 868fa2f | 2013-06-11 10:57:03 +0100 | [diff] [blame] | 31 | gpu/command_buffer/service/async_pixel_transfer_manager_android.cc \ |
| 32 | gpu/command_buffer/service/async_pixel_transfer_manager_idle.cc \ |
| 33 | gpu/command_buffer/service/async_pixel_transfer_manager_share_group.cc \ |
| 34 | gpu/command_buffer/service/async_pixel_transfer_manager_stub.cc \ |
| 35 | gpu/command_buffer/service/async_pixel_transfer_manager_sync.cc \ |
| 36 | gpu/command_buffer/service/async_pixel_transfer_manager.cc \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 37 | gpu/command_buffer/service/buffer_manager.cc \ |
| 38 | gpu/command_buffer/service/cmd_parser.cc \ |
| 39 | gpu/command_buffer/service/command_buffer_service.cc \ |
| 40 | gpu/command_buffer/service/common_decoder.cc \ |
| 41 | gpu/command_buffer/service/context_group.cc \ |
| 42 | gpu/command_buffer/service/context_state.cc \ |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 43 | gpu/command_buffer/service/error_state.cc \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 44 | gpu/command_buffer/service/feature_info.cc \ |
| 45 | gpu/command_buffer/service/framebuffer_manager.cc \ |
| 46 | gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc \ |
| 47 | gpu/command_buffer/service/gles2_cmd_decoder.cc \ |
| 48 | gpu/command_buffer/service/gles2_cmd_validation.cc \ |
| 49 | gpu/command_buffer/service/gl_context_virtual.cc \ |
| 50 | gpu/command_buffer/service/gl_state_restorer_impl.cc \ |
| 51 | gpu/command_buffer/service/gpu_scheduler.cc \ |
| 52 | gpu/command_buffer/service/gpu_switches.cc \ |
| 53 | gpu/command_buffer/service/gpu_tracer.cc \ |
| 54 | gpu/command_buffer/service/id_manager.cc \ |
| 55 | gpu/command_buffer/service/image_manager.cc \ |
Ben Murdoch | 28390f6 | 2013-08-01 12:44:22 +0100 | [diff] [blame] | 56 | gpu/command_buffer/service/in_process_command_buffer.cc \ |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 57 | gpu/command_buffer/service/logger.cc \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 58 | gpu/command_buffer/service/mailbox_manager.cc \ |
| 59 | gpu/command_buffer/service/memory_program_cache.cc \ |
| 60 | gpu/command_buffer/service/program_manager.cc \ |
| 61 | gpu/command_buffer/service/query_manager.cc \ |
| 62 | gpu/command_buffer/service/renderbuffer_manager.cc \ |
| 63 | gpu/command_buffer/service/program_cache.cc \ |
Torne (Richard Coles) | b2df76e | 2013-05-13 16:52:09 +0100 | [diff] [blame] | 64 | gpu/command_buffer/service/safe_shared_memory_pool.cc \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 65 | gpu/command_buffer/service/shader_manager.cc \ |
| 66 | gpu/command_buffer/service/shader_translator.cc \ |
| 67 | gpu/command_buffer/service/shader_translator_cache.cc \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 68 | gpu/command_buffer/service/texture_manager.cc \ |
| 69 | gpu/command_buffer/service/transfer_buffer_manager.cc \ |
| 70 | gpu/command_buffer/service/vertex_array_manager.cc \ |
Torne (Richard Coles) | b2df76e | 2013-05-13 16:52:09 +0100 | [diff] [blame] | 71 | gpu/command_buffer/service/vertex_attrib_manager.cc \ |
Torne (Richard Coles) | 868fa2f | 2013-06-11 10:57:03 +0100 | [diff] [blame] | 72 | gpu/command_buffer/service/async_pixel_transfer_manager_egl.cc |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 73 | |
| 74 | |
| 75 | # Flags passed to both C and C++ files. |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 76 | MY_CFLAGS_Debug := \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 77 | -fstack-protector \ |
| 78 | --param=ssp-buffer-size=4 \ |
| 79 | -Werror \ |
| 80 | -fno-exceptions \ |
| 81 | -fno-strict-aliasing \ |
| 82 | -Wall \ |
| 83 | -Wno-unused-parameter \ |
| 84 | -Wno-missing-field-initializers \ |
| 85 | -fvisibility=hidden \ |
| 86 | -pipe \ |
| 87 | -fPIC \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 88 | -Wno-unknown-pragmas \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 89 | -fno-tree-sra \ |
| 90 | -fuse-ld=gold \ |
| 91 | -Wno-psabi \ |
| 92 | -ffunction-sections \ |
| 93 | -funwind-tables \ |
| 94 | -g \ |
| 95 | -fstack-protector \ |
| 96 | -fno-short-enums \ |
| 97 | -finline-limit=64 \ |
| 98 | -Wa,--noexecstack \ |
| 99 | -U_FORTIFY_SOURCE \ |
| 100 | -Wno-extra \ |
| 101 | -Wno-ignored-qualifiers \ |
| 102 | -Wno-type-limits \ |
| 103 | -Os \ |
| 104 | -g \ |
| 105 | -fomit-frame-pointer \ |
| 106 | -fdata-sections \ |
| 107 | -ffunction-sections |
| 108 | |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 109 | MY_DEFS_Debug := \ |
Torne (Richard Coles) | 7d4cd47 | 2013-06-19 11:58:07 +0100 | [diff] [blame] | 110 | '-DANGLE_DX11' \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 111 | '-D_FILE_OFFSET_BITS=64' \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 112 | '-DNO_TCMALLOC' \ |
Ben Murdoch | 7dbb3d5 | 2013-07-17 14:55:54 +0100 | [diff] [blame] | 113 | '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ |
| 114 | '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 115 | '-DDISABLE_NACL' \ |
| 116 | '-DCHROMIUM_BUILD' \ |
| 117 | '-DUSE_LIBJPEG_TURBO=1' \ |
| 118 | '-DUSE_PROPRIETARY_CODECS' \ |
Ben Murdoch | a3f7b4e | 2013-07-24 10:36:34 +0100 | [diff] [blame] | 119 | '-DENABLE_CONFIGURATION_POLICY' \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 120 | '-DENABLE_GPU=1' \ |
| 121 | '-DUSE_OPENSSL=1' \ |
| 122 | '-DENABLE_EGLIMAGE=1' \ |
Ben Murdoch | 558790d | 2013-07-30 15:19:42 +0100 | [diff] [blame] | 123 | '-DMESA_EGL_NO_X11_HEADERS' \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 124 | '-DPOSIX_AVOID_MMAP' \ |
| 125 | '-DU_USING_ICU_NAMESPACE=0' \ |
| 126 | '-DPROTOBUF_USE_DLLS' \ |
| 127 | '-DGOOGLE_PROTOBUF_NO_RTTI' \ |
| 128 | '-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \ |
| 129 | '-D__STDC_CONSTANT_MACROS' \ |
| 130 | '-D__STDC_FORMAT_MACROS' \ |
| 131 | '-DANDROID' \ |
| 132 | '-D__GNU_SOURCE=1' \ |
| 133 | '-DUSE_STLPORT=1' \ |
| 134 | '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ |
| 135 | '-DCHROME_BUILD_ID=""' \ |
| 136 | '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ |
| 137 | '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ |
| 138 | '-D_DEBUG' |
| 139 | |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 140 | |
| 141 | # Include paths placed before CFLAGS/CPPFLAGS |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 142 | LOCAL_C_INCLUDES_Debug := \ |
Ben Murdoch | bbcdd45 | 2013-07-25 10:06:34 +0100 | [diff] [blame] | 143 | $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ |
| 144 | $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 145 | $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ |
Ben Murdoch | bbcdd45 | 2013-07-25 10:06:34 +0100 | [diff] [blame] | 146 | $(LOCAL_PATH) \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 147 | $(LOCAL_PATH)/third_party/khronos \ |
| 148 | $(LOCAL_PATH)/gpu \ |
| 149 | $(gyp_shared_intermediate_dir)/protoc_out \ |
| 150 | $(gyp_shared_intermediate_dir)/ui/gl \ |
Torne (Richard Coles) | 868fa2f | 2013-06-11 10:57:03 +0100 | [diff] [blame] | 151 | $(LOCAL_PATH)/third_party/mesa/src/include \ |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 152 | $(PWD)/external/icu4c/common \ |
| 153 | $(PWD)/external/icu4c/i18n \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 154 | $(LOCAL_PATH)/third_party/protobuf \ |
| 155 | $(LOCAL_PATH)/third_party/protobuf/src \ |
| 156 | $(LOCAL_PATH)/third_party/re2 \ |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 157 | $(PWD)/frameworks/wilhelm/include \ |
| 158 | $(PWD)/bionic \ |
| 159 | $(PWD)/external/stlport/stlport |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 160 | |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 161 | |
| 162 | # Flags passed to only C++ (and not C) files. |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 163 | LOCAL_CPPFLAGS_Debug := \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 164 | -fno-rtti \ |
| 165 | -fno-threadsafe-statics \ |
| 166 | -fvisibility-inlines-hidden \ |
| 167 | -Wsign-compare \ |
| 168 | -Wno-abi \ |
| 169 | -Wno-error=c++0x-compat \ |
| 170 | -Wno-non-virtual-dtor \ |
| 171 | -Wno-sign-promo |
| 172 | |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 173 | |
| 174 | # Flags passed to both C and C++ files. |
| 175 | MY_CFLAGS_Release := \ |
| 176 | -fstack-protector \ |
| 177 | --param=ssp-buffer-size=4 \ |
| 178 | -Werror \ |
| 179 | -fno-exceptions \ |
| 180 | -fno-strict-aliasing \ |
| 181 | -Wall \ |
| 182 | -Wno-unused-parameter \ |
| 183 | -Wno-missing-field-initializers \ |
| 184 | -fvisibility=hidden \ |
| 185 | -pipe \ |
| 186 | -fPIC \ |
| 187 | -Wno-unknown-pragmas \ |
| 188 | -fno-tree-sra \ |
| 189 | -fuse-ld=gold \ |
| 190 | -Wno-psabi \ |
| 191 | -ffunction-sections \ |
| 192 | -funwind-tables \ |
| 193 | -g \ |
| 194 | -fstack-protector \ |
| 195 | -fno-short-enums \ |
| 196 | -finline-limit=64 \ |
| 197 | -Wa,--noexecstack \ |
| 198 | -U_FORTIFY_SOURCE \ |
| 199 | -Wno-extra \ |
| 200 | -Wno-ignored-qualifiers \ |
| 201 | -Wno-type-limits \ |
| 202 | -Os \ |
| 203 | -fno-ident \ |
| 204 | -fdata-sections \ |
| 205 | -ffunction-sections \ |
| 206 | -fomit-frame-pointer |
| 207 | |
| 208 | MY_DEFS_Release := \ |
| 209 | '-DANGLE_DX11' \ |
| 210 | '-D_FILE_OFFSET_BITS=64' \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 211 | '-DNO_TCMALLOC' \ |
Ben Murdoch | 7dbb3d5 | 2013-07-17 14:55:54 +0100 | [diff] [blame] | 212 | '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ |
| 213 | '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 214 | '-DDISABLE_NACL' \ |
| 215 | '-DCHROMIUM_BUILD' \ |
| 216 | '-DUSE_LIBJPEG_TURBO=1' \ |
| 217 | '-DUSE_PROPRIETARY_CODECS' \ |
Ben Murdoch | a3f7b4e | 2013-07-24 10:36:34 +0100 | [diff] [blame] | 218 | '-DENABLE_CONFIGURATION_POLICY' \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 219 | '-DENABLE_GPU=1' \ |
| 220 | '-DUSE_OPENSSL=1' \ |
| 221 | '-DENABLE_EGLIMAGE=1' \ |
Ben Murdoch | 558790d | 2013-07-30 15:19:42 +0100 | [diff] [blame] | 222 | '-DMESA_EGL_NO_X11_HEADERS' \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 223 | '-DPOSIX_AVOID_MMAP' \ |
| 224 | '-DU_USING_ICU_NAMESPACE=0' \ |
| 225 | '-DPROTOBUF_USE_DLLS' \ |
| 226 | '-DGOOGLE_PROTOBUF_NO_RTTI' \ |
| 227 | '-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \ |
| 228 | '-D__STDC_CONSTANT_MACROS' \ |
| 229 | '-D__STDC_FORMAT_MACROS' \ |
| 230 | '-DANDROID' \ |
| 231 | '-D__GNU_SOURCE=1' \ |
| 232 | '-DUSE_STLPORT=1' \ |
| 233 | '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ |
| 234 | '-DCHROME_BUILD_ID=""' \ |
| 235 | '-DNDEBUG' \ |
| 236 | '-DNVALGRIND' \ |
| 237 | '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ |
| 238 | '-D_FORTIFY_SOURCE=2' |
| 239 | |
| 240 | |
| 241 | # Include paths placed before CFLAGS/CPPFLAGS |
| 242 | LOCAL_C_INCLUDES_Release := \ |
Ben Murdoch | bbcdd45 | 2013-07-25 10:06:34 +0100 | [diff] [blame] | 243 | $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ |
| 244 | $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 245 | $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ |
Ben Murdoch | bbcdd45 | 2013-07-25 10:06:34 +0100 | [diff] [blame] | 246 | $(LOCAL_PATH) \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 247 | $(LOCAL_PATH)/third_party/khronos \ |
| 248 | $(LOCAL_PATH)/gpu \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 249 | $(gyp_shared_intermediate_dir)/protoc_out \ |
| 250 | $(gyp_shared_intermediate_dir)/ui/gl \ |
| 251 | $(LOCAL_PATH)/third_party/mesa/src/include \ |
| 252 | $(PWD)/external/icu4c/common \ |
| 253 | $(PWD)/external/icu4c/i18n \ |
| 254 | $(LOCAL_PATH)/third_party/protobuf \ |
| 255 | $(LOCAL_PATH)/third_party/protobuf/src \ |
| 256 | $(LOCAL_PATH)/third_party/re2 \ |
| 257 | $(PWD)/frameworks/wilhelm/include \ |
| 258 | $(PWD)/bionic \ |
| 259 | $(PWD)/external/stlport/stlport |
| 260 | |
| 261 | |
| 262 | # Flags passed to only C++ (and not C) files. |
| 263 | LOCAL_CPPFLAGS_Release := \ |
| 264 | -fno-rtti \ |
| 265 | -fno-threadsafe-statics \ |
| 266 | -fvisibility-inlines-hidden \ |
| 267 | -Wsign-compare \ |
| 268 | -Wno-abi \ |
| 269 | -Wno-error=c++0x-compat \ |
| 270 | -Wno-non-virtual-dtor \ |
| 271 | -Wno-sign-promo |
| 272 | |
| 273 | |
| 274 | LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) |
| 275 | LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) |
| 276 | LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 277 | ### Rules for final target. |
| 278 | |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 279 | LOCAL_LDFLAGS_Debug := \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 280 | -Wl,-z,now \ |
| 281 | -Wl,-z,relro \ |
| 282 | -Wl,-z,noexecstack \ |
| 283 | -fPIC \ |
| 284 | -Wl,-z,relro \ |
| 285 | -Wl,-z,now \ |
| 286 | -fuse-ld=gold \ |
| 287 | -nostdlib \ |
| 288 | -Wl,--no-undefined \ |
| 289 | -Wl,--exclude-libs=ALL \ |
| 290 | -Wl,--icf=safe \ |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 291 | -Wl,--gc-sections \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 292 | -Wl,-O1 \ |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 293 | -Wl,--as-needed |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 294 | |
| 295 | |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 296 | LOCAL_LDFLAGS_Release := \ |
| 297 | -Wl,-z,now \ |
| 298 | -Wl,-z,relro \ |
| 299 | -Wl,-z,noexecstack \ |
| 300 | -fPIC \ |
| 301 | -Wl,-z,relro \ |
| 302 | -Wl,-z,now \ |
| 303 | -fuse-ld=gold \ |
| 304 | -nostdlib \ |
| 305 | -Wl,--no-undefined \ |
| 306 | -Wl,--exclude-libs=ALL \ |
| 307 | -Wl,--icf=safe \ |
| 308 | -Wl,-O1 \ |
| 309 | -Wl,--as-needed \ |
| 310 | -Wl,--gc-sections |
| 311 | |
| 312 | |
| 313 | LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) |
| 314 | |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 315 | LOCAL_STATIC_LIBRARIES := \ |
| 316 | gpu_disk_cache_proto_gyp \ |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 317 | ui_gl_gl_gyp \ |
| 318 | ui_ui_gyp |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 319 | |
| 320 | # Enable grouping to fix circular references |
| 321 | LOCAL_GROUP_STATIC_LIBRARIES := true |
| 322 | |
| 323 | LOCAL_SHARED_LIBRARIES := \ |
| 324 | libstlport \ |
| 325 | libdl |
| 326 | |
| 327 | # Add target alias to "gyp_all_modules" target. |
| 328 | .PHONY: gyp_all_modules |
| 329 | gyp_all_modules: gpu_command_buffer_service_gyp |
| 330 | |
| 331 | # Alias gyp target name. |
| 332 | .PHONY: command_buffer_service |
| 333 | command_buffer_service: gpu_command_buffer_service_gyp |
| 334 | |
| 335 | include $(BUILD_STATIC_LIBRARY) |