1 # This file is generated by gyp; do not edit. 2 3 include $(CLEAR_VARS) 4 5 LOCAL_MODULE_CLASS := GYP 6 LOCAL_MODULE := gpu_gpu_gyp 7 LOCAL_MODULE_STEM := gpu 8 LOCAL_MODULE_SUFFIX := .stamp 9 LOCAL_MODULE_TAGS := optional 10 gyp_intermediate_dir := $(call local-intermediates-dir) 11 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared) 12 13 # Make sure our deps are built first. 14 GYP_TARGET_DEPENDENCIES := \ 15 $(call intermediates-dir-for,STATIC_LIBRARIES,gpu_command_buffer_client_gyp)/gpu_command_buffer_client_gyp.a \ 16 $(call intermediates-dir-for,STATIC_LIBRARIES,gpu_command_buffer_common_gyp)/gpu_command_buffer_common_gyp.a \ 17 $(call intermediates-dir-for,STATIC_LIBRARIES,gpu_command_buffer_service_gyp)/gpu_command_buffer_service_gyp.a \ 18 $(call intermediates-dir-for,STATIC_LIBRARIES,gpu_gles2_cmd_helper_gyp)/gpu_gles2_cmd_helper_gyp.a \ 19 $(call intermediates-dir-for,STATIC_LIBRARIES,gpu_gpu_config_gyp)/gpu_gpu_config_gyp.a \ 20 $(call intermediates-dir-for,STATIC_LIBRARIES,gpu_gpu_ipc_gyp)/gpu_gpu_ipc_gyp.a 21 22 GYP_GENERATED_OUTPUTS := 23 24 # Make sure our deps and generated files are built first. 25 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 26 27 LOCAL_GENERATED_SOURCES := 28 29 GYP_COPIED_SOURCE_ORIGIN_DIRS := 30 31 LOCAL_SRC_FILES := 32 33 34 # Flags passed to both C and C++ files. 35 MY_CFLAGS_Debug := \ 36 --param=ssp-buffer-size=4 \ 37 -Werror \ 38 -fno-exceptions \ 39 -fno-strict-aliasing \ 40 -Wall \ 41 -Wno-unused-parameter \ 42 -Wno-missing-field-initializers \ 43 -fvisibility=hidden \ 44 -pipe \ 45 -fPIC \ 46 -m32 \ 47 -mmmx \ 48 -march=pentium4 \ 49 -msse2 \ 50 -mfpmath=sse \ 51 -fuse-ld=gold \ 52 -ffunction-sections \ 53 -funwind-tables \ 54 -g \ 55 -fno-short-enums \ 56 -finline-limit=64 \ 57 -Wa,--noexecstack \ 58 -U_FORTIFY_SOURCE \ 59 -Wno-extra \ 60 -Wno-ignored-qualifiers \ 61 -Wno-type-limits \ 62 -fno-stack-protector \ 63 -Os \ 64 -g \ 65 -fomit-frame-pointer \ 66 -fdata-sections \ 67 -ffunction-sections 68 69 MY_DEFS_Debug := \ 70 '-DANGLE_DX11' \ 71 '-D_FILE_OFFSET_BITS=64' \ 72 '-DNO_TCMALLOC' \ 73 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 74 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 75 '-DDISABLE_NACL' \ 76 '-DCHROMIUM_BUILD' \ 77 '-DUSE_LIBJPEG_TURBO=1' \ 78 '-DUSE_PROPRIETARY_CODECS' \ 79 '-DENABLE_CONFIGURATION_POLICY' \ 80 '-DLOGGING_IS_OFFICIAL_BUILD=1' \ 81 '-DTRACING_IS_OFFICIAL_BUILD=1' \ 82 '-DENABLE_GPU=1' \ 83 '-DUSE_OPENSSL=1' \ 84 '-DENABLE_EGLIMAGE=1' \ 85 '-DENABLE_PRINTING=1' \ 86 '-D__STDC_CONSTANT_MACROS' \ 87 '-D__STDC_FORMAT_MACROS' \ 88 '-DANDROID' \ 89 '-D__GNU_SOURCE=1' \ 90 '-DUSE_STLPORT=1' \ 91 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 92 '-DCHROME_BUILD_ID=""' \ 93 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 94 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 95 '-D_DEBUG' 96 97 98 # Include paths placed before CFLAGS/CPPFLAGS 99 LOCAL_C_INCLUDES_Debug := \ 100 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 101 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 102 $(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \ 103 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 104 $(LOCAL_PATH) \ 105 $(LOCAL_PATH)/third_party/khronos \ 106 $(LOCAL_PATH)/gpu \ 107 $(PWD)/frameworks/wilhelm/include \ 108 $(PWD)/bionic \ 109 $(PWD)/external/stlport/stlport 110 111 112 # Flags passed to only C++ (and not C) files. 113 LOCAL_CPPFLAGS_Debug := \ 114 -fno-rtti \ 115 -fno-threadsafe-statics \ 116 -fvisibility-inlines-hidden \ 117 -Wsign-compare \ 118 -Wno-error=c++0x-compat \ 119 -Wno-non-virtual-dtor \ 120 -Wno-sign-promo 121 122 123 # Flags passed to both C and C++ files. 124 MY_CFLAGS_Release := \ 125 --param=ssp-buffer-size=4 \ 126 -Werror \ 127 -fno-exceptions \ 128 -fno-strict-aliasing \ 129 -Wall \ 130 -Wno-unused-parameter \ 131 -Wno-missing-field-initializers \ 132 -fvisibility=hidden \ 133 -pipe \ 134 -fPIC \ 135 -m32 \ 136 -mmmx \ 137 -march=pentium4 \ 138 -msse2 \ 139 -mfpmath=sse \ 140 -fuse-ld=gold \ 141 -ffunction-sections \ 142 -funwind-tables \ 143 -g \ 144 -fno-short-enums \ 145 -finline-limit=64 \ 146 -Wa,--noexecstack \ 147 -U_FORTIFY_SOURCE \ 148 -Wno-extra \ 149 -Wno-ignored-qualifiers \ 150 -Wno-type-limits \ 151 -fno-stack-protector \ 152 -Os \ 153 -fno-ident \ 154 -fdata-sections \ 155 -ffunction-sections \ 156 -fomit-frame-pointer \ 157 -fno-unwind-tables \ 158 -fno-asynchronous-unwind-tables 159 160 MY_DEFS_Release := \ 161 '-DANGLE_DX11' \ 162 '-D_FILE_OFFSET_BITS=64' \ 163 '-DNO_TCMALLOC' \ 164 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 165 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 166 '-DDISABLE_NACL' \ 167 '-DCHROMIUM_BUILD' \ 168 '-DUSE_LIBJPEG_TURBO=1' \ 169 '-DUSE_PROPRIETARY_CODECS' \ 170 '-DENABLE_CONFIGURATION_POLICY' \ 171 '-DLOGGING_IS_OFFICIAL_BUILD=1' \ 172 '-DTRACING_IS_OFFICIAL_BUILD=1' \ 173 '-DENABLE_GPU=1' \ 174 '-DUSE_OPENSSL=1' \ 175 '-DENABLE_EGLIMAGE=1' \ 176 '-DENABLE_PRINTING=1' \ 177 '-D__STDC_CONSTANT_MACROS' \ 178 '-D__STDC_FORMAT_MACROS' \ 179 '-DANDROID' \ 180 '-D__GNU_SOURCE=1' \ 181 '-DUSE_STLPORT=1' \ 182 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 183 '-DCHROME_BUILD_ID=""' \ 184 '-DNDEBUG' \ 185 '-DNVALGRIND' \ 186 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 187 '-D_FORTIFY_SOURCE=2' 188 189 190 # Include paths placed before CFLAGS/CPPFLAGS 191 LOCAL_C_INCLUDES_Release := \ 192 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 193 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 194 $(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \ 195 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 196 $(LOCAL_PATH) \ 197 $(LOCAL_PATH)/third_party/khronos \ 198 $(LOCAL_PATH)/gpu \ 199 $(PWD)/frameworks/wilhelm/include \ 200 $(PWD)/bionic \ 201 $(PWD)/external/stlport/stlport 202 203 204 # Flags passed to only C++ (and not C) files. 205 LOCAL_CPPFLAGS_Release := \ 206 -fno-rtti \ 207 -fno-threadsafe-statics \ 208 -fvisibility-inlines-hidden \ 209 -Wsign-compare \ 210 -Wno-error=c++0x-compat \ 211 -Wno-non-virtual-dtor \ 212 -Wno-sign-promo 213 214 215 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 216 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 217 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 218 ### Rules for final target. 219 # Add target alias to "gyp_all_modules" target. 220 .PHONY: gyp_all_modules 221 gyp_all_modules: gpu_gpu_gyp 222 223 # Alias gyp target name. 224 .PHONY: gpu 225 gpu: gpu_gpu_gyp 226 227 LOCAL_MODULE_PATH := $(PRODUCT_OUT)/gyp_stamp 228 LOCAL_UNINSTALLABLE_MODULE := true 229 230 include $(BUILD_SYSTEM)/base_rules.mk 231 232 $(LOCAL_BUILT_MODULE): $(LOCAL_ADDITIONAL_DEPENDENCIES) 233 $(hide) echo "Gyp timestamp: $@" 234 $(hide) mkdir -p $(dir $@) 235 $(hide) touch $@ 236