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 -Werror \ 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 -fno-tree-sra \ 48 -fuse-ld=gold \ 49 -Wno-psabi \ 50 -ffunction-sections \ 51 -funwind-tables \ 52 -g \ 53 -fstack-protector \ 54 -fno-short-enums \ 55 -finline-limit=64 \ 56 -Wa,--noexecstack \ 57 -U_FORTIFY_SOURCE \ 58 -Wno-extra \ 59 -Wno-ignored-qualifiers \ 60 -Wno-type-limits \ 61 -Os \ 62 -g \ 63 -fomit-frame-pointer \ 64 -fdata-sections \ 65 -ffunction-sections 66 67 MY_DEFS_Debug := \ 68 '-DANGLE_DX11' \ 69 '-D_FILE_OFFSET_BITS=64' \ 70 '-DNO_TCMALLOC' \ 71 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 72 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 73 '-DDISABLE_NACL' \ 74 '-DCHROMIUM_BUILD' \ 75 '-DUSE_LIBJPEG_TURBO=1' \ 76 '-DUSE_PROPRIETARY_CODECS' \ 77 '-DENABLE_CONFIGURATION_POLICY' \ 78 '-DLOGGING_IS_OFFICIAL_BUILD=1' \ 79 '-DTRACING_IS_OFFICIAL_BUILD=1' \ 80 '-DENABLE_GPU=1' \ 81 '-DUSE_OPENSSL=1' \ 82 '-DENABLE_EGLIMAGE=1' \ 83 '-DENABLE_PRINTING=1' \ 84 '-D__STDC_CONSTANT_MACROS' \ 85 '-D__STDC_FORMAT_MACROS' \ 86 '-DANDROID' \ 87 '-D__GNU_SOURCE=1' \ 88 '-DUSE_STLPORT=1' \ 89 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 90 '-DCHROME_BUILD_ID=""' \ 91 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 92 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 93 '-D_DEBUG' 94 95 96 # Include paths placed before CFLAGS/CPPFLAGS 97 LOCAL_C_INCLUDES_Debug := \ 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/skia_library/target \ 101 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 102 $(LOCAL_PATH) \ 103 $(LOCAL_PATH)/third_party/khronos \ 104 $(LOCAL_PATH)/gpu \ 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-abi \ 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 -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 -fno-tree-sra \ 136 -fuse-ld=gold \ 137 -Wno-psabi \ 138 -ffunction-sections \ 139 -funwind-tables \ 140 -g \ 141 -fstack-protector \ 142 -fno-short-enums \ 143 -finline-limit=64 \ 144 -Wa,--noexecstack \ 145 -U_FORTIFY_SOURCE \ 146 -Wno-extra \ 147 -Wno-ignored-qualifiers \ 148 -Wno-type-limits \ 149 -Os \ 150 -fno-ident \ 151 -fdata-sections \ 152 -ffunction-sections \ 153 -fomit-frame-pointer 154 155 MY_DEFS_Release := \ 156 '-DANGLE_DX11' \ 157 '-D_FILE_OFFSET_BITS=64' \ 158 '-DNO_TCMALLOC' \ 159 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 160 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 161 '-DDISABLE_NACL' \ 162 '-DCHROMIUM_BUILD' \ 163 '-DUSE_LIBJPEG_TURBO=1' \ 164 '-DUSE_PROPRIETARY_CODECS' \ 165 '-DENABLE_CONFIGURATION_POLICY' \ 166 '-DLOGGING_IS_OFFICIAL_BUILD=1' \ 167 '-DTRACING_IS_OFFICIAL_BUILD=1' \ 168 '-DENABLE_GPU=1' \ 169 '-DUSE_OPENSSL=1' \ 170 '-DENABLE_EGLIMAGE=1' \ 171 '-DENABLE_PRINTING=1' \ 172 '-D__STDC_CONSTANT_MACROS' \ 173 '-D__STDC_FORMAT_MACROS' \ 174 '-DANDROID' \ 175 '-D__GNU_SOURCE=1' \ 176 '-DUSE_STLPORT=1' \ 177 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 178 '-DCHROME_BUILD_ID=""' \ 179 '-DNDEBUG' \ 180 '-DNVALGRIND' \ 181 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 182 '-D_FORTIFY_SOURCE=2' 183 184 185 # Include paths placed before CFLAGS/CPPFLAGS 186 LOCAL_C_INCLUDES_Release := \ 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/skia_library/target \ 190 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 191 $(LOCAL_PATH) \ 192 $(LOCAL_PATH)/third_party/khronos \ 193 $(LOCAL_PATH)/gpu \ 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-abi \ 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