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_gles2_c_lib_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 15 GYP_GENERATED_OUTPUTS := 16 17 # Make sure our deps and generated files are built first. 18 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 19 20 LOCAL_CPP_EXTENSION := .cc 21 LOCAL_GENERATED_SOURCES := 22 23 GYP_COPIED_SOURCE_ORIGIN_DIRS := 24 25 LOCAL_SRC_FILES := \ 26 gpu/command_buffer/client/gles2_c_lib.cc \ 27 gpu/command_buffer/client/gles2_lib.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 '-DANGLE_DX11' \ 67 '-D_FILE_OFFSET_BITS=64' \ 68 '-DNO_TCMALLOC' \ 69 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 70 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 71 '-DDISABLE_NACL' \ 72 '-DCHROMIUM_BUILD' \ 73 '-DUSE_LIBJPEG_TURBO=1' \ 74 '-DUSE_PROPRIETARY_CODECS' \ 75 '-DENABLE_CONFIGURATION_POLICY' \ 76 '-DLOGGING_IS_OFFICIAL_BUILD=1' \ 77 '-DTRACING_IS_OFFICIAL_BUILD=1' \ 78 '-DENABLE_GPU=1' \ 79 '-DUSE_OPENSSL=1' \ 80 '-DENABLE_EGLIMAGE=1' \ 81 '-DENABLE_PRINTING=1' \ 82 '-DGLES2_C_LIB_IMPLEMENTATION' \ 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/icuuc/target \ 98 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 99 $(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \ 100 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 101 $(LOCAL_PATH)/third_party/khronos \ 102 $(LOCAL_PATH)/gpu \ 103 $(LOCAL_PATH) \ 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 '-DANGLE_DX11' \ 159 '-D_FILE_OFFSET_BITS=64' \ 160 '-DNO_TCMALLOC' \ 161 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 162 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 163 '-DDISABLE_NACL' \ 164 '-DCHROMIUM_BUILD' \ 165 '-DUSE_LIBJPEG_TURBO=1' \ 166 '-DUSE_PROPRIETARY_CODECS' \ 167 '-DENABLE_CONFIGURATION_POLICY' \ 168 '-DLOGGING_IS_OFFICIAL_BUILD=1' \ 169 '-DTRACING_IS_OFFICIAL_BUILD=1' \ 170 '-DENABLE_GPU=1' \ 171 '-DUSE_OPENSSL=1' \ 172 '-DENABLE_EGLIMAGE=1' \ 173 '-DENABLE_PRINTING=1' \ 174 '-DGLES2_C_LIB_IMPLEMENTATION' \ 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 189 LOCAL_C_INCLUDES_Release := \ 190 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 191 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 192 $(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \ 193 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 194 $(LOCAL_PATH)/third_party/khronos \ 195 $(LOCAL_PATH)/gpu \ 196 $(LOCAL_PATH) \ 197 $(PWD)/frameworks/wilhelm/include \ 198 $(PWD)/bionic \ 199 $(PWD)/external/stlport/stlport 200 201 202 # Flags passed to only C++ (and not C) files. 203 LOCAL_CPPFLAGS_Release := \ 204 -fno-rtti \ 205 -fno-threadsafe-statics \ 206 -fvisibility-inlines-hidden \ 207 -Wsign-compare \ 208 -Wno-error=c++0x-compat \ 209 -Wno-non-virtual-dtor \ 210 -Wno-sign-promo 211 212 213 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 214 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 215 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 216 ### Rules for final target. 217 218 LOCAL_LDFLAGS_Debug := \ 219 -Wl,-z,now \ 220 -Wl,-z,relro \ 221 -Wl,-z,noexecstack \ 222 -fPIC \ 223 -m32 \ 224 -fuse-ld=gold \ 225 -nostdlib \ 226 -Wl,--no-undefined \ 227 -Wl,--exclude-libs=ALL \ 228 -Wl,--fatal-warnings \ 229 -Wl,--gc-sections \ 230 -Wl,--warn-shared-textrel \ 231 -Wl,-O1 \ 232 -Wl,--as-needed 233 234 235 LOCAL_LDFLAGS_Release := \ 236 -Wl,-z,now \ 237 -Wl,-z,relro \ 238 -Wl,-z,noexecstack \ 239 -fPIC \ 240 -m32 \ 241 -fuse-ld=gold \ 242 -nostdlib \ 243 -Wl,--no-undefined \ 244 -Wl,--exclude-libs=ALL \ 245 -Wl,-O1 \ 246 -Wl,--as-needed \ 247 -Wl,--gc-sections \ 248 -Wl,--fatal-warnings \ 249 -Wl,--warn-shared-textrel 250 251 252 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 253 254 LOCAL_STATIC_LIBRARIES := 255 256 # Enable grouping to fix circular references 257 LOCAL_GROUP_STATIC_LIBRARIES := true 258 259 LOCAL_SHARED_LIBRARIES := \ 260 libstlport \ 261 libdl 262 263 # Add target alias to "gyp_all_modules" target. 264 .PHONY: gyp_all_modules 265 gyp_all_modules: gpu_gles2_c_lib_gyp 266 267 # Alias gyp target name. 268 .PHONY: gles2_c_lib 269 gles2_c_lib: gpu_gles2_c_lib_gyp 270 271 include $(BUILD_STATIC_LIBRARY) 272