1 # This file is generated by gyp; do not edit. 2 3 include $(CLEAR_VARS) 4 5 LOCAL_MODULE_CLASS := STATIC_LIBRARIES 6 LOCAL_MODULE := ui_native_theme_native_theme_gyp 7 LOCAL_MODULE_SUFFIX := .a 8 LOCAL_MODULE_TAGS := optional 9 gyp_intermediate_dir := $(call local-intermediates-dir) 10 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared) 11 12 # Make sure our deps are built first. 13 GYP_TARGET_DEPENDENCIES := \ 14 $(call intermediates-dir-for,GYP,skia_skia_gyp)/skia.stamp \ 15 $(call intermediates-dir-for,STATIC_LIBRARIES,ui_ui_gyp)/ui_ui_gyp.a \ 16 $(call intermediates-dir-for,GYP,ui_ui_resources_gyp)/ui_resources.stamp 17 18 GYP_GENERATED_OUTPUTS := 19 20 # Make sure our deps and generated files are built first. 21 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 22 23 LOCAL_CPP_EXTENSION := .cc 24 LOCAL_GENERATED_SOURCES := 25 26 GYP_COPIED_SOURCE_ORIGIN_DIRS := 27 28 LOCAL_SRC_FILES := \ 29 ui/native_theme/common_theme.cc \ 30 ui/native_theme/fallback_theme.cc \ 31 ui/native_theme/native_theme.cc \ 32 ui/native_theme/native_theme_android.cc \ 33 ui/native_theme/native_theme_base.cc 34 35 36 # Flags passed to both C and C++ files. 37 MY_CFLAGS_Debug := \ 38 -fstack-protector \ 39 --param=ssp-buffer-size=4 \ 40 -Werror \ 41 -fno-exceptions \ 42 -fno-strict-aliasing \ 43 -Wall \ 44 -Wno-unused-parameter \ 45 -Wno-missing-field-initializers \ 46 -fvisibility=hidden \ 47 -pipe \ 48 -fPIC \ 49 -fno-tree-sra \ 50 -fuse-ld=gold \ 51 -Wno-psabi \ 52 -ffunction-sections \ 53 -funwind-tables \ 54 -g \ 55 -fstack-protector \ 56 -fno-short-enums \ 57 -finline-limit=64 \ 58 -Wa,--noexecstack \ 59 -U_FORTIFY_SOURCE \ 60 -Wno-extra \ 61 -Wno-ignored-qualifiers \ 62 -Wno-type-limits \ 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 '-DNATIVE_THEME_IMPLEMENTATION' \ 87 '-DPOSIX_AVOID_MMAP' \ 88 '-DU_USING_ICU_NAMESPACE=0' \ 89 '-D__STDC_CONSTANT_MACROS' \ 90 '-D__STDC_FORMAT_MACROS' \ 91 '-DANDROID' \ 92 '-D__GNU_SOURCE=1' \ 93 '-DUSE_STLPORT=1' \ 94 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 95 '-DCHROME_BUILD_ID=""' \ 96 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 97 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 98 '-D_DEBUG' 99 100 101 # Include paths placed before CFLAGS/CPPFLAGS 102 LOCAL_C_INCLUDES_Debug := \ 103 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 104 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 105 $(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \ 106 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 107 $(LOCAL_PATH) \ 108 $(LOCAL_PATH)/third_party/skia/src/core \ 109 $(LOCAL_PATH)/skia/ext \ 110 $(PWD)/external/icu4c/common \ 111 $(PWD)/external/icu4c/i18n \ 112 $(gyp_shared_intermediate_dir)/ui/ui_resources \ 113 $(PWD)/frameworks/wilhelm/include \ 114 $(PWD)/bionic \ 115 $(PWD)/external/stlport/stlport 116 117 118 # Flags passed to only C++ (and not C) files. 119 LOCAL_CPPFLAGS_Debug := \ 120 -fno-rtti \ 121 -fno-threadsafe-statics \ 122 -fvisibility-inlines-hidden \ 123 -Wsign-compare \ 124 -Wno-abi \ 125 -Wno-error=c++0x-compat \ 126 -Wno-non-virtual-dtor \ 127 -Wno-sign-promo 128 129 130 # Flags passed to both C and C++ files. 131 MY_CFLAGS_Release := \ 132 -fstack-protector \ 133 --param=ssp-buffer-size=4 \ 134 -Werror \ 135 -fno-exceptions \ 136 -fno-strict-aliasing \ 137 -Wall \ 138 -Wno-unused-parameter \ 139 -Wno-missing-field-initializers \ 140 -fvisibility=hidden \ 141 -pipe \ 142 -fPIC \ 143 -fno-tree-sra \ 144 -fuse-ld=gold \ 145 -Wno-psabi \ 146 -ffunction-sections \ 147 -funwind-tables \ 148 -g \ 149 -fstack-protector \ 150 -fno-short-enums \ 151 -finline-limit=64 \ 152 -Wa,--noexecstack \ 153 -U_FORTIFY_SOURCE \ 154 -Wno-extra \ 155 -Wno-ignored-qualifiers \ 156 -Wno-type-limits \ 157 -Os \ 158 -fno-ident \ 159 -fdata-sections \ 160 -ffunction-sections \ 161 -fomit-frame-pointer 162 163 MY_DEFS_Release := \ 164 '-DANGLE_DX11' \ 165 '-D_FILE_OFFSET_BITS=64' \ 166 '-DNO_TCMALLOC' \ 167 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 168 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 169 '-DDISABLE_NACL' \ 170 '-DCHROMIUM_BUILD' \ 171 '-DUSE_LIBJPEG_TURBO=1' \ 172 '-DUSE_PROPRIETARY_CODECS' \ 173 '-DENABLE_CONFIGURATION_POLICY' \ 174 '-DLOGGING_IS_OFFICIAL_BUILD=1' \ 175 '-DTRACING_IS_OFFICIAL_BUILD=1' \ 176 '-DENABLE_GPU=1' \ 177 '-DUSE_OPENSSL=1' \ 178 '-DENABLE_EGLIMAGE=1' \ 179 '-DENABLE_PRINTING=1' \ 180 '-DNATIVE_THEME_IMPLEMENTATION' \ 181 '-DPOSIX_AVOID_MMAP' \ 182 '-DU_USING_ICU_NAMESPACE=0' \ 183 '-D__STDC_CONSTANT_MACROS' \ 184 '-D__STDC_FORMAT_MACROS' \ 185 '-DANDROID' \ 186 '-D__GNU_SOURCE=1' \ 187 '-DUSE_STLPORT=1' \ 188 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 189 '-DCHROME_BUILD_ID=""' \ 190 '-DNDEBUG' \ 191 '-DNVALGRIND' \ 192 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 193 '-D_FORTIFY_SOURCE=2' 194 195 196 # Include paths placed before CFLAGS/CPPFLAGS 197 LOCAL_C_INCLUDES_Release := \ 198 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 199 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 200 $(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \ 201 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 202 $(LOCAL_PATH) \ 203 $(LOCAL_PATH)/third_party/skia/src/core \ 204 $(LOCAL_PATH)/skia/ext \ 205 $(PWD)/external/icu4c/common \ 206 $(PWD)/external/icu4c/i18n \ 207 $(gyp_shared_intermediate_dir)/ui/ui_resources \ 208 $(PWD)/frameworks/wilhelm/include \ 209 $(PWD)/bionic \ 210 $(PWD)/external/stlport/stlport 211 212 213 # Flags passed to only C++ (and not C) files. 214 LOCAL_CPPFLAGS_Release := \ 215 -fno-rtti \ 216 -fno-threadsafe-statics \ 217 -fvisibility-inlines-hidden \ 218 -Wsign-compare \ 219 -Wno-abi \ 220 -Wno-error=c++0x-compat \ 221 -Wno-non-virtual-dtor \ 222 -Wno-sign-promo 223 224 225 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 226 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 227 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 228 ### Rules for final target. 229 230 LOCAL_LDFLAGS_Debug := \ 231 -Wl,-z,now \ 232 -Wl,-z,relro \ 233 -Wl,-z,noexecstack \ 234 -fPIC \ 235 -Wl,-z,relro \ 236 -Wl,-z,now \ 237 -fuse-ld=gold \ 238 -nostdlib \ 239 -Wl,--no-undefined \ 240 -Wl,--exclude-libs=ALL \ 241 -Wl,--icf=safe \ 242 -Wl,--fatal-warnings \ 243 -Wl,--gc-sections \ 244 -Wl,--warn-shared-textrel \ 245 -Wl,-O1 \ 246 -Wl,--as-needed 247 248 249 LOCAL_LDFLAGS_Release := \ 250 -Wl,-z,now \ 251 -Wl,-z,relro \ 252 -Wl,-z,noexecstack \ 253 -fPIC \ 254 -Wl,-z,relro \ 255 -Wl,-z,now \ 256 -fuse-ld=gold \ 257 -nostdlib \ 258 -Wl,--no-undefined \ 259 -Wl,--exclude-libs=ALL \ 260 -Wl,--icf=safe \ 261 -Wl,-O1 \ 262 -Wl,--as-needed \ 263 -Wl,--gc-sections \ 264 -Wl,--fatal-warnings \ 265 -Wl,--warn-shared-textrel 266 267 268 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 269 270 LOCAL_STATIC_LIBRARIES := \ 271 ui_ui_gyp 272 273 # Enable grouping to fix circular references 274 LOCAL_GROUP_STATIC_LIBRARIES := true 275 276 LOCAL_SHARED_LIBRARIES := \ 277 libskia \ 278 libstlport \ 279 libdl 280 281 # Add target alias to "gyp_all_modules" target. 282 .PHONY: gyp_all_modules 283 gyp_all_modules: ui_native_theme_native_theme_gyp 284 285 # Alias gyp target name. 286 .PHONY: native_theme 287 native_theme: ui_native_theme_native_theme_gyp 288 289 include $(BUILD_STATIC_LIBRARY) 290