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