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