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_gles2_utils_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/gles2_cmd_utils.cc 28 29 30 # Flags passed to both C and C++ files. 31 MY_CFLAGS_Debug := \ 32 --param=ssp-buffer-size=4 \ 33 -Werror \ 34 -fno-exceptions \ 35 -fno-strict-aliasing \ 36 -Wall \ 37 -Wno-unused-parameter \ 38 -Wno-missing-field-initializers \ 39 -fvisibility=hidden \ 40 -pipe \ 41 -fPIC \ 42 -m32 \ 43 -mmmx \ 44 -march=pentium4 \ 45 -msse2 \ 46 -mfpmath=sse \ 47 -fuse-ld=gold \ 48 -ffunction-sections \ 49 -funwind-tables \ 50 -g \ 51 -fno-short-enums \ 52 -finline-limit=64 \ 53 -Wa,--noexecstack \ 54 -U_FORTIFY_SOURCE \ 55 -Wno-extra \ 56 -Wno-ignored-qualifiers \ 57 -Wno-type-limits \ 58 -fno-stack-protector \ 59 -Os \ 60 -g \ 61 -fomit-frame-pointer \ 62 -fdata-sections \ 63 -ffunction-sections 64 65 MY_DEFS_Debug := \ 66 '-DV8_DEPRECATION_WARNINGS' \ 67 '-D_FILE_OFFSET_BITS=64' \ 68 '-DNO_TCMALLOC' \ 69 '-DDISABLE_NACL' \ 70 '-DCHROMIUM_BUILD' \ 71 '-DUSE_LIBJPEG_TURBO=1' \ 72 '-DUSE_PROPRIETARY_CODECS' \ 73 '-DENABLE_CONFIGURATION_POLICY' \ 74 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 75 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 76 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 77 '-DUSE_OPENSSL=1' \ 78 '-DENABLE_EGLIMAGE=1' \ 79 '-DCLD_VERSION=1' \ 80 '-DENABLE_PRINTING=1' \ 81 '-DENABLE_MANAGED_USERS=1' \ 82 '-D__STDC_CONSTANT_MACROS' \ 83 '-D__STDC_FORMAT_MACROS' \ 84 '-DGLES2_UTILS_IMPLEMENTATION' \ 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)/third_party/khronos \ 99 $(LOCAL_PATH)/gpu \ 100 $(LOCAL_PATH) \ 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 '-DV8_DEPRECATION_WARNINGS' \ 156 '-D_FILE_OFFSET_BITS=64' \ 157 '-DNO_TCMALLOC' \ 158 '-DDISABLE_NACL' \ 159 '-DCHROMIUM_BUILD' \ 160 '-DUSE_LIBJPEG_TURBO=1' \ 161 '-DUSE_PROPRIETARY_CODECS' \ 162 '-DENABLE_CONFIGURATION_POLICY' \ 163 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 164 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 165 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 166 '-DUSE_OPENSSL=1' \ 167 '-DENABLE_EGLIMAGE=1' \ 168 '-DCLD_VERSION=1' \ 169 '-DENABLE_PRINTING=1' \ 170 '-DENABLE_MANAGED_USERS=1' \ 171 '-D__STDC_CONSTANT_MACROS' \ 172 '-D__STDC_FORMAT_MACROS' \ 173 '-DGLES2_UTILS_IMPLEMENTATION' \ 174 '-DANDROID' \ 175 '-D__GNU_SOURCE=1' \ 176 '-DUSE_STLPORT=1' \ 177 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 178 '-DCHROME_BUILD_ID=""' \ 179 '-DNDEBUG' \ 180 '-DNVALGRIND' \ 181 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 182 '-D_FORTIFY_SOURCE=2' 183 184 185 # Include paths placed before CFLAGS/CPPFLAGS 186 LOCAL_C_INCLUDES_Release := \ 187 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 188 $(LOCAL_PATH)/third_party/khronos \ 189 $(LOCAL_PATH)/gpu \ 190 $(LOCAL_PATH) \ 191 $(PWD)/frameworks/wilhelm/include \ 192 $(PWD)/bionic \ 193 $(PWD)/external/stlport/stlport 194 195 196 # Flags passed to only C++ (and not C) files. 197 LOCAL_CPPFLAGS_Release := \ 198 -fno-rtti \ 199 -fno-threadsafe-statics \ 200 -fvisibility-inlines-hidden \ 201 -Wsign-compare \ 202 -Wno-error=c++0x-compat \ 203 -Wno-non-virtual-dtor \ 204 -Wno-sign-promo 205 206 207 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 208 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 209 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 210 ### Rules for final target. 211 212 LOCAL_LDFLAGS_Debug := \ 213 -Wl,-z,now \ 214 -Wl,-z,relro \ 215 -Wl,-z,noexecstack \ 216 -fPIC \ 217 -m32 \ 218 -fuse-ld=gold \ 219 -nostdlib \ 220 -Wl,--no-undefined \ 221 -Wl,--exclude-libs=ALL \ 222 -Wl,--fatal-warnings \ 223 -Wl,--gc-sections \ 224 -Wl,--warn-shared-textrel \ 225 -Wl,-O1 \ 226 -Wl,--as-needed 227 228 229 LOCAL_LDFLAGS_Release := \ 230 -Wl,-z,now \ 231 -Wl,-z,relro \ 232 -Wl,-z,noexecstack \ 233 -fPIC \ 234 -m32 \ 235 -fuse-ld=gold \ 236 -nostdlib \ 237 -Wl,--no-undefined \ 238 -Wl,--exclude-libs=ALL \ 239 -Wl,-O1 \ 240 -Wl,--as-needed \ 241 -Wl,--gc-sections \ 242 -Wl,--fatal-warnings \ 243 -Wl,--warn-shared-textrel 244 245 246 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 247 248 LOCAL_STATIC_LIBRARIES := 249 250 # Enable grouping to fix circular references 251 LOCAL_GROUP_STATIC_LIBRARIES := true 252 253 LOCAL_SHARED_LIBRARIES := \ 254 libstlport \ 255 libdl 256 257 # Add target alias to "gyp_all_modules" target. 258 .PHONY: gyp_all_modules 259 gyp_all_modules: gpu_command_buffer_gles2_utils_gyp 260 261 # Alias gyp target name. 262 .PHONY: gles2_utils 263 gles2_utils: gpu_command_buffer_gles2_utils_gyp 264 265 include $(BUILD_STATIC_LIBRARY) 266