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 '-DV8_DEPRECATION_WARNINGS' \ 71 '-D_FILE_OFFSET_BITS=64' \ 72 '-DNO_TCMALLOC' \ 73 '-DDISABLE_NACL' \ 74 '-DCHROMIUM_BUILD' \ 75 '-DUSE_LIBJPEG_TURBO=1' \ 76 '-DUSE_PROPRIETARY_CODECS' \ 77 '-DENABLE_CONFIGURATION_POLICY' \ 78 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 79 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 80 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 81 '-DUSE_OPENSSL=1' \ 82 '-DENABLE_EGLIMAGE=1' \ 83 '-DCLD_VERSION=1' \ 84 '-DENABLE_PRINTING=1' \ 85 '-DENABLE_MANAGED_USERS=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/skia_library/target \ 101 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 102 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 103 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 104 $(LOCAL_PATH) \ 105 $(LOCAL_PATH)/third_party/khronos \ 106 $(LOCAL_PATH)/gpu \ 107 $(LOCAL_PATH)/skia/config \ 108 $(PWD)/frameworks/wilhelm/include \ 109 $(PWD)/bionic \ 110 $(PWD)/external/stlport/stlport 111 112 113 # Flags passed to only C++ (and not C) files. 114 LOCAL_CPPFLAGS_Debug := \ 115 -fno-rtti \ 116 -fno-threadsafe-statics \ 117 -fvisibility-inlines-hidden \ 118 -Wsign-compare \ 119 -Wno-error=c++0x-compat \ 120 -Wno-non-virtual-dtor \ 121 -Wno-sign-promo 122 123 124 # Flags passed to both C and C++ files. 125 MY_CFLAGS_Release := \ 126 --param=ssp-buffer-size=4 \ 127 -Werror \ 128 -fno-exceptions \ 129 -fno-strict-aliasing \ 130 -Wall \ 131 -Wno-unused-parameter \ 132 -Wno-missing-field-initializers \ 133 -fvisibility=hidden \ 134 -pipe \ 135 -fPIC \ 136 -m32 \ 137 -mmmx \ 138 -march=pentium4 \ 139 -msse2 \ 140 -mfpmath=sse \ 141 -fuse-ld=gold \ 142 -ffunction-sections \ 143 -funwind-tables \ 144 -g \ 145 -fno-short-enums \ 146 -finline-limit=64 \ 147 -Wa,--noexecstack \ 148 -U_FORTIFY_SOURCE \ 149 -Wno-extra \ 150 -Wno-ignored-qualifiers \ 151 -Wno-type-limits \ 152 -fno-stack-protector \ 153 -Os \ 154 -fno-ident \ 155 -fdata-sections \ 156 -ffunction-sections \ 157 -fomit-frame-pointer \ 158 -fno-unwind-tables \ 159 -fno-asynchronous-unwind-tables 160 161 MY_DEFS_Release := \ 162 '-DV8_DEPRECATION_WARNINGS' \ 163 '-D_FILE_OFFSET_BITS=64' \ 164 '-DNO_TCMALLOC' \ 165 '-DDISABLE_NACL' \ 166 '-DCHROMIUM_BUILD' \ 167 '-DUSE_LIBJPEG_TURBO=1' \ 168 '-DUSE_PROPRIETARY_CODECS' \ 169 '-DENABLE_CONFIGURATION_POLICY' \ 170 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 171 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 172 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 173 '-DUSE_OPENSSL=1' \ 174 '-DENABLE_EGLIMAGE=1' \ 175 '-DCLD_VERSION=1' \ 176 '-DENABLE_PRINTING=1' \ 177 '-DENABLE_MANAGED_USERS=1' \ 178 '-D__STDC_CONSTANT_MACROS' \ 179 '-D__STDC_FORMAT_MACROS' \ 180 '-DANDROID' \ 181 '-D__GNU_SOURCE=1' \ 182 '-DUSE_STLPORT=1' \ 183 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 184 '-DCHROME_BUILD_ID=""' \ 185 '-DNDEBUG' \ 186 '-DNVALGRIND' \ 187 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 188 '-D_FORTIFY_SOURCE=2' 189 190 191 # Include paths placed before CFLAGS/CPPFLAGS 192 LOCAL_C_INCLUDES_Release := \ 193 $(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \ 194 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 195 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 196 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 197 $(LOCAL_PATH) \ 198 $(LOCAL_PATH)/third_party/khronos \ 199 $(LOCAL_PATH)/gpu \ 200 $(LOCAL_PATH)/skia/config \ 201 $(PWD)/frameworks/wilhelm/include \ 202 $(PWD)/bionic \ 203 $(PWD)/external/stlport/stlport 204 205 206 # Flags passed to only C++ (and not C) files. 207 LOCAL_CPPFLAGS_Release := \ 208 -fno-rtti \ 209 -fno-threadsafe-statics \ 210 -fvisibility-inlines-hidden \ 211 -Wsign-compare \ 212 -Wno-error=c++0x-compat \ 213 -Wno-non-virtual-dtor \ 214 -Wno-sign-promo 215 216 217 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 218 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 219 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 220 ### Rules for final target. 221 # Add target alias to "gyp_all_modules" target. 222 .PHONY: gyp_all_modules 223 gyp_all_modules: gpu_gpu_gyp 224 225 # Alias gyp target name. 226 .PHONY: gpu 227 gpu: gpu_gpu_gyp 228 229 LOCAL_MODULE_PATH := $(PRODUCT_OUT)/gyp_stamp 230 LOCAL_UNINSTALLABLE_MODULE := true 231 232 include $(BUILD_SYSTEM)/base_rules.mk 233 234 $(LOCAL_BUILT_MODULE): $(LOCAL_ADDITIONAL_DEPENDENCIES) 235 $(hide) echo "Gyp timestamp: $@" 236 $(hide) mkdir -p $(dir $@) 237 $(hide) touch $@ 238