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