Skip to content

Commit

Permalink
fix: ktxTexture2* functions are exported properly for Windows now
Browse files Browse the repository at this point in the history
  • Loading branch information
atteneder committed Nov 4, 2020
1 parent c8b4d42 commit 7d2ca55
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
9 changes: 8 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand All @@ -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()
8 changes: 8 additions & 0 deletions src/ktx_unity_export.def
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
; Copyright 2019-2020 Andreas Atteneder
; SPDX-License-Identifier: Apache-2.0

LIBRARY
EXPORTS
ktxTexture2_GetNumComponents
ktxTexture2_NeedsTranscoding
ktxTexture2_TranscodeBasis

0 comments on commit 7d2ca55

Please sign in to comment.