1# This file is generated by gyp; do not edit. 2 3include $(CLEAR_VARS) 4 5LOCAL_MODULE_CLASS := STATIC_LIBRARIES 6LOCAL_MODULE := third_party_qcms_qcms_gyp 7LOCAL_MODULE_SUFFIX := .a 8LOCAL_MODULE_TAGS := optional 9gyp_intermediate_dir := $(call local-intermediates-dir) 10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared) 11 12# Make sure our deps are built first. 13GYP_TARGET_DEPENDENCIES := 14 15GYP_GENERATED_OUTPUTS := 16 17# Make sure our deps and generated files are built first. 18LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 19 20LOCAL_GENERATED_SOURCES := 21 22GYP_COPIED_SOURCE_ORIGIN_DIRS := 23 24LOCAL_SRC_FILES := \ 25 third_party/qcms/src/chain.c \ 26 third_party/qcms/src/iccread.c \ 27 third_party/qcms/src/matrix.c \ 28 third_party/qcms/src/transform.c \ 29 third_party/qcms/src/transform_util.c \ 30 third_party/qcms/src/transform-sse1.c \ 31 third_party/qcms/src/transform-sse2.c 32 33 34# Flags passed to both C and C++ files. 35MY_CFLAGS_Debug := \ 36 --param=ssp-buffer-size=4 \ 37 -fno-exceptions \ 38 -fno-strict-aliasing \ 39 -Wno-unused-parameter \ 40 -Wno-missing-field-initializers \ 41 -fvisibility=hidden \ 42 -pipe \ 43 -fPIC \ 44 -Wno-format \ 45 -m32 \ 46 -mmmx \ 47 -march=pentium4 \ 48 -msse2 \ 49 -mfpmath=sse \ 50 -fuse-ld=gold \ 51 -ffunction-sections \ 52 -funwind-tables \ 53 -g \ 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 -fno-stack-protector \ 62 -Wno-address \ 63 -Wno-format-security \ 64 -Wno-return-type \ 65 -Wno-sequence-point \ 66 -Os \ 67 -g \ 68 -fomit-frame-pointer \ 69 -fdata-sections \ 70 -ffunction-sections 71 72MY_DEFS_Debug := \ 73 '-DV8_DEPRECATION_WARNINGS' \ 74 '-D_FILE_OFFSET_BITS=64' \ 75 '-DNO_TCMALLOC' \ 76 '-DDISABLE_NACL' \ 77 '-DCHROMIUM_BUILD' \ 78 '-DUSE_LIBJPEG_TURBO=1' \ 79 '-DUSE_PROPRIETARY_CODECS' \ 80 '-DENABLE_CONFIGURATION_POLICY' \ 81 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 82 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 83 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 84 '-DUSE_OPENSSL=1' \ 85 '-DENABLE_EGLIMAGE=1' \ 86 '-DCLD_VERSION=1' \ 87 '-DENABLE_PRINTING=1' \ 88 '-DENABLE_MANAGED_USERS=1' \ 89 '-DSSE2_ENABLE' \ 90 '-DANDROID' \ 91 '-D__GNU_SOURCE=1' \ 92 '-DUSE_STLPORT=1' \ 93 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 94 '-DCHROME_BUILD_ID=""' \ 95 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 96 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 97 '-D_DEBUG' 98 99 100# Include paths placed before CFLAGS/CPPFLAGS 101LOCAL_C_INCLUDES_Debug := \ 102 $(PWD)/frameworks/wilhelm/include \ 103 $(PWD)/bionic \ 104 $(PWD)/external/stlport/stlport 105 106 107# Flags passed to only C++ (and not C) files. 108LOCAL_CPPFLAGS_Debug := \ 109 -fno-rtti \ 110 -fno-threadsafe-statics \ 111 -fvisibility-inlines-hidden \ 112 -Wno-deprecated \ 113 -Wno-error=c++0x-compat \ 114 -Wno-non-virtual-dtor \ 115 -Wno-sign-promo \ 116 -Wno-non-virtual-dtor 117 118 119# Flags passed to both C and C++ files. 120MY_CFLAGS_Release := \ 121 --param=ssp-buffer-size=4 \ 122 -fno-exceptions \ 123 -fno-strict-aliasing \ 124 -Wno-unused-parameter \ 125 -Wno-missing-field-initializers \ 126 -fvisibility=hidden \ 127 -pipe \ 128 -fPIC \ 129 -Wno-format \ 130 -m32 \ 131 -mmmx \ 132 -march=pentium4 \ 133 -msse2 \ 134 -mfpmath=sse \ 135 -fuse-ld=gold \ 136 -ffunction-sections \ 137 -funwind-tables \ 138 -g \ 139 -fno-short-enums \ 140 -finline-limit=64 \ 141 -Wa,--noexecstack \ 142 -U_FORTIFY_SOURCE \ 143 -Wno-extra \ 144 -Wno-ignored-qualifiers \ 145 -Wno-type-limits \ 146 -fno-stack-protector \ 147 -Wno-address \ 148 -Wno-format-security \ 149 -Wno-return-type \ 150 -Wno-sequence-point \ 151 -Os \ 152 -fno-ident \ 153 -fdata-sections \ 154 -ffunction-sections \ 155 -fomit-frame-pointer \ 156 -fno-unwind-tables \ 157 -fno-asynchronous-unwind-tables 158 159MY_DEFS_Release := \ 160 '-DV8_DEPRECATION_WARNINGS' \ 161 '-D_FILE_OFFSET_BITS=64' \ 162 '-DNO_TCMALLOC' \ 163 '-DDISABLE_NACL' \ 164 '-DCHROMIUM_BUILD' \ 165 '-DUSE_LIBJPEG_TURBO=1' \ 166 '-DUSE_PROPRIETARY_CODECS' \ 167 '-DENABLE_CONFIGURATION_POLICY' \ 168 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 169 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 170 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 171 '-DUSE_OPENSSL=1' \ 172 '-DENABLE_EGLIMAGE=1' \ 173 '-DCLD_VERSION=1' \ 174 '-DENABLE_PRINTING=1' \ 175 '-DENABLE_MANAGED_USERS=1' \ 176 '-DSSE2_ENABLE' \ 177 '-DANDROID' \ 178 '-D__GNU_SOURCE=1' \ 179 '-DUSE_STLPORT=1' \ 180 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 181 '-DCHROME_BUILD_ID=""' \ 182 '-DNDEBUG' \ 183 '-DNVALGRIND' \ 184 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 185 186 187# Include paths placed before CFLAGS/CPPFLAGS 188LOCAL_C_INCLUDES_Release := \ 189 $(PWD)/frameworks/wilhelm/include \ 190 $(PWD)/bionic \ 191 $(PWD)/external/stlport/stlport 192 193 194# Flags passed to only C++ (and not C) files. 195LOCAL_CPPFLAGS_Release := \ 196 -fno-rtti \ 197 -fno-threadsafe-statics \ 198 -fvisibility-inlines-hidden \ 199 -Wno-deprecated \ 200 -Wno-error=c++0x-compat \ 201 -Wno-non-virtual-dtor \ 202 -Wno-sign-promo \ 203 -Wno-non-virtual-dtor 204 205 206LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 207LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 208LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 209### Rules for final target. 210 211LOCAL_LDFLAGS_Debug := \ 212 -Wl,-z,now \ 213 -Wl,-z,relro \ 214 -Wl,-z,noexecstack \ 215 -fPIC \ 216 -m32 \ 217 -fuse-ld=gold \ 218 -nostdlib \ 219 -Wl,--no-undefined \ 220 -Wl,--exclude-libs=ALL \ 221 -Wl,--fatal-warnings \ 222 -Wl,--gc-sections \ 223 -Wl,--warn-shared-textrel \ 224 -Wl,-O1 \ 225 -Wl,--as-needed 226 227 228LOCAL_LDFLAGS_Release := \ 229 -Wl,-z,now \ 230 -Wl,-z,relro \ 231 -Wl,-z,noexecstack \ 232 -fPIC \ 233 -m32 \ 234 -fuse-ld=gold \ 235 -nostdlib \ 236 -Wl,--no-undefined \ 237 -Wl,--exclude-libs=ALL \ 238 -Wl,-O1 \ 239 -Wl,--as-needed \ 240 -Wl,--gc-sections \ 241 -Wl,--fatal-warnings \ 242 -Wl,--warn-shared-textrel 243 244 245LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 246 247LOCAL_STATIC_LIBRARIES := 248 249# Enable grouping to fix circular references 250LOCAL_GROUP_STATIC_LIBRARIES := true 251 252LOCAL_SHARED_LIBRARIES := \ 253 libstlport \ 254 libdl 255 256# Add target alias to "gyp_all_modules" target. 257.PHONY: gyp_all_modules 258gyp_all_modules: third_party_qcms_qcms_gyp 259 260# Alias gyp target name. 261.PHONY: qcms 262qcms: third_party_qcms_qcms_gyp 263 264include $(BUILD_STATIC_LIBRARY) 265