diff --git a/BUILD.gn b/BUILD.gn new file mode 100644 index 0000000000000000000000000000000000000000..f60902998ef923731c86a7f49326c7731920436c --- /dev/null +++ b/BUILD.gn @@ -0,0 +1,62 @@ +# Copyright (c) 2023 Huawei Device Co., Ltd. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +import("//build/ohos.gni") + +config("astc_encoder_config") { + include_dirs = [ + "//third_party/astc-encoder/Source", + ] +} + +ohos_source_set("astc_encoder_static") { + public_configs = [":astc_encoder_config"] + sources = [ + "//third_party/astc-encoder/Source/astcenc_averages_and_directions.cpp", + "//third_party/astc-encoder/Source/astcenc_block_sizes.cpp", + "//third_party/astc-encoder/Source/astcenc_color_quantize.cpp", + "//third_party/astc-encoder/Source/astcenc_color_unquantize.cpp", + "//third_party/astc-encoder/Source/astcenc_compress_symbolic.cpp", + "//third_party/astc-encoder/Source/astcenc_compute_variance.cpp", + "//third_party/astc-encoder/Source/astcenc_decompress_symbolic.cpp", + "//third_party/astc-encoder/Source/astcenc_diagnostic_trace.cpp", + "//third_party/astc-encoder/Source/astcenc_entry.cpp", + "//third_party/astc-encoder/Source/astcenc_find_best_partitioning.cpp", + "//third_party/astc-encoder/Source/astcenc_ideal_endpoints_and_weights.cpp", + "//third_party/astc-encoder/Source/astcenc_image.cpp", + "//third_party/astc-encoder/Source/astcenc_integer_sequence.cpp", + "//third_party/astc-encoder/Source/astcenc_mathlib_softfloat.cpp", + "//third_party/astc-encoder/Source/astcenc_mathlib.cpp", + "//third_party/astc-encoder/Source/astcenc_partition_tables.cpp", + "//third_party/astc-encoder/Source/astcenc_percentile_tables.cpp", + "//third_party/astc-encoder/Source/astcenc_pick_best_endpoint_format.cpp", + "//third_party/astc-encoder/Source/astcenc_platform_isa_detection.cpp", + "//third_party/astc-encoder/Source/astcenc_quantization.cpp", + "//third_party/astc-encoder/Source/astcenc_symbolic_physical.cpp", + "//third_party/astc-encoder/Source/astcenc_weight_align.cpp", + "//third_party/astc-encoder/Source/astcenc_weight_quant_xfer_tables.cpp", + ] + part_name = "astc-encoder" + subsystem_name = "thirdparty" +} + +ohos_shared_library("astc_encoder_shared") { + deps = [ + ":astc_encoder_static", + ] + output_extension = "so" + install_enable = true + part_name = "astc-encoder" + subsystem_name = "thirdparty" + install_images = ["system"] +} diff --git a/bundle.json b/bundle.json new file mode 100644 index 0000000000000000000000000000000000000000..53b42bdac7c766ec529581876bb0b014ccd54626 --- /dev/null +++ b/bundle.json @@ -0,0 +1,31 @@ +{ + "name": "@ohos/astc-encoder", + "description": "This is the official repository for Arm ASTC encoders,which are texture compressors for adaptive extensible texture compression data formats.", + "version": "3.7", + "license": "Apache-2.0", + "publishAs": "code-segment", + "segment":{ + "destPath": "third_party/astc-encoder" + }, + "dirs": {}, + "scripts": {}, + "licensePath": "COPYING", + "component": { + "name": "astc-encoder", + "subsystem": "thirdparty", + "syscap": [], + "features": [], + "adapted_system_type": ["standard"], + "rom": "", + "ram": "", + "deps": { + "components": [], + "third_party": [] + }, + "build": { + "sub_component": [], + "inner_kits": [], + "test": [] + } + } +}