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