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 |
| 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 | |
| 16 | GYP_GENERATED_OUTPUTS := |
| 17 | |
| 18 | # Make sure our deps and generated files are built first. |
| 19 | LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) |
| 20 | |
| 21 | LOCAL_CPP_EXTENSION := .cc |
| 22 | LOCAL_GENERATED_SOURCES := |
| 23 | |
| 24 | GYP_COPIED_SOURCE_ORIGIN_DIRS := |
| 25 | |
| 26 | LOCAL_SRC_FILES := \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 27 | gpu/command_buffer/client/cmd_buffer_helper.cc \ |
| 28 | gpu/command_buffer/client/fenced_allocator.cc \ |
| 29 | gpu/command_buffer/client/mapped_memory.cc \ |
| 30 | gpu/command_buffer/client/ring_buffer.cc \ |
| 31 | gpu/command_buffer/client/transfer_buffer.cc |
| 32 | |
| 33 | |
| 34 | # Flags passed to both C and C++ files. |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 35 | MY_CFLAGS_Debug := \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 36 | -fstack-protector \ |
| 37 | --param=ssp-buffer-size=4 \ |
| 38 | -Werror \ |
| 39 | -fno-exceptions \ |
| 40 | -fno-strict-aliasing \ |
| 41 | -Wall \ |
| 42 | -Wno-unused-parameter \ |
| 43 | -Wno-missing-field-initializers \ |
| 44 | -fvisibility=hidden \ |
| 45 | -pipe \ |
| 46 | -fPIC \ |
| 47 | -fno-tree-sra \ |
| 48 | -fuse-ld=gold \ |
| 49 | -Wno-psabi \ |
| 50 | -ffunction-sections \ |
| 51 | -funwind-tables \ |
| 52 | -g \ |
| 53 | -fstack-protector \ |
| 54 | -fno-short-enums \ |
| 55 | -finline-limit=64 \ |
| 56 | -Wa,--noexecstack \ |
| 57 | -U_FORTIFY_SOURCE \ |
| 58 | -Wno-extra \ |
| 59 | -Wno-ignored-qualifiers \ |
| 60 | -Wno-type-limits \ |
| 61 | -Os \ |
| 62 | -g \ |
| 63 | -fomit-frame-pointer \ |
| 64 | -fdata-sections \ |
| 65 | -ffunction-sections |
| 66 | |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 67 | MY_DEFS_Debug := \ |
Torne (Richard Coles) | 7d4cd47 | 2013-06-19 11:58:07 +0100 | [diff] [blame] | 68 | '-DANGLE_DX11' \ |
Torne (Richard Coles) | a3f6a49 | 2013-12-18 16:25:09 +0000 | [diff] [blame] | 69 | '-DV8_DEPRECATION_WARNINGS' \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 70 | '-D_FILE_OFFSET_BITS=64' \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 71 | '-DNO_TCMALLOC' \ |
| 72 | '-DDISABLE_NACL' \ |
| 73 | '-DCHROMIUM_BUILD' \ |
| 74 | '-DUSE_LIBJPEG_TURBO=1' \ |
| 75 | '-DUSE_PROPRIETARY_CODECS' \ |
Ben Murdoch | a3f7b4e | 2013-07-24 10:36:34 +0100 | [diff] [blame] | 76 | '-DENABLE_CONFIGURATION_POLICY' \ |
Torne (Richard Coles) | 1e9bf3e | 2013-10-31 11:16:26 +0000 | [diff] [blame] | 77 | '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ |
| 78 | '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ |
Torne (Richard Coles) | a3f6a49 | 2013-12-18 16:25:09 +0000 | [diff] [blame] | 79 | '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 80 | '-DUSE_OPENSSL=1' \ |
| 81 | '-DENABLE_EGLIMAGE=1' \ |
Torne (Richard Coles) | 58537e2 | 2013-09-12 12:10:22 +0100 | [diff] [blame] | 82 | '-DCLD_VERSION=1' \ |
Torne (Richard Coles) | a3f6a49 | 2013-12-18 16:25:09 +0000 | [diff] [blame] | 83 | '-DENABLE_PRINTING=1' \ |
Torne (Richard Coles) | f2477e0 | 2013-11-28 11:55:43 +0000 | [diff] [blame] | 84 | '-DENABLE_MANAGED_USERS=1' \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 85 | '-D__STDC_CONSTANT_MACROS' \ |
| 86 | '-D__STDC_FORMAT_MACROS' \ |
| 87 | '-DANDROID' \ |
| 88 | '-D__GNU_SOURCE=1' \ |
| 89 | '-DUSE_STLPORT=1' \ |
| 90 | '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ |
| 91 | '-DCHROME_BUILD_ID=""' \ |
| 92 | '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ |
| 93 | '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ |
| 94 | '-D_DEBUG' |
| 95 | |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 96 | |
| 97 | # Include paths placed before CFLAGS/CPPFLAGS |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 98 | LOCAL_C_INCLUDES_Debug := \ |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 99 | $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ |
Ben Murdoch | bbcdd45 | 2013-07-25 10:06:34 +0100 | [diff] [blame] | 100 | $(LOCAL_PATH) \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 101 | $(LOCAL_PATH)/third_party/khronos \ |
| 102 | $(LOCAL_PATH)/gpu \ |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 103 | $(PWD)/frameworks/wilhelm/include \ |
| 104 | $(PWD)/bionic \ |
| 105 | $(PWD)/external/stlport/stlport |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 106 | |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 107 | |
| 108 | # Flags passed to only C++ (and not C) files. |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 109 | LOCAL_CPPFLAGS_Debug := \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 110 | -fno-rtti \ |
| 111 | -fno-threadsafe-statics \ |
| 112 | -fvisibility-inlines-hidden \ |
| 113 | -Wsign-compare \ |
| 114 | -Wno-abi \ |
| 115 | -Wno-error=c++0x-compat \ |
| 116 | -Wno-non-virtual-dtor \ |
| 117 | -Wno-sign-promo |
| 118 | |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 119 | |
| 120 | # Flags passed to both C and C++ files. |
| 121 | MY_CFLAGS_Release := \ |
| 122 | -fstack-protector \ |
| 123 | --param=ssp-buffer-size=4 \ |
| 124 | -Werror \ |
| 125 | -fno-exceptions \ |
| 126 | -fno-strict-aliasing \ |
| 127 | -Wall \ |
| 128 | -Wno-unused-parameter \ |
| 129 | -Wno-missing-field-initializers \ |
| 130 | -fvisibility=hidden \ |
| 131 | -pipe \ |
| 132 | -fPIC \ |
| 133 | -fno-tree-sra \ |
| 134 | -fuse-ld=gold \ |
| 135 | -Wno-psabi \ |
| 136 | -ffunction-sections \ |
| 137 | -funwind-tables \ |
| 138 | -g \ |
| 139 | -fstack-protector \ |
| 140 | -fno-short-enums \ |
| 141 | -finline-limit=64 \ |
| 142 | -Wa,--noexecstack \ |
| 143 | -U_FORTIFY_SOURCE \ |
| 144 | -Wno-extra \ |
| 145 | -Wno-ignored-qualifiers \ |
| 146 | -Wno-type-limits \ |
| 147 | -Os \ |
| 148 | -fno-ident \ |
| 149 | -fdata-sections \ |
| 150 | -ffunction-sections \ |
| 151 | -fomit-frame-pointer |
| 152 | |
| 153 | MY_DEFS_Release := \ |
| 154 | '-DANGLE_DX11' \ |
Torne (Richard Coles) | a3f6a49 | 2013-12-18 16:25:09 +0000 | [diff] [blame] | 155 | '-DV8_DEPRECATION_WARNINGS' \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 156 | '-D_FILE_OFFSET_BITS=64' \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 157 | '-DNO_TCMALLOC' \ |
| 158 | '-DDISABLE_NACL' \ |
| 159 | '-DCHROMIUM_BUILD' \ |
| 160 | '-DUSE_LIBJPEG_TURBO=1' \ |
| 161 | '-DUSE_PROPRIETARY_CODECS' \ |
Ben Murdoch | a3f7b4e | 2013-07-24 10:36:34 +0100 | [diff] [blame] | 162 | '-DENABLE_CONFIGURATION_POLICY' \ |
Torne (Richard Coles) | 1e9bf3e | 2013-10-31 11:16:26 +0000 | [diff] [blame] | 163 | '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ |
| 164 | '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ |
Torne (Richard Coles) | a3f6a49 | 2013-12-18 16:25:09 +0000 | [diff] [blame] | 165 | '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 166 | '-DUSE_OPENSSL=1' \ |
| 167 | '-DENABLE_EGLIMAGE=1' \ |
Torne (Richard Coles) | 58537e2 | 2013-09-12 12:10:22 +0100 | [diff] [blame] | 168 | '-DCLD_VERSION=1' \ |
Torne (Richard Coles) | a3f6a49 | 2013-12-18 16:25:09 +0000 | [diff] [blame] | 169 | '-DENABLE_PRINTING=1' \ |
Torne (Richard Coles) | f2477e0 | 2013-11-28 11:55:43 +0000 | [diff] [blame] | 170 | '-DENABLE_MANAGED_USERS=1' \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 171 | '-D__STDC_CONSTANT_MACROS' \ |
| 172 | '-D__STDC_FORMAT_MACROS' \ |
| 173 | '-DANDROID' \ |
| 174 | '-D__GNU_SOURCE=1' \ |
| 175 | '-DUSE_STLPORT=1' \ |
| 176 | '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ |
| 177 | '-DCHROME_BUILD_ID=""' \ |
| 178 | '-DNDEBUG' \ |
| 179 | '-DNVALGRIND' \ |
| 180 | '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ |
| 181 | '-D_FORTIFY_SOURCE=2' |
| 182 | |
| 183 | |
| 184 | # Include paths placed before CFLAGS/CPPFLAGS |
| 185 | LOCAL_C_INCLUDES_Release := \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 186 | $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ |
Ben Murdoch | bbcdd45 | 2013-07-25 10:06:34 +0100 | [diff] [blame] | 187 | $(LOCAL_PATH) \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 188 | $(LOCAL_PATH)/third_party/khronos \ |
| 189 | $(LOCAL_PATH)/gpu \ |
| 190 | $(PWD)/frameworks/wilhelm/include \ |
| 191 | $(PWD)/bionic \ |
| 192 | $(PWD)/external/stlport/stlport |
| 193 | |
| 194 | |
| 195 | # Flags passed to only C++ (and not C) files. |
| 196 | LOCAL_CPPFLAGS_Release := \ |
| 197 | -fno-rtti \ |
| 198 | -fno-threadsafe-statics \ |
| 199 | -fvisibility-inlines-hidden \ |
| 200 | -Wsign-compare \ |
| 201 | -Wno-abi \ |
| 202 | -Wno-error=c++0x-compat \ |
| 203 | -Wno-non-virtual-dtor \ |
| 204 | -Wno-sign-promo |
| 205 | |
| 206 | |
| 207 | LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) |
| 208 | LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) |
| 209 | LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 210 | ### Rules for final target. |
| 211 | |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 212 | LOCAL_LDFLAGS_Debug := \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 213 | -Wl,-z,now \ |
| 214 | -Wl,-z,relro \ |
| 215 | -Wl,-z,noexecstack \ |
| 216 | -fPIC \ |
| 217 | -Wl,-z,relro \ |
| 218 | -Wl,-z,now \ |
| 219 | -fuse-ld=gold \ |
| 220 | -nostdlib \ |
| 221 | -Wl,--no-undefined \ |
| 222 | -Wl,--exclude-libs=ALL \ |
| 223 | -Wl,--icf=safe \ |
Torne (Richard Coles) | 58537e2 | 2013-09-12 12:10:22 +0100 | [diff] [blame] | 224 | -Wl,--fatal-warnings \ |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 225 | -Wl,--gc-sections \ |
Torne (Richard Coles) | 58537e2 | 2013-09-12 12:10:22 +0100 | [diff] [blame] | 226 | -Wl,--warn-shared-textrel \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 227 | -Wl,-O1 \ |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 228 | -Wl,--as-needed |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 229 | |
| 230 | |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 231 | LOCAL_LDFLAGS_Release := \ |
| 232 | -Wl,-z,now \ |
| 233 | -Wl,-z,relro \ |
| 234 | -Wl,-z,noexecstack \ |
| 235 | -fPIC \ |
| 236 | -Wl,-z,relro \ |
| 237 | -Wl,-z,now \ |
| 238 | -fuse-ld=gold \ |
| 239 | -nostdlib \ |
| 240 | -Wl,--no-undefined \ |
| 241 | -Wl,--exclude-libs=ALL \ |
| 242 | -Wl,--icf=safe \ |
| 243 | -Wl,-O1 \ |
| 244 | -Wl,--as-needed \ |
Torne (Richard Coles) | 58537e2 | 2013-09-12 12:10:22 +0100 | [diff] [blame] | 245 | -Wl,--gc-sections \ |
| 246 | -Wl,--fatal-warnings \ |
| 247 | -Wl,--warn-shared-textrel |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 248 | |
| 249 | |
| 250 | LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) |
| 251 | |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 252 | LOCAL_STATIC_LIBRARIES := |
| 253 | |
| 254 | # Enable grouping to fix circular references |
| 255 | LOCAL_GROUP_STATIC_LIBRARIES := true |
| 256 | |
| 257 | LOCAL_SHARED_LIBRARIES := \ |
| 258 | libstlport \ |
| 259 | libdl |
| 260 | |
| 261 | # Add target alias to "gyp_all_modules" target. |
| 262 | .PHONY: gyp_all_modules |
| 263 | gyp_all_modules: gpu_command_buffer_client_gyp |
| 264 | |
| 265 | # Alias gyp target name. |
| 266 | .PHONY: command_buffer_client |
| 267 | command_buffer_client: gpu_command_buffer_client_gyp |
| 268 | |
| 269 | include $(BUILD_STATIC_LIBRARY) |