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_client_gyp |
| 7 | LOCAL_MODULE_SUFFIX := .a |
| 8 | LOCAL_MODULE_TAGS := optional |
Ben Murdoch | c5cede9 | 2014-04-10 11:22:14 +0100 | [diff] [blame] | 9 | LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) |
| 10 | gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) |
| 11 | gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 12 | |
| 13 | # Make sure our deps are built first. |
| 14 | GYP_TARGET_DEPENDENCIES := \ |
Ben Murdoch | c5cede9 | 2014-04-10 11:22:14 +0100 | [diff] [blame] | 15 | $(call intermediates-dir-for,GYP,third_party_khronos_khronos_headers_gyp,,,$(GYP_VAR_PREFIX))/khronos_headers.stamp |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 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 := \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 28 | gpu/command_buffer/client/cmd_buffer_helper.cc \ |
| 29 | gpu/command_buffer/client/fenced_allocator.cc \ |
| 30 | gpu/command_buffer/client/mapped_memory.cc \ |
| 31 | gpu/command_buffer/client/ring_buffer.cc \ |
| 32 | gpu/command_buffer/client/transfer_buffer.cc |
| 33 | |
| 34 | |
| 35 | # Flags passed to both C and C++ files. |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 36 | MY_CFLAGS_Debug := \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 37 | -fstack-protector \ |
| 38 | --param=ssp-buffer-size=4 \ |
| 39 | -Werror \ |
| 40 | -fno-exceptions \ |
| 41 | -fno-strict-aliasing \ |
| 42 | -Wall \ |
| 43 | -Wno-unused-parameter \ |
| 44 | -Wno-missing-field-initializers \ |
| 45 | -fvisibility=hidden \ |
| 46 | -pipe \ |
| 47 | -fPIC \ |
Torne (Richard Coles) | cedac22 | 2014-06-03 10:58:34 +0100 | [diff] [blame] | 48 | -Wno-unused-local-typedefs \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 49 | -fno-tree-sra \ |
Torne (Richard Coles) | cedac22 | 2014-06-03 10:58:34 +0100 | [diff] [blame] | 50 | -fno-partial-inlining \ |
| 51 | -fno-early-inlining \ |
| 52 | -fno-tree-copy-prop \ |
| 53 | -fno-tree-loop-optimize \ |
| 54 | -fno-move-loop-invariants \ |
| 55 | -fno-caller-saves \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 56 | -Wno-psabi \ |
| 57 | -ffunction-sections \ |
| 58 | -funwind-tables \ |
| 59 | -g \ |
| 60 | -fstack-protector \ |
| 61 | -fno-short-enums \ |
| 62 | -finline-limit=64 \ |
| 63 | -Wa,--noexecstack \ |
| 64 | -U_FORTIFY_SOURCE \ |
| 65 | -Wno-extra \ |
| 66 | -Wno-ignored-qualifiers \ |
| 67 | -Wno-type-limits \ |
Torne (Richard Coles) | 5d1f7b1 | 2014-02-21 12:16:55 +0000 | [diff] [blame] | 68 | -Wno-unused-but-set-variable \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 69 | -Os \ |
| 70 | -g \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 71 | -fdata-sections \ |
Torne (Richard Coles) | 5d1f7b1 | 2014-02-21 12:16:55 +0000 | [diff] [blame] | 72 | -ffunction-sections \ |
Ben Murdoch | 116680a | 2014-07-20 18:25:52 -0700 | [diff] [blame^] | 73 | -fomit-frame-pointer \ |
Torne (Richard Coles) | 5d1f7b1 | 2014-02-21 12:16:55 +0000 | [diff] [blame] | 74 | -funwind-tables |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 75 | |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 76 | MY_DEFS_Debug := \ |
Torne (Richard Coles) | a3f6a49 | 2013-12-18 16:25:09 +0000 | [diff] [blame] | 77 | '-DV8_DEPRECATION_WARNINGS' \ |
Torne (Richard Coles) | a140131 | 2014-03-18 10:20:56 +0000 | [diff] [blame] | 78 | '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 79 | '-D_FILE_OFFSET_BITS=64' \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 80 | '-DNO_TCMALLOC' \ |
| 81 | '-DDISABLE_NACL' \ |
| 82 | '-DCHROMIUM_BUILD' \ |
| 83 | '-DUSE_LIBJPEG_TURBO=1' \ |
Ben Murdoch | e5d81f5 | 2014-04-03 12:29:45 +0100 | [diff] [blame] | 84 | '-DENABLE_WEBRTC=1' \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 85 | '-DUSE_PROPRIETARY_CODECS' \ |
Torne (Richard Coles) | f8ee788 | 2014-06-20 14:52:04 +0100 | [diff] [blame] | 86 | '-DENABLE_BROWSER_CDMS' \ |
Ben Murdoch | a3f7b4e | 2013-07-24 10:36:34 +0100 | [diff] [blame] | 87 | '-DENABLE_CONFIGURATION_POLICY' \ |
Torne (Richard Coles) | 1e9bf3e | 2013-10-31 11:16:26 +0000 | [diff] [blame] | 88 | '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ |
| 89 | '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 90 | '-DENABLE_EGLIMAGE=1' \ |
Torne (Richard Coles) | 58537e2 | 2013-09-12 12:10:22 +0100 | [diff] [blame] | 91 | '-DCLD_VERSION=1' \ |
Ben Murdoch | 116680a | 2014-07-20 18:25:52 -0700 | [diff] [blame^] | 92 | '-DCLD_DATA_FROM_STATIC' \ |
Torne (Richard Coles) | a3f6a49 | 2013-12-18 16:25:09 +0000 | [diff] [blame] | 93 | '-DENABLE_PRINTING=1' \ |
Torne (Richard Coles) | f2477e0 | 2013-11-28 11:55:43 +0000 | [diff] [blame] | 94 | '-DENABLE_MANAGED_USERS=1' \ |
Torne (Richard Coles) | cedac22 | 2014-06-03 10:58:34 +0100 | [diff] [blame] | 95 | '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ |
| 96 | '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ |
| 97 | '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ |
| 98 | '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ |
Torne (Richard Coles) | 6d86b77 | 2014-06-25 10:30:53 +0100 | [diff] [blame] | 99 | '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ |
Torne (Richard Coles) | 0de6073 | 2014-05-15 12:16:31 +0100 | [diff] [blame] | 100 | '-DVIDEO_HOLE=1' \ |
Torne (Richard Coles) | a140131 | 2014-03-18 10:20:56 +0000 | [diff] [blame] | 101 | '-DUSE_OPENSSL=1' \ |
Ben Murdoch | effb81e | 2014-03-31 11:51:25 +0100 | [diff] [blame] | 102 | '-DUSE_OPENSSL_CERTS=1' \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 103 | '-D__STDC_CONSTANT_MACROS' \ |
| 104 | '-D__STDC_FORMAT_MACROS' \ |
| 105 | '-DANDROID' \ |
| 106 | '-D__GNU_SOURCE=1' \ |
| 107 | '-DUSE_STLPORT=1' \ |
| 108 | '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ |
| 109 | '-DCHROME_BUILD_ID=""' \ |
| 110 | '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ |
| 111 | '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ |
| 112 | '-D_DEBUG' |
| 113 | |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 114 | |
| 115 | # Include paths placed before CFLAGS/CPPFLAGS |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 116 | LOCAL_C_INCLUDES_Debug := \ |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 117 | $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ |
Torne (Richard Coles) | f8ee788 | 2014-06-20 14:52:04 +0100 | [diff] [blame] | 118 | $(gyp_shared_intermediate_dir) \ |
Ben Murdoch | bbcdd45 | 2013-07-25 10:06:34 +0100 | [diff] [blame] | 119 | $(LOCAL_PATH) \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 120 | $(LOCAL_PATH)/third_party/khronos \ |
| 121 | $(LOCAL_PATH)/gpu \ |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 122 | $(PWD)/frameworks/wilhelm/include \ |
| 123 | $(PWD)/bionic \ |
| 124 | $(PWD)/external/stlport/stlport |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 125 | |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 126 | |
| 127 | # Flags passed to only C++ (and not C) files. |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 128 | LOCAL_CPPFLAGS_Debug := \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 129 | -fno-rtti \ |
| 130 | -fno-threadsafe-statics \ |
| 131 | -fvisibility-inlines-hidden \ |
| 132 | -Wsign-compare \ |
| 133 | -Wno-abi \ |
Ben Murdoch | 116680a | 2014-07-20 18:25:52 -0700 | [diff] [blame^] | 134 | -std=gnu++11 \ |
| 135 | -Wno-narrowing \ |
| 136 | -Wno-literal-suffix \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 137 | -Wno-non-virtual-dtor \ |
| 138 | -Wno-sign-promo |
| 139 | |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 140 | |
| 141 | # Flags passed to both C and C++ files. |
| 142 | MY_CFLAGS_Release := \ |
| 143 | -fstack-protector \ |
| 144 | --param=ssp-buffer-size=4 \ |
| 145 | -Werror \ |
| 146 | -fno-exceptions \ |
| 147 | -fno-strict-aliasing \ |
| 148 | -Wall \ |
| 149 | -Wno-unused-parameter \ |
| 150 | -Wno-missing-field-initializers \ |
| 151 | -fvisibility=hidden \ |
| 152 | -pipe \ |
| 153 | -fPIC \ |
Torne (Richard Coles) | cedac22 | 2014-06-03 10:58:34 +0100 | [diff] [blame] | 154 | -Wno-unused-local-typedefs \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 155 | -fno-tree-sra \ |
Torne (Richard Coles) | cedac22 | 2014-06-03 10:58:34 +0100 | [diff] [blame] | 156 | -fno-partial-inlining \ |
| 157 | -fno-early-inlining \ |
| 158 | -fno-tree-copy-prop \ |
| 159 | -fno-tree-loop-optimize \ |
| 160 | -fno-move-loop-invariants \ |
| 161 | -fno-caller-saves \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 162 | -Wno-psabi \ |
| 163 | -ffunction-sections \ |
| 164 | -funwind-tables \ |
| 165 | -g \ |
| 166 | -fstack-protector \ |
| 167 | -fno-short-enums \ |
| 168 | -finline-limit=64 \ |
| 169 | -Wa,--noexecstack \ |
| 170 | -U_FORTIFY_SOURCE \ |
| 171 | -Wno-extra \ |
| 172 | -Wno-ignored-qualifiers \ |
| 173 | -Wno-type-limits \ |
Torne (Richard Coles) | 5d1f7b1 | 2014-02-21 12:16:55 +0000 | [diff] [blame] | 174 | -Wno-unused-but-set-variable \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 175 | -Os \ |
| 176 | -fno-ident \ |
| 177 | -fdata-sections \ |
| 178 | -ffunction-sections \ |
Torne (Richard Coles) | 5d1f7b1 | 2014-02-21 12:16:55 +0000 | [diff] [blame] | 179 | -fomit-frame-pointer \ |
| 180 | -funwind-tables |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 181 | |
| 182 | MY_DEFS_Release := \ |
Torne (Richard Coles) | a3f6a49 | 2013-12-18 16:25:09 +0000 | [diff] [blame] | 183 | '-DV8_DEPRECATION_WARNINGS' \ |
Torne (Richard Coles) | a140131 | 2014-03-18 10:20:56 +0000 | [diff] [blame] | 184 | '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 185 | '-D_FILE_OFFSET_BITS=64' \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 186 | '-DNO_TCMALLOC' \ |
| 187 | '-DDISABLE_NACL' \ |
| 188 | '-DCHROMIUM_BUILD' \ |
| 189 | '-DUSE_LIBJPEG_TURBO=1' \ |
Ben Murdoch | e5d81f5 | 2014-04-03 12:29:45 +0100 | [diff] [blame] | 190 | '-DENABLE_WEBRTC=1' \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 191 | '-DUSE_PROPRIETARY_CODECS' \ |
Torne (Richard Coles) | f8ee788 | 2014-06-20 14:52:04 +0100 | [diff] [blame] | 192 | '-DENABLE_BROWSER_CDMS' \ |
Ben Murdoch | a3f7b4e | 2013-07-24 10:36:34 +0100 | [diff] [blame] | 193 | '-DENABLE_CONFIGURATION_POLICY' \ |
Torne (Richard Coles) | 1e9bf3e | 2013-10-31 11:16:26 +0000 | [diff] [blame] | 194 | '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ |
| 195 | '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 196 | '-DENABLE_EGLIMAGE=1' \ |
Torne (Richard Coles) | 58537e2 | 2013-09-12 12:10:22 +0100 | [diff] [blame] | 197 | '-DCLD_VERSION=1' \ |
Ben Murdoch | 116680a | 2014-07-20 18:25:52 -0700 | [diff] [blame^] | 198 | '-DCLD_DATA_FROM_STATIC' \ |
Torne (Richard Coles) | a3f6a49 | 2013-12-18 16:25:09 +0000 | [diff] [blame] | 199 | '-DENABLE_PRINTING=1' \ |
Torne (Richard Coles) | f2477e0 | 2013-11-28 11:55:43 +0000 | [diff] [blame] | 200 | '-DENABLE_MANAGED_USERS=1' \ |
Torne (Richard Coles) | cedac22 | 2014-06-03 10:58:34 +0100 | [diff] [blame] | 201 | '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ |
| 202 | '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ |
| 203 | '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ |
| 204 | '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ |
Torne (Richard Coles) | 6d86b77 | 2014-06-25 10:30:53 +0100 | [diff] [blame] | 205 | '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ |
Torne (Richard Coles) | 0de6073 | 2014-05-15 12:16:31 +0100 | [diff] [blame] | 206 | '-DVIDEO_HOLE=1' \ |
Torne (Richard Coles) | a140131 | 2014-03-18 10:20:56 +0000 | [diff] [blame] | 207 | '-DUSE_OPENSSL=1' \ |
Ben Murdoch | effb81e | 2014-03-31 11:51:25 +0100 | [diff] [blame] | 208 | '-DUSE_OPENSSL_CERTS=1' \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 209 | '-D__STDC_CONSTANT_MACROS' \ |
| 210 | '-D__STDC_FORMAT_MACROS' \ |
| 211 | '-DANDROID' \ |
| 212 | '-D__GNU_SOURCE=1' \ |
| 213 | '-DUSE_STLPORT=1' \ |
| 214 | '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ |
| 215 | '-DCHROME_BUILD_ID=""' \ |
| 216 | '-DNDEBUG' \ |
| 217 | '-DNVALGRIND' \ |
| 218 | '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ |
| 219 | '-D_FORTIFY_SOURCE=2' |
| 220 | |
| 221 | |
| 222 | # Include paths placed before CFLAGS/CPPFLAGS |
| 223 | LOCAL_C_INCLUDES_Release := \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 224 | $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ |
Torne (Richard Coles) | f8ee788 | 2014-06-20 14:52:04 +0100 | [diff] [blame] | 225 | $(gyp_shared_intermediate_dir) \ |
Ben Murdoch | bbcdd45 | 2013-07-25 10:06:34 +0100 | [diff] [blame] | 226 | $(LOCAL_PATH) \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 227 | $(LOCAL_PATH)/third_party/khronos \ |
| 228 | $(LOCAL_PATH)/gpu \ |
| 229 | $(PWD)/frameworks/wilhelm/include \ |
| 230 | $(PWD)/bionic \ |
| 231 | $(PWD)/external/stlport/stlport |
| 232 | |
| 233 | |
| 234 | # Flags passed to only C++ (and not C) files. |
| 235 | LOCAL_CPPFLAGS_Release := \ |
| 236 | -fno-rtti \ |
| 237 | -fno-threadsafe-statics \ |
| 238 | -fvisibility-inlines-hidden \ |
| 239 | -Wsign-compare \ |
| 240 | -Wno-abi \ |
Ben Murdoch | 116680a | 2014-07-20 18:25:52 -0700 | [diff] [blame^] | 241 | -std=gnu++11 \ |
| 242 | -Wno-narrowing \ |
| 243 | -Wno-literal-suffix \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 244 | -Wno-non-virtual-dtor \ |
| 245 | -Wno-sign-promo |
| 246 | |
| 247 | |
| 248 | LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) |
| 249 | LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) |
| 250 | LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) |
Torne (Richard Coles) | a140131 | 2014-03-18 10:20:56 +0000 | [diff] [blame] | 251 | LOCAL_ASFLAGS := $(LOCAL_CFLAGS) |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 252 | ### Rules for final target. |
| 253 | |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 254 | LOCAL_LDFLAGS_Debug := \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 255 | -Wl,-z,now \ |
| 256 | -Wl,-z,relro \ |
Ben Murdoch | c5cede9 | 2014-04-10 11:22:14 +0100 | [diff] [blame] | 257 | -Wl,--fatal-warnings \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 258 | -Wl,-z,noexecstack \ |
| 259 | -fPIC \ |
| 260 | -Wl,-z,relro \ |
| 261 | -Wl,-z,now \ |
| 262 | -fuse-ld=gold \ |
| 263 | -nostdlib \ |
| 264 | -Wl,--no-undefined \ |
| 265 | -Wl,--exclude-libs=ALL \ |
| 266 | -Wl,--icf=safe \ |
Torne (Richard Coles) | 58537e2 | 2013-09-12 12:10:22 +0100 | [diff] [blame] | 267 | -Wl,--warn-shared-textrel \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 268 | -Wl,-O1 \ |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 269 | -Wl,--as-needed |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 270 | |
| 271 | |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 272 | LOCAL_LDFLAGS_Release := \ |
| 273 | -Wl,-z,now \ |
| 274 | -Wl,-z,relro \ |
Ben Murdoch | c5cede9 | 2014-04-10 11:22:14 +0100 | [diff] [blame] | 275 | -Wl,--fatal-warnings \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 276 | -Wl,-z,noexecstack \ |
| 277 | -fPIC \ |
| 278 | -Wl,-z,relro \ |
| 279 | -Wl,-z,now \ |
| 280 | -fuse-ld=gold \ |
| 281 | -nostdlib \ |
| 282 | -Wl,--no-undefined \ |
| 283 | -Wl,--exclude-libs=ALL \ |
| 284 | -Wl,--icf=safe \ |
| 285 | -Wl,-O1 \ |
| 286 | -Wl,--as-needed \ |
Torne (Richard Coles) | 58537e2 | 2013-09-12 12:10:22 +0100 | [diff] [blame] | 287 | -Wl,--gc-sections \ |
Torne (Richard Coles) | 58537e2 | 2013-09-12 12:10:22 +0100 | [diff] [blame] | 288 | -Wl,--warn-shared-textrel |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 289 | |
| 290 | |
| 291 | LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) |
| 292 | |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 293 | LOCAL_STATIC_LIBRARIES := |
| 294 | |
| 295 | # Enable grouping to fix circular references |
| 296 | LOCAL_GROUP_STATIC_LIBRARIES := true |
| 297 | |
| 298 | LOCAL_SHARED_LIBRARIES := \ |
| 299 | libstlport \ |
| 300 | libdl |
| 301 | |
| 302 | # Add target alias to "gyp_all_modules" target. |
| 303 | .PHONY: gyp_all_modules |
| 304 | gyp_all_modules: gpu_command_buffer_client_gyp |
| 305 | |
| 306 | # Alias gyp target name. |
| 307 | .PHONY: command_buffer_client |
| 308 | command_buffer_client: gpu_command_buffer_client_gyp |
| 309 | |
| 310 | include $(BUILD_STATIC_LIBRARY) |