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 -fstack-protector \ 37 --param=ssp-buffer-size=4 \ 38 \ 39 -fno-exceptions \ 40 -fno-strict-aliasing \ 41 -Wall \ 42 -Wno-unused-parameter \ 43 -Wno-missing-field-initializers \ 44 -fvisibility=hidden \ 45 -pipe \ 46 -fPIC \ 47 -EL \ 48 -mhard-float \ 49 -ffunction-sections \ 50 -funwind-tables \ 51 -g \ 52 -fstack-protector \ 53 -fno-short-enums \ 54 -finline-limit=64 \ 55 -Wa,--noexecstack \ 56 -U_FORTIFY_SOURCE \ 57 -Wno-extra \ 58 -Wno-ignored-qualifiers \ 59 -Wno-type-limits \ 60 -Os \ 61 -g \ 62 -fomit-frame-pointer \ 63 -fdata-sections \ 64 -ffunction-sections 65 66 MY_DEFS_Debug := \ 67 '-DV8_DEPRECATION_WARNINGS' \ 68 '-D_FILE_OFFSET_BITS=64' \ 69 '-DNO_TCMALLOC' \ 70 '-DDISABLE_NACL' \ 71 '-DCHROMIUM_BUILD' \ 72 '-DUSE_LIBJPEG_TURBO=1' \ 73 '-DUSE_PROPRIETARY_CODECS' \ 74 '-DENABLE_CONFIGURATION_POLICY' \ 75 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 76 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 77 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 78 '-DUSE_OPENSSL=1' \ 79 '-DENABLE_EGLIMAGE=1' \ 80 '-DCLD_VERSION=1' \ 81 '-DENABLE_PRINTING=1' \ 82 '-DENABLE_MANAGED_USERS=1' \ 83 '-D__STDC_CONSTANT_MACROS' \ 84 '-D__STDC_FORMAT_MACROS' \ 85 '-DANDROID' \ 86 '-D__GNU_SOURCE=1' \ 87 '-DUSE_STLPORT=1' \ 88 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 89 '-DCHROME_BUILD_ID=""' \ 90 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 91 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 92 '-D_DEBUG' 93 94 95 # Include paths placed before CFLAGS/CPPFLAGS 96 LOCAL_C_INCLUDES_Debug := \ 97 $(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \ 98 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 99 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 100 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 101 $(LOCAL_PATH) \ 102 $(LOCAL_PATH)/third_party/khronos \ 103 $(LOCAL_PATH)/gpu \ 104 $(LOCAL_PATH)/skia/config \ 105 $(PWD)/frameworks/wilhelm/include \ 106 $(PWD)/bionic \ 107 $(PWD)/external/stlport/stlport 108 109 110 # Flags passed to only C++ (and not C) files. 111 LOCAL_CPPFLAGS_Debug := \ 112 -fno-rtti \ 113 -fno-threadsafe-statics \ 114 -fvisibility-inlines-hidden \ 115 -Wsign-compare \ 116 -Wno-uninitialized \ 117 -Wno-error=c++0x-compat \ 118 -Wno-non-virtual-dtor \ 119 -Wno-sign-promo 120 121 122 # Flags passed to both C and C++ files. 123 MY_CFLAGS_Release := \ 124 -fstack-protector \ 125 --param=ssp-buffer-size=4 \ 126 \ 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 -EL \ 136 -mhard-float \ 137 -ffunction-sections \ 138 -funwind-tables \ 139 -g \ 140 -fstack-protector \ 141 -fno-short-enums \ 142 -finline-limit=64 \ 143 -Wa,--noexecstack \ 144 -U_FORTIFY_SOURCE \ 145 -Wno-extra \ 146 -Wno-ignored-qualifiers \ 147 -Wno-type-limits \ 148 -Os \ 149 -fno-ident \ 150 -fdata-sections \ 151 -ffunction-sections \ 152 -fomit-frame-pointer 153 154 MY_DEFS_Release := \ 155 '-DV8_DEPRECATION_WARNINGS' \ 156 '-D_FILE_OFFSET_BITS=64' \ 157 '-DNO_TCMALLOC' \ 158 '-DDISABLE_NACL' \ 159 '-DCHROMIUM_BUILD' \ 160 '-DUSE_LIBJPEG_TURBO=1' \ 161 '-DUSE_PROPRIETARY_CODECS' \ 162 '-DENABLE_CONFIGURATION_POLICY' \ 163 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 164 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 165 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 166 '-DUSE_OPENSSL=1' \ 167 '-DENABLE_EGLIMAGE=1' \ 168 '-DCLD_VERSION=1' \ 169 '-DENABLE_PRINTING=1' \ 170 '-DENABLE_MANAGED_USERS=1' \ 171 '-D__STDC_CONSTANT_MACROS' \ 172 '-D__STDC_FORMAT_MACROS' \ 173 '-DANDROID' \ 174 '-D__GNU_SOURCE=1' \ 175 '-DUSE_STLPORT=1' \ 176 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 177 '-DCHROME_BUILD_ID=""' \ 178 '-DNDEBUG' \ 179 '-DNVALGRIND' \ 180 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 181 '-D_FORTIFY_SOURCE=2' 182 183 184 # Include paths placed before CFLAGS/CPPFLAGS 185 LOCAL_C_INCLUDES_Release := \ 186 $(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \ 187 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 188 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 189 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 190 $(LOCAL_PATH) \ 191 $(LOCAL_PATH)/third_party/khronos \ 192 $(LOCAL_PATH)/gpu \ 193 $(LOCAL_PATH)/skia/config \ 194 $(PWD)/frameworks/wilhelm/include \ 195 $(PWD)/bionic \ 196 $(PWD)/external/stlport/stlport 197 198 199 # Flags passed to only C++ (and not C) files. 200 LOCAL_CPPFLAGS_Release := \ 201 -fno-rtti \ 202 -fno-threadsafe-statics \ 203 -fvisibility-inlines-hidden \ 204 -Wsign-compare \ 205 -Wno-uninitialized \ 206 -Wno-error=c++0x-compat \ 207 -Wno-non-virtual-dtor \ 208 -Wno-sign-promo 209 210 211 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 212 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 213 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 214 ### Rules for final target. 215 # Add target alias to "gyp_all_modules" target. 216 .PHONY: gyp_all_modules 217 gyp_all_modules: gpu_gpu_gyp 218 219 # Alias gyp target name. 220 .PHONY: gpu 221 gpu: gpu_gpu_gyp 222 223 LOCAL_MODULE_PATH := $(PRODUCT_OUT)/gyp_stamp 224 LOCAL_UNINSTALLABLE_MODULE := true 225 226 include $(BUILD_SYSTEM)/base_rules.mk 227 228 $(LOCAL_BUILT_MODULE): $(LOCAL_ADDITIONAL_DEPENDENCIES) 229 $(hide) echo "Gyp timestamp: $@" 230 $(hide) mkdir -p $(dir $@) 231 $(hide) touch $@ 232