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