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