Skip to content

Commit

Permalink
Fixes for Tcl 9.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
petasis committed Jan 4, 2025
1 parent cbdd3df commit 2b9d7e7
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 3 deletions.
22 changes: 20 additions & 2 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -219,29 +219,47 @@ for:
- brew install tcl-tk
- export TCL_VERSION=`echo 'puts [info tclversion]' | tclsh`
- export BUILD_FILENAME_TAG="-macOS-tcl${TCL_VERSION}-${PLATFORM_CPU_ARCH}-${PLATFORM}-${PLATFORM_OS_VERSION}"
- export BUILD_FILENAME_TAG_ARM="-macOS-tcl${TCL_VERSION}-arm64-${PLATFORM}-${PLATFORM_OS_VERSION}"
- cd ${TKDND_HOME}
- export TKDND_VERSION=`cat ${TKDND_HOME}/VERSION`
- echo ${TKDND_VERSION}
- export TKDND_RUNTIME=${TKDND_HOME}/cmake/runtime
- export FILE_TO_UPLOAD=${TKDND_HOME}/tkdnd-${TKDND_VERSION}${BUILD_FILENAME_TAG}.tgz
- echo ${FILE_TO_UPLOAD}
- export FILE_TO_UPLOAD_ARM=${TKDND_HOME}/tkdnd-${TKDND_VERSION}${BUILD_FILENAME_TAG_ARM}.tgz
- echo ${FILE_TO_UPLOAD_ARM}


build_script:
- echo "Build for macOS"
- cd ${TKDND_HOME}
- ./configure --prefix=${TKDND_RUNTIME} --exec-prefix=${TKDND_RUNTIME} ${CONFIGURE_ARGS} && make && make test
- make install
- cd ${TKDND_RUNTIME}/lib && tar -czvf ${FILE_TO_UPLOAD} tkdnd${TKDND_VERSION} && rm -rf tkdnd${TKDND_VERSION}
## Cross-compile for ARM...
- cd ${TKDND_HOME}
# - CC="clang -march=arm" CFLAGS= CXX="clang++ -march=arm" CXXFLAGS= lhelper create lite-xl-arm -n
- export CC="clang -march=arm"
- export CFLAGS=
- export CXX="clang++ -march=arm"
- export CXXFLAGS=
- ./configure --prefix=${TKDND_RUNTIME} --exec-prefix=${TKDND_RUNTIME} ${CONFIGURE_ARGS} && make && make test
- make install
- cd ${TKDND_RUNTIME}/lib && tar -czvf ${FILE_TO_UPLOAD_ARM} tkdnd${TKDND_VERSION} && rm -rf tkdnd${TKDND_VERSION}

after_build:
- echo `pwd`
- cd ${TKDND_RUNTIME}/lib && tar -czvf ${FILE_TO_UPLOAD} tkdnd${TKDND_VERSION}
- cd ${TKDND_HOME}
- echo ${FILE_TO_UPLOAD}
- echo ${FILE_TO_UPLOAD_ARM}

artifacts:
- path: '*.tgz'
type: tgz
name: tkdnd-${TKDND_VERSION}${BUILD_FILENAME_TAG}.tgz

- path: '*.tgz'
type: tgz
name: tkdnd-${TKDND_VERSION}${BUILD_FILENAME_TAG_ARM}.tgz

# https://github.com/forexample/github-binary-release
# git tag tkdnd-release-test-v2.9.2
Expand Down
3 changes: 3 additions & 0 deletions Changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2025-01-04 Petasis George <petasis@iit.demokritos.gr>
* win/OleDND.h: Improved support for Tcl 9. (Pull request by Github
user apnadkarni - https://github.com/petasis/tkdnd/pull/72).
2025-01-02 Petasis George <petasis@iit.demokritos.gr>
* TkDND 2.9.5 has been released.

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ It can be used with any Tk version equal or greater to **8.4** and currently onl
| OS | Master Branch |
---|---
| Linux: Ubuntu Xenial 16.04, x86-64, Tcl/Tk 8.6 | [![Build Status](https://app.travis-ci.com/petasis/tkdnd.svg?branch=master)](https://app.travis-ci.com/github/petasis/tkdnd) |
| Windows, x86, x86-64, Tcl/Tk 8.6 | [![Build status](https://ci.appveyor.com/api/projects/status/vfnx40w79dqsox1y/branch/master?svg=true)](https://ci.appveyor.com/project/petasis/tkdnd/branch/master) |
| Linux, x86, x86-64, Tcl/Tk 8.6 <br> Windows, x86, x86-64, Tcl/Tk 8.6 <br> | macOS Sonoma, x86-64, Tcl/Tk 9.0 (Homebrew) [![Build status](https://ci.appveyor.com/api/projects/status/vfnx40w79dqsox1y/branch/master?svg=true)](https://ci.appveyor.com/project/petasis/tkdnd/branch/master) |
| macOS: macOS 10.13, x86-64, Tcl/Tk 8.5 | [![Build Status](https://app.travis-ci.com/petasis/tkdnd.svg?branch=master)](https://app.travis-ci.com/github/petasis/tkdnd) |
| macOS: macOS 12.6, x86-64, Tcl/Tk 8.6 (Homebrew) | [![Build Status](https://app.travis-ci.com/petasis/tkdnd.svg?branch=master)](https://app.travis-ci.com/github/petasis/tkdnd) |

Expand Down

0 comments on commit 2b9d7e7

Please sign in to comment.