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