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