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_qcms_qcms_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 15 GYP_GENERATED_OUTPUTS := 16 17 # Make sure our deps and generated files are built first. 18 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 19 20 LOCAL_GENERATED_SOURCES := 21 22 GYP_COPIED_SOURCE_ORIGIN_DIRS := 23 24 LOCAL_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 31 32 # Flags passed to both C and C++ files. 33 MY_CFLAGS_Debug := \ 34 -fstack-protector \ 35 --param=ssp-buffer-size=4 \ 36 \ 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 -EL \ 46 -mhard-float \ 47 -ffunction-sections \ 48 -funwind-tables \ 49 -g \ 50 -fstack-protector \ 51 -fno-short-enums \ 52 -finline-limit=64 \ 53 -Wa,--noexecstack \ 54 -U_FORTIFY_SOURCE \ 55 -Wno-extra \ 56 -Wno-ignored-qualifiers \ 57 -Wno-type-limits \ 58 -Wno-address \ 59 -Wno-format-security \ 60 -Wno-return-type \ 61 -Wno-sequence-point \ 62 -Os \ 63 -g \ 64 -fomit-frame-pointer \ 65 -fdata-sections \ 66 -ffunction-sections 67 68 MY_DEFS_Debug := \ 69 '-DANGLE_DX11' \ 70 '-D_FILE_OFFSET_BITS=64' \ 71 '-DNO_TCMALLOC' \ 72 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 73 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 74 '-DDISABLE_NACL' \ 75 '-DCHROMIUM_BUILD' \ 76 '-DUSE_LIBJPEG_TURBO=1' \ 77 '-DUSE_PROPRIETARY_CODECS' \ 78 '-DENABLE_CONFIGURATION_POLICY' \ 79 '-DLOGGING_IS_OFFICIAL_BUILD=1' \ 80 '-DTRACING_IS_OFFICIAL_BUILD=1' \ 81 '-DENABLE_GPU=1' \ 82 '-DUSE_OPENSSL=1' \ 83 '-DENABLE_EGLIMAGE=1' \ 84 '-DENABLE_PRINTING=1' \ 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)/frameworks/wilhelm/include \ 98 $(PWD)/bionic \ 99 $(PWD)/external/stlport/stlport 100 101 102 # Flags passed to only C++ (and not C) files. 103 LOCAL_CPPFLAGS_Debug := \ 104 -fno-rtti \ 105 -fno-threadsafe-statics \ 106 -fvisibility-inlines-hidden \ 107 -Wno-deprecated \ 108 -Wno-uninitialized \ 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 -fstack-protector \ 118 --param=ssp-buffer-size=4 \ 119 \ 120 -fno-exceptions \ 121 -fno-strict-aliasing \ 122 -Wno-unused-parameter \ 123 -Wno-missing-field-initializers \ 124 -fvisibility=hidden \ 125 -pipe \ 126 -fPIC \ 127 -Wno-format \ 128 -EL \ 129 -mhard-float \ 130 -ffunction-sections \ 131 -funwind-tables \ 132 -g \ 133 -fstack-protector \ 134 -fno-short-enums \ 135 -finline-limit=64 \ 136 -Wa,--noexecstack \ 137 -U_FORTIFY_SOURCE \ 138 -Wno-extra \ 139 -Wno-ignored-qualifiers \ 140 -Wno-type-limits \ 141 -Wno-address \ 142 -Wno-format-security \ 143 -Wno-return-type \ 144 -Wno-sequence-point \ 145 -Os \ 146 -fno-ident \ 147 -fdata-sections \ 148 -ffunction-sections \ 149 -fomit-frame-pointer 150 151 MY_DEFS_Release := \ 152 '-DANGLE_DX11' \ 153 '-D_FILE_OFFSET_BITS=64' \ 154 '-DNO_TCMALLOC' \ 155 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 156 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 157 '-DDISABLE_NACL' \ 158 '-DCHROMIUM_BUILD' \ 159 '-DUSE_LIBJPEG_TURBO=1' \ 160 '-DUSE_PROPRIETARY_CODECS' \ 161 '-DENABLE_CONFIGURATION_POLICY' \ 162 '-DLOGGING_IS_OFFICIAL_BUILD=1' \ 163 '-DTRACING_IS_OFFICIAL_BUILD=1' \ 164 '-DENABLE_GPU=1' \ 165 '-DUSE_OPENSSL=1' \ 166 '-DENABLE_EGLIMAGE=1' \ 167 '-DENABLE_PRINTING=1' \ 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)/frameworks/wilhelm/include \ 181 $(PWD)/bionic \ 182 $(PWD)/external/stlport/stlport 183 184 185 # Flags passed to only C++ (and not C) files. 186 LOCAL_CPPFLAGS_Release := \ 187 -fno-rtti \ 188 -fno-threadsafe-statics \ 189 -fvisibility-inlines-hidden \ 190 -Wno-deprecated \ 191 -Wno-uninitialized \ 192 -Wno-error=c++0x-compat \ 193 -Wno-non-virtual-dtor \ 194 -Wno-sign-promo \ 195 -Wno-non-virtual-dtor 196 197 198 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 199 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 200 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 201 ### Rules for final target. 202 203 LOCAL_LDFLAGS_Debug := \ 204 -Wl,-z,now \ 205 -Wl,-z,relro \ 206 -Wl,-z,noexecstack \ 207 -fPIC \ 208 -EL \ 209 -Wl,--no-keep-memory \ 210 -nostdlib \ 211 -Wl,--no-undefined \ 212 -Wl,--exclude-libs=ALL \ 213 -Wl,--fatal-warnings \ 214 -Wl,--gc-sections \ 215 -Wl,--warn-shared-textrel \ 216 -Wl,-O1 \ 217 -Wl,--as-needed 218 219 220 LOCAL_LDFLAGS_Release := \ 221 -Wl,-z,now \ 222 -Wl,-z,relro \ 223 -Wl,-z,noexecstack \ 224 -fPIC \ 225 -EL \ 226 -Wl,--no-keep-memory \ 227 -nostdlib \ 228 -Wl,--no-undefined \ 229 -Wl,--exclude-libs=ALL \ 230 -Wl,-O1 \ 231 -Wl,--as-needed \ 232 -Wl,--gc-sections \ 233 -Wl,--fatal-warnings \ 234 -Wl,--warn-shared-textrel 235 236 237 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 238 239 LOCAL_STATIC_LIBRARIES := 240 241 # Enable grouping to fix circular references 242 LOCAL_GROUP_STATIC_LIBRARIES := true 243 244 LOCAL_SHARED_LIBRARIES := \ 245 libstlport \ 246 libdl 247 248 # Add target alias to "gyp_all_modules" target. 249 .PHONY: gyp_all_modules 250 gyp_all_modules: third_party_qcms_qcms_gyp 251 252 # Alias gyp target name. 253 .PHONY: qcms 254 qcms: third_party_qcms_qcms_gyp 255 256 include $(BUILD_STATIC_LIBRARY) 257