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 -fstack-protector \ 32 --param=ssp-buffer-size=4 \ 33 -fno-exceptions \ 34 -fno-strict-aliasing \ 35 -Wno-unused-parameter \ 36 -Wno-missing-field-initializers \ 37 -fvisibility=hidden \ 38 -pipe \ 39 -fPIC \ 40 -Wno-format \ 41 -fno-tree-sra \ 42 -fuse-ld=gold \ 43 -Wno-psabi \ 44 -ffunction-sections \ 45 -funwind-tables \ 46 -g \ 47 -fstack-protector \ 48 -fno-short-enums \ 49 -finline-limit=64 \ 50 -Wa,--noexecstack \ 51 -U_FORTIFY_SOURCE \ 52 -Wno-extra \ 53 -Wno-ignored-qualifiers \ 54 -Wno-type-limits \ 55 -Wno-address \ 56 -Wno-format-security \ 57 -Wno-return-type \ 58 -Wno-sequence-point \ 59 -Os \ 60 -g \ 61 -fomit-frame-pointer \ 62 -fdata-sections \ 63 -ffunction-sections 64 65 MY_DEFS_Debug := \ 66 '-DV8_DEPRECATION_WARNINGS' \ 67 '-D_FILE_OFFSET_BITS=64' \ 68 '-DNO_TCMALLOC' \ 69 '-DDISABLE_NACL' \ 70 '-DCHROMIUM_BUILD' \ 71 '-DUSE_LIBJPEG_TURBO=1' \ 72 '-DUSE_PROPRIETARY_CODECS' \ 73 '-DENABLE_CONFIGURATION_POLICY' \ 74 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 75 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 76 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 77 '-DUSE_OPENSSL=1' \ 78 '-DENABLE_EGLIMAGE=1' \ 79 '-DCLD_VERSION=1' \ 80 '-DENABLE_PRINTING=1' \ 81 '-DENABLE_MANAGED_USERS=1' \ 82 '-DUSE_SYSTEM_LIBJPEG' \ 83 '-DANDROID' \ 84 '-D__GNU_SOURCE=1' \ 85 '-DUSE_STLPORT=1' \ 86 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 87 '-DCHROME_BUILD_ID=""' \ 88 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 89 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 90 '-D_DEBUG' 91 92 93 # Include paths placed before CFLAGS/CPPFLAGS 94 LOCAL_C_INCLUDES_Debug := \ 95 $(PWD)/external/jpeg \ 96 $(PWD)/frameworks/wilhelm/include \ 97 $(PWD)/bionic \ 98 $(PWD)/external/stlport/stlport 99 100 101 # Flags passed to only C++ (and not C) files. 102 LOCAL_CPPFLAGS_Debug := \ 103 -fno-rtti \ 104 -fno-threadsafe-statics \ 105 -fvisibility-inlines-hidden \ 106 -Wno-deprecated \ 107 -Wno-abi \ 108 -Wno-error=c++0x-compat \ 109 -Wno-non-virtual-dtor \ 110 -Wno-sign-promo \ 111 -Wno-non-virtual-dtor 112 113 114 # Flags passed to both C and C++ files. 115 MY_CFLAGS_Release := \ 116 -fstack-protector \ 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 -fno-tree-sra \ 127 -fuse-ld=gold \ 128 -Wno-psabi \ 129 -ffunction-sections \ 130 -funwind-tables \ 131 -g \ 132 -fstack-protector \ 133 -fno-short-enums \ 134 -finline-limit=64 \ 135 -Wa,--noexecstack \ 136 -U_FORTIFY_SOURCE \ 137 -Wno-extra \ 138 -Wno-ignored-qualifiers \ 139 -Wno-type-limits \ 140 -Wno-address \ 141 -Wno-format-security \ 142 -Wno-return-type \ 143 -Wno-sequence-point \ 144 -Os \ 145 -fno-ident \ 146 -fdata-sections \ 147 -ffunction-sections \ 148 -fomit-frame-pointer 149 150 MY_DEFS_Release := \ 151 '-DV8_DEPRECATION_WARNINGS' \ 152 '-D_FILE_OFFSET_BITS=64' \ 153 '-DNO_TCMALLOC' \ 154 '-DDISABLE_NACL' \ 155 '-DCHROMIUM_BUILD' \ 156 '-DUSE_LIBJPEG_TURBO=1' \ 157 '-DUSE_PROPRIETARY_CODECS' \ 158 '-DENABLE_CONFIGURATION_POLICY' \ 159 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 160 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 161 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 162 '-DUSE_OPENSSL=1' \ 163 '-DENABLE_EGLIMAGE=1' \ 164 '-DCLD_VERSION=1' \ 165 '-DENABLE_PRINTING=1' \ 166 '-DENABLE_MANAGED_USERS=1' \ 167 '-DUSE_SYSTEM_LIBJPEG' \ 168 '-DANDROID' \ 169 '-D__GNU_SOURCE=1' \ 170 '-DUSE_STLPORT=1' \ 171 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 172 '-DCHROME_BUILD_ID=""' \ 173 '-DNDEBUG' \ 174 '-DNVALGRIND' \ 175 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 176 177 178 # Include paths placed before CFLAGS/CPPFLAGS 179 LOCAL_C_INCLUDES_Release := \ 180 $(PWD)/external/jpeg \ 181 $(PWD)/frameworks/wilhelm/include \ 182 $(PWD)/bionic \ 183 $(PWD)/external/stlport/stlport 184 185 186 # Flags passed to only C++ (and not C) files. 187 LOCAL_CPPFLAGS_Release := \ 188 -fno-rtti \ 189 -fno-threadsafe-statics \ 190 -fvisibility-inlines-hidden \ 191 -Wno-deprecated \ 192 -Wno-abi \ 193 -Wno-error=c++0x-compat \ 194 -Wno-non-virtual-dtor \ 195 -Wno-sign-promo \ 196 -Wno-non-virtual-dtor 197 198 199 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 200 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 201 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 202 ### Rules for final target. 203 204 LOCAL_LDFLAGS_Debug := \ 205 -Wl,-z,now \ 206 -Wl,-z,relro \ 207 -Wl,-z,noexecstack \ 208 -fPIC \ 209 -Wl,-z,relro \ 210 -Wl,-z,now \ 211 -fuse-ld=gold \ 212 -nostdlib \ 213 -Wl,--no-undefined \ 214 -Wl,--exclude-libs=ALL \ 215 -Wl,--icf=safe \ 216 -Wl,--fatal-warnings \ 217 -Wl,--gc-sections \ 218 -Wl,--warn-shared-textrel \ 219 -Wl,-O1 \ 220 -Wl,--as-needed 221 222 223 LOCAL_LDFLAGS_Release := \ 224 -Wl,-z,now \ 225 -Wl,-z,relro \ 226 -Wl,-z,noexecstack \ 227 -fPIC \ 228 -Wl,-z,relro \ 229 -Wl,-z,now \ 230 -fuse-ld=gold \ 231 -nostdlib \ 232 -Wl,--no-undefined \ 233 -Wl,--exclude-libs=ALL \ 234 -Wl,--icf=safe \ 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