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 --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 66 MY_DEFS_Debug := \ 67 '-DANGLE_DX11' \ 68 '-D_FILE_OFFSET_BITS=64' \ 69 '-DNO_TCMALLOC' \ 70 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 71 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 72 '-DDISABLE_NACL' \ 73 '-DCHROMIUM_BUILD' \ 74 '-DUSE_LIBJPEG_TURBO=1' \ 75 '-DUSE_PROPRIETARY_CODECS' \ 76 '-DENABLE_CONFIGURATION_POLICY' \ 77 '-DLOGGING_IS_OFFICIAL_BUILD=1' \ 78 '-DTRACING_IS_OFFICIAL_BUILD=1' \ 79 '-DENABLE_GPU=1' \ 80 '-DUSE_OPENSSL=1' \ 81 '-DENABLE_EGLIMAGE=1' \ 82 '-DENABLE_PRINTING=1' \ 83 '-D__STDC_CONSTANT_MACROS' \ 84 '-D__STDC_FORMAT_MACROS' \ 85 '-DANDROID' \ 86 '-D__GNU_SOURCE=1' \ 87 '-DUSE_STLPORT=1' \ 88 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 89 '-DCHROME_BUILD_ID=""' \ 90 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 91 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 92 '-D_DEBUG' 93 94 95 # Include paths placed before CFLAGS/CPPFLAGS 96 LOCAL_C_INCLUDES_Debug := \ 97 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 98 $(LOCAL_PATH) \ 99 $(LOCAL_PATH)/third_party/khronos \ 100 $(LOCAL_PATH)/gpu \ 101 $(PWD)/frameworks/wilhelm/include \ 102 $(PWD)/bionic \ 103 $(PWD)/external/stlport/stlport 104 105 106 # Flags passed to only C++ (and not C) files. 107 LOCAL_CPPFLAGS_Debug := \ 108 -fno-rtti \ 109 -fno-threadsafe-statics \ 110 -fvisibility-inlines-hidden \ 111 -Wsign-compare \ 112 -Wno-error=c++0x-compat \ 113 -Wno-non-virtual-dtor \ 114 -Wno-sign-promo 115 116 117 # Flags passed to both C and C++ files. 118 MY_CFLAGS_Release := \ 119 --param=ssp-buffer-size=4 \ 120 -Werror \ 121 -fno-exceptions \ 122 -fno-strict-aliasing \ 123 -Wall \ 124 -Wno-unused-parameter \ 125 -Wno-missing-field-initializers \ 126 -fvisibility=hidden \ 127 -pipe \ 128 -fPIC \ 129 -m32 \ 130 -mmmx \ 131 -march=pentium4 \ 132 -msse2 \ 133 -mfpmath=sse \ 134 -fuse-ld=gold \ 135 -ffunction-sections \ 136 -funwind-tables \ 137 -g \ 138 -fno-short-enums \ 139 -finline-limit=64 \ 140 -Wa,--noexecstack \ 141 -U_FORTIFY_SOURCE \ 142 -Wno-extra \ 143 -Wno-ignored-qualifiers \ 144 -Wno-type-limits \ 145 -fno-stack-protector \ 146 -Os \ 147 -fno-ident \ 148 -fdata-sections \ 149 -ffunction-sections \ 150 -fomit-frame-pointer \ 151 -fno-unwind-tables \ 152 -fno-asynchronous-unwind-tables 153 154 MY_DEFS_Release := \ 155 '-DANGLE_DX11' \ 156 '-D_FILE_OFFSET_BITS=64' \ 157 '-DNO_TCMALLOC' \ 158 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 159 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 160 '-DDISABLE_NACL' \ 161 '-DCHROMIUM_BUILD' \ 162 '-DUSE_LIBJPEG_TURBO=1' \ 163 '-DUSE_PROPRIETARY_CODECS' \ 164 '-DENABLE_CONFIGURATION_POLICY' \ 165 '-DLOGGING_IS_OFFICIAL_BUILD=1' \ 166 '-DTRACING_IS_OFFICIAL_BUILD=1' \ 167 '-DENABLE_GPU=1' \ 168 '-DUSE_OPENSSL=1' \ 169 '-DENABLE_EGLIMAGE=1' \ 170 '-DENABLE_PRINTING=1' \ 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 := \ 186 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 187 $(LOCAL_PATH) \ 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-error=c++0x-compat \ 202 -Wno-non-virtual-dtor \ 203 -Wno-sign-promo 204 205 206 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 207 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 208 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 209 ### Rules for final target. 210 211 LOCAL_LDFLAGS_Debug := \ 212 -Wl,-z,now \ 213 -Wl,-z,relro \ 214 -Wl,-z,noexecstack \ 215 -fPIC \ 216 -m32 \ 217 -fuse-ld=gold \ 218 -nostdlib \ 219 -Wl,--no-undefined \ 220 -Wl,--exclude-libs=ALL \ 221 -Wl,--fatal-warnings \ 222 -Wl,--gc-sections \ 223 -Wl,--warn-shared-textrel \ 224 -Wl,-O1 \ 225 -Wl,--as-needed 226 227 228 LOCAL_LDFLAGS_Release := \ 229 -Wl,-z,now \ 230 -Wl,-z,relro \ 231 -Wl,-z,noexecstack \ 232 -fPIC \ 233 -m32 \ 234 -fuse-ld=gold \ 235 -nostdlib \ 236 -Wl,--no-undefined \ 237 -Wl,--exclude-libs=ALL \ 238 -Wl,-O1 \ 239 -Wl,--as-needed \ 240 -Wl,--gc-sections \ 241 -Wl,--fatal-warnings \ 242 -Wl,--warn-shared-textrel 243 244 245 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 246 247 LOCAL_STATIC_LIBRARIES := 248 249 # Enable grouping to fix circular references 250 LOCAL_GROUP_STATIC_LIBRARIES := true 251 252 LOCAL_SHARED_LIBRARIES := \ 253 libstlport \ 254 libdl 255 256 # Add target alias to "gyp_all_modules" target. 257 .PHONY: gyp_all_modules 258 gyp_all_modules: gpu_gpu_ipc_gyp 259 260 # Alias gyp target name. 261 .PHONY: gpu_ipc 262 gpu_ipc: gpu_gpu_ipc_gyp 263 264 include $(BUILD_STATIC_LIBRARY) 265