1# Copyright 2022 The ANGLE Project Authors. All rights reserved. 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4# 5# Build integration for astc-encoder. 6 7source_set("astcenc") { 8 sources = [ 9 "src/Source/astcenc.h", 10 "src/Source/astcenc_averages_and_directions.cpp", 11 "src/Source/astcenc_block_sizes.cpp", 12 "src/Source/astcenc_color_quantize.cpp", 13 "src/Source/astcenc_color_unquantize.cpp", 14 "src/Source/astcenc_compress_symbolic.cpp", 15 "src/Source/astcenc_compute_variance.cpp", 16 "src/Source/astcenc_decompress_symbolic.cpp", 17 "src/Source/astcenc_diagnostic_trace.cpp", 18 "src/Source/astcenc_diagnostic_trace.h", 19 "src/Source/astcenc_entry.cpp", 20 "src/Source/astcenc_find_best_partitioning.cpp", 21 "src/Source/astcenc_ideal_endpoints_and_weights.cpp", 22 "src/Source/astcenc_image.cpp", 23 "src/Source/astcenc_integer_sequence.cpp", 24 "src/Source/astcenc_internal.h", 25 "src/Source/astcenc_mathlib.cpp", 26 "src/Source/astcenc_mathlib.h", 27 "src/Source/astcenc_mathlib_softfloat.cpp", 28 "src/Source/astcenc_partition_tables.cpp", 29 "src/Source/astcenc_percentile_tables.cpp", 30 "src/Source/astcenc_pick_best_endpoint_format.cpp", 31 "src/Source/astcenc_platform_isa_detection.cpp", 32 "src/Source/astcenc_quantization.cpp", 33 "src/Source/astcenc_symbolic_physical.cpp", 34 "src/Source/astcenc_vecmathlib.h", 35 "src/Source/astcenc_weight_align.cpp", 36 "src/Source/astcenc_weight_quant_xfer_tables.cpp", 37 ] 38 39 defines = [ "ASTCENC_DECOMPRESS_ONLY=1" ] 40 41 # To improve performance on debug builds, enable optimization for them. 42 if (is_debug) { 43 configs += [ "//build/config/compiler:optimize" ] 44 } 45 46 if (is_clang) { 47 cflags_cc = [ "-Wno-unused-but-set-variable" ] 48 } 49} 50