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