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. 32 MY_CFLAGS_Debug := \ 33 -fstack-protector \ 34 --param=ssp-buffer-size=4 \ 35 \ 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 -EL \ 45 -mhard-float \ 46 -ffunction-sections \ 47 -funwind-tables \ 48 -g \ 49 -fstack-protector \ 50 -fno-short-enums \ 51 -finline-limit=64 \ 52 -Wa,--noexecstack \ 53 -U_FORTIFY_SOURCE \ 54 -Wno-extra \ 55 -Wno-ignored-qualifiers \ 56 -Wno-type-limits \ 57 -Os \ 58 -g \ 59 -fomit-frame-pointer \ 60 -fdata-sections \ 61 -ffunction-sections 62 63 MY_DEFS_Debug := \ 64 '-DANGLE_DX11' \ 65 '-D_FILE_OFFSET_BITS=64' \ 66 '-DNO_TCMALLOC' \ 67 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 68 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 69 '-DDISABLE_NACL' \ 70 '-DCHROMIUM_BUILD' \ 71 '-DUSE_LIBJPEG_TURBO=1' \ 72 '-DUSE_PROPRIETARY_CODECS' \ 73 '-DENABLE_CONFIGURATION_POLICY' \ 74 '-DLOGGING_IS_OFFICIAL_BUILD=1' \ 75 '-DTRACING_IS_OFFICIAL_BUILD=1' \ 76 '-DENABLE_GPU=1' \ 77 '-DUSE_OPENSSL=1' \ 78 '-DENABLE_EGLIMAGE=1' \ 79 '-DENABLE_PRINTING=1' \ 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 91 92 # Include paths placed before CFLAGS/CPPFLAGS 93 LOCAL_C_INCLUDES_Debug := \ 94 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 95 $(LOCAL_PATH) \ 96 $(LOCAL_PATH)/third_party/khronos \ 97 $(LOCAL_PATH)/gpu \ 98 $(PWD)/frameworks/wilhelm/include \ 99 $(PWD)/bionic \ 100 $(PWD)/external/stlport/stlport 101 102 103 # Flags passed to only C++ (and not C) files. 104 LOCAL_CPPFLAGS_Debug := \ 105 -fno-rtti \ 106 -fno-threadsafe-statics \ 107 -fvisibility-inlines-hidden \ 108 -Wsign-compare \ 109 -Wno-uninitialized \ 110 -Wno-error=c++0x-compat \ 111 -Wno-non-virtual-dtor \ 112 -Wno-sign-promo 113 114 115 # Flags passed to both C and C++ files. 116 MY_CFLAGS_Release := \ 117 -fstack-protector \ 118 --param=ssp-buffer-size=4 \ 119 \ 120 -fno-exceptions \ 121 -fno-strict-aliasing \ 122 -Wall \ 123 -Wno-unused-parameter \ 124 -Wno-missing-field-initializers \ 125 -fvisibility=hidden \ 126 -pipe \ 127 -fPIC \ 128 -EL \ 129 -mhard-float \ 130 -ffunction-sections \ 131 -funwind-tables \ 132 -g \ 133 -fstack-protector \ 134 -fno-short-enums \ 135 -finline-limit=64 \ 136 -Wa,--noexecstack \ 137 -U_FORTIFY_SOURCE \ 138 -Wno-extra \ 139 -Wno-ignored-qualifiers \ 140 -Wno-type-limits \ 141 -Os \ 142 -fno-ident \ 143 -fdata-sections \ 144 -ffunction-sections \ 145 -fomit-frame-pointer 146 147 MY_DEFS_Release := \ 148 '-DANGLE_DX11' \ 149 '-D_FILE_OFFSET_BITS=64' \ 150 '-DNO_TCMALLOC' \ 151 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 152 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 153 '-DDISABLE_NACL' \ 154 '-DCHROMIUM_BUILD' \ 155 '-DUSE_LIBJPEG_TURBO=1' \ 156 '-DUSE_PROPRIETARY_CODECS' \ 157 '-DENABLE_CONFIGURATION_POLICY' \ 158 '-DLOGGING_IS_OFFICIAL_BUILD=1' \ 159 '-DTRACING_IS_OFFICIAL_BUILD=1' \ 160 '-DENABLE_GPU=1' \ 161 '-DUSE_OPENSSL=1' \ 162 '-DENABLE_EGLIMAGE=1' \ 163 '-DENABLE_PRINTING=1' \ 164 '-D__STDC_CONSTANT_MACROS' \ 165 '-D__STDC_FORMAT_MACROS' \ 166 '-DANDROID' \ 167 '-D__GNU_SOURCE=1' \ 168 '-DUSE_STLPORT=1' \ 169 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 170 '-DCHROME_BUILD_ID=""' \ 171 '-DNDEBUG' \ 172 '-DNVALGRIND' \ 173 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 174 '-D_FORTIFY_SOURCE=2' 175 176 177 # Include paths placed before CFLAGS/CPPFLAGS 178 LOCAL_C_INCLUDES_Release := \ 179 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 180 $(LOCAL_PATH) \ 181 $(LOCAL_PATH)/third_party/khronos \ 182 $(LOCAL_PATH)/gpu \ 183 $(PWD)/frameworks/wilhelm/include \ 184 $(PWD)/bionic \ 185 $(PWD)/external/stlport/stlport 186 187 188 # Flags passed to only C++ (and not C) files. 189 LOCAL_CPPFLAGS_Release := \ 190 -fno-rtti \ 191 -fno-threadsafe-statics \ 192 -fvisibility-inlines-hidden \ 193 -Wsign-compare \ 194 -Wno-uninitialized \ 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)) 203 ### Rules for final target. 204 205 LOCAL_LDFLAGS_Debug := \ 206 -Wl,-z,now \ 207 -Wl,-z,relro \ 208 -Wl,-z,noexecstack \ 209 -fPIC \ 210 -EL \ 211 -Wl,--no-keep-memory \ 212 -nostdlib \ 213 -Wl,--no-undefined \ 214 -Wl,--exclude-libs=ALL \ 215 -Wl,--fatal-warnings \ 216 -Wl,--gc-sections \ 217 -Wl,--warn-shared-textrel \ 218 -Wl,-O1 \ 219 -Wl,--as-needed 220 221 222 LOCAL_LDFLAGS_Release := \ 223 -Wl,-z,now \ 224 -Wl,-z,relro \ 225 -Wl,-z,noexecstack \ 226 -fPIC \ 227 -EL \ 228 -Wl,--no-keep-memory \ 229 -nostdlib \ 230 -Wl,--no-undefined \ 231 -Wl,--exclude-libs=ALL \ 232 -Wl,-O1 \ 233 -Wl,--as-needed \ 234 -Wl,--gc-sections \ 235 -Wl,--fatal-warnings \ 236 -Wl,--warn-shared-textrel 237 238 239 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 240 241 LOCAL_STATIC_LIBRARIES := 242 243 # Enable grouping to fix circular references 244 LOCAL_GROUP_STATIC_LIBRARIES := true 245 246 LOCAL_SHARED_LIBRARIES := \ 247 libstlport \ 248 libdl 249 250 # Add target alias to "gyp_all_modules" target. 251 .PHONY: gyp_all_modules 252 gyp_all_modules: gpu_gpu_ipc_gyp 253 254 # Alias gyp target name. 255 .PHONY: gpu_ipc 256 gpu_ipc: gpu_gpu_ipc_gyp 257 258 include $(BUILD_STATIC_LIBRARY) 259