4a603fc591
Reason for revert: Google3 can't find qcms Original issue's description: > Create SkColorSpaceXform to handle color conversions > > Also adds testing of qcms color correction, so we can compare > SkColorSpaceXform outputs to qcms outputs. > > BUG=skia: > GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1952063002 > > Committed: https://skia.googlesource.com/skia/+/740cc88ee3d63c75e52d31238f2a32600cc57a8c TBR=reed@google.com,scroggo@google.com,mtklein@google.com,herb@google.com,brianosman@google.com # Skipping CQ checks because original CL landed less than 1 days ago. NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=skia: Review-Url: https://codereview.chromium.org/2023093004
75 lines
2.0 KiB
Python
75 lines
2.0 KiB
Python
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
# This build file has been adapted for use in Skia. The contents of third_party/qcms
|
|
# are copied directly from Chromium.
|
|
{
|
|
'variables': {
|
|
'skia_warnings_as_errors': 0,
|
|
},
|
|
'targets': [
|
|
{
|
|
'target_name': 'qcms',
|
|
'type': 'static_library',
|
|
|
|
# Warning (sign-conversion) fixed upstream by large refactoring. Can be
|
|
# removed on next roll.
|
|
'msvs_disabled_warnings': [ 4018 ],
|
|
|
|
'direct_dependent_settings': {
|
|
'include_dirs': [
|
|
'./src',
|
|
],
|
|
},
|
|
|
|
'sources': [
|
|
'../third_party/qcms/src/chain.c',
|
|
'../third_party/qcms/src/chain.h',
|
|
'../third_party/qcms/src/iccread.c',
|
|
'../third_party/qcms/src/matrix.c',
|
|
'../third_party/qcms/src/matrix.h',
|
|
'../third_party/qcms/src/qcms.h',
|
|
'../third_party/qcms/src/qcmsint.h',
|
|
'../third_party/qcms/src/qcmstypes.h',
|
|
'../third_party/qcms/src/qcms_util.c',
|
|
'../third_party/qcms/src/transform.c',
|
|
'../third_party/qcms/src/transform_util.c',
|
|
'../third_party/qcms/src/transform_util.h',
|
|
],
|
|
'conditions': [
|
|
['"x86" in skia_arch_type', {
|
|
'defines': [
|
|
'SSE2_ENABLE',
|
|
],
|
|
'sources': [
|
|
'../third_party/qcms/src/transform-sse2.c',
|
|
],
|
|
}],
|
|
['skia_os == "win"', {
|
|
'msvs_disabled_warnings': [
|
|
4056, # overflow in floating-point constant arithmetic (INFINITY)
|
|
4756, # overflow in constant arithmetic (INFINITY)
|
|
],
|
|
}],
|
|
],
|
|
|
|
# Disable warnings
|
|
'cflags': [
|
|
'-w',
|
|
],
|
|
'xcode_settings': {
|
|
'WARNING_CFLAGS': [
|
|
'-w'
|
|
],
|
|
},
|
|
'msvs_settings': {
|
|
'VCCLCompilerTool': {
|
|
'WarningLevel': '0',
|
|
},
|
|
},
|
|
|
|
},
|
|
],
|
|
}
|