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