diff --git a/CHANGELOG.md b/CHANGELOG.md index 5109bd3..9ea65b6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.2.2] - 2020-11-04 +### Fixed +- ktxTexture2* functions are exported properly for Windows now + ## [0.2.1] - 2020-11-04 ### Changed - Update to KTX-Software custom branch with Android support and basisu_c_binding fixes. diff --git a/CMakeLists.txt b/CMakeLists.txt index 3f57c59..44e9a48 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.15) project( KTX-Software-Unity - VERSION 1.0.0 + VERSION 0.2.2 DESCRIPTION "Unity wrapper for KTX-Software" ) @@ -24,4 +24,11 @@ target_link_libraries(ktx_unity ktx_read) if(APPLE) set_target_properties(ktx_unity PROPERTIES BUNDLE true) +elseif(WIN32) + target_sources( + ktx_unity + PRIVATE + # Explicitely export some ktx_read functions + src/ktx_unity_export.def + ) endif() diff --git a/src/ktx_unity_export.def b/src/ktx_unity_export.def new file mode 100644 index 0000000..55a7846 --- /dev/null +++ b/src/ktx_unity_export.def @@ -0,0 +1,8 @@ +; Copyright 2019-2020 Andreas Atteneder +; SPDX-License-Identifier: Apache-2.0 + +LIBRARY +EXPORTS + ktxTexture2_GetNumComponents + ktxTexture2_NeedsTranscoding + ktxTexture2_TranscodeBasis