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,GYP,ui_resources_ui_resources_gyp)/ui_resources.stamp \ 16 $(call intermediates-dir-for,STATIC_LIBRARIES,ui_ui_gyp)/ui_ui_gyp.a 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 '-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 '-DNATIVE_THEME_IMPLEMENTATION' \ 87 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 88 '-DU_USING_ICU_NAMESPACE=0' \ 89 '-DPOSIX_AVOID_MMAP' \ 90 '-D__STDC_CONSTANT_MACROS' \ 91 '-D__STDC_FORMAT_MACROS' \ 92 '-DANDROID' \ 93 '-D__GNU_SOURCE=1' \ 94 '-DUSE_STLPORT=1' \ 95 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 96 '-DCHROME_BUILD_ID=""' \ 97 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 98 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 99 '-D_DEBUG' 100 101 102 # Include paths placed before CFLAGS/CPPFLAGS 103 LOCAL_C_INCLUDES_Debug := \ 104 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 105 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 106 $(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \ 107 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 108 $(LOCAL_PATH) \ 109 $(LOCAL_PATH)/skia/config \ 110 $(PWD)/external/skia/include \ 111 $(PWD)/external/skia/include/core \ 112 $(LOCAL_PATH)/third_party/skia/src/core \ 113 $(LOCAL_PATH)/skia/ext \ 114 $(PWD)/external/icu4c/common \ 115 $(PWD)/external/icu4c/i18n \ 116 $(gyp_shared_intermediate_dir)/ui/ui_resources \ 117 $(PWD)/frameworks/wilhelm/include \ 118 $(PWD)/bionic \ 119 $(PWD)/external/stlport/stlport 120 121 122 # Flags passed to only C++ (and not C) files. 123 LOCAL_CPPFLAGS_Debug := \ 124 -fno-rtti \ 125 -fno-threadsafe-statics \ 126 -fvisibility-inlines-hidden \ 127 -Wsign-compare \ 128 -Wno-abi \ 129 -Wno-error=c++0x-compat \ 130 -Wno-non-virtual-dtor \ 131 -Wno-sign-promo 132 133 134 # Flags passed to both C and C++ files. 135 MY_CFLAGS_Release := \ 136 -fstack-protector \ 137 --param=ssp-buffer-size=4 \ 138 -Werror \ 139 -fno-exceptions \ 140 -fno-strict-aliasing \ 141 -Wall \ 142 -Wno-unused-parameter \ 143 -Wno-missing-field-initializers \ 144 -fvisibility=hidden \ 145 -pipe \ 146 -fPIC \ 147 -fno-tree-sra \ 148 -fuse-ld=gold \ 149 -Wno-psabi \ 150 -ffunction-sections \ 151 -funwind-tables \ 152 -g \ 153 -fstack-protector \ 154 -fno-short-enums \ 155 -finline-limit=64 \ 156 -Wa,--noexecstack \ 157 -U_FORTIFY_SOURCE \ 158 -Wno-extra \ 159 -Wno-ignored-qualifiers \ 160 -Wno-type-limits \ 161 -Os \ 162 -fno-ident \ 163 -fdata-sections \ 164 -ffunction-sections \ 165 -fomit-frame-pointer 166 167 MY_DEFS_Release := \ 168 '-DV8_DEPRECATION_WARNINGS' \ 169 '-D_FILE_OFFSET_BITS=64' \ 170 '-DNO_TCMALLOC' \ 171 '-DDISABLE_NACL' \ 172 '-DCHROMIUM_BUILD' \ 173 '-DUSE_LIBJPEG_TURBO=1' \ 174 '-DUSE_PROPRIETARY_CODECS' \ 175 '-DENABLE_CONFIGURATION_POLICY' \ 176 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 177 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 178 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 179 '-DUSE_OPENSSL=1' \ 180 '-DENABLE_EGLIMAGE=1' \ 181 '-DCLD_VERSION=1' \ 182 '-DENABLE_PRINTING=1' \ 183 '-DENABLE_MANAGED_USERS=1' \ 184 '-DNATIVE_THEME_IMPLEMENTATION' \ 185 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 186 '-DU_USING_ICU_NAMESPACE=0' \ 187 '-DPOSIX_AVOID_MMAP' \ 188 '-D__STDC_CONSTANT_MACROS' \ 189 '-D__STDC_FORMAT_MACROS' \ 190 '-DANDROID' \ 191 '-D__GNU_SOURCE=1' \ 192 '-DUSE_STLPORT=1' \ 193 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 194 '-DCHROME_BUILD_ID=""' \ 195 '-DNDEBUG' \ 196 '-DNVALGRIND' \ 197 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 198 '-D_FORTIFY_SOURCE=2' 199 200 201 # Include paths placed before CFLAGS/CPPFLAGS 202 LOCAL_C_INCLUDES_Release := \ 203 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 204 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 205 $(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \ 206 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 207 $(LOCAL_PATH) \ 208 $(LOCAL_PATH)/skia/config \ 209 $(PWD)/external/skia/include \ 210 $(PWD)/external/skia/include/core \ 211 $(LOCAL_PATH)/third_party/skia/src/core \ 212 $(LOCAL_PATH)/skia/ext \ 213 $(PWD)/external/icu4c/common \ 214 $(PWD)/external/icu4c/i18n \ 215 $(gyp_shared_intermediate_dir)/ui/ui_resources \ 216 $(PWD)/frameworks/wilhelm/include \ 217 $(PWD)/bionic \ 218 $(PWD)/external/stlport/stlport 219 220 221 # Flags passed to only C++ (and not C) files. 222 LOCAL_CPPFLAGS_Release := \ 223 -fno-rtti \ 224 -fno-threadsafe-statics \ 225 -fvisibility-inlines-hidden \ 226 -Wsign-compare \ 227 -Wno-abi \ 228 -Wno-error=c++0x-compat \ 229 -Wno-non-virtual-dtor \ 230 -Wno-sign-promo 231 232 233 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 234 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 235 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 236 ### Rules for final target. 237 238 LOCAL_LDFLAGS_Debug := \ 239 -Wl,-z,now \ 240 -Wl,-z,relro \ 241 -Wl,-z,noexecstack \ 242 -fPIC \ 243 -Wl,-z,relro \ 244 -Wl,-z,now \ 245 -fuse-ld=gold \ 246 -nostdlib \ 247 -Wl,--no-undefined \ 248 -Wl,--exclude-libs=ALL \ 249 -Wl,--icf=safe \ 250 -Wl,--fatal-warnings \ 251 -Wl,--gc-sections \ 252 -Wl,--warn-shared-textrel \ 253 -Wl,-O1 \ 254 -Wl,--as-needed 255 256 257 LOCAL_LDFLAGS_Release := \ 258 -Wl,-z,now \ 259 -Wl,-z,relro \ 260 -Wl,-z,noexecstack \ 261 -fPIC \ 262 -Wl,-z,relro \ 263 -Wl,-z,now \ 264 -fuse-ld=gold \ 265 -nostdlib \ 266 -Wl,--no-undefined \ 267 -Wl,--exclude-libs=ALL \ 268 -Wl,--icf=safe \ 269 -Wl,-O1 \ 270 -Wl,--as-needed \ 271 -Wl,--gc-sections \ 272 -Wl,--fatal-warnings \ 273 -Wl,--warn-shared-textrel 274 275 276 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 277 278 LOCAL_STATIC_LIBRARIES := \ 279 ui_ui_gyp 280 281 # Enable grouping to fix circular references 282 LOCAL_GROUP_STATIC_LIBRARIES := true 283 284 LOCAL_SHARED_LIBRARIES := \ 285 libskia \ 286 libstlport \ 287 libdl 288 289 # Add target alias to "gyp_all_modules" target. 290 .PHONY: gyp_all_modules 291 gyp_all_modules: ui_native_theme_native_theme_gyp 292 293 # Alias gyp target name. 294 .PHONY: native_theme 295 native_theme: ui_native_theme_native_theme_gyp 296 297 include $(BUILD_STATIC_LIBRARY) 298