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