Skip to content

Commit

Permalink
Merge branch 'appveyor-macos' into v2.12.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
cfillion committed Dec 6, 2020
2 parents f5f4057 + 1e92f6c commit eea2df6
Show file tree
Hide file tree
Showing 6 changed files with 57 additions and 37 deletions.
48 changes: 47 additions & 1 deletion .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,51 @@ for:
- cmake --build .
- cpack
deploy_script: |-
if [ "$APPVEYOR_REPO_BRANCH" == "master" ] && [ -n "$DEPLOY_KEY" ]; then
if [ "$APPVEYOR_REPO_BRANCH" = "master" ] && [ -n "$DEPLOY_KEY" ]; then
echo "$DEPLOY_KEY" | base64 -d > deploy_key && chmod 600 deploy_key &&
scp -i deploy_key -o StrictHostKeyChecking=NO -q sws*.tar.xz \
swsci@sws-extension.org:/var/www/standingwaterstudios.com/public_html/download/pre-release
fi
artifacts:
- path: build/sws*.tar.xz

- matrix: { only: [ appveyor_build_worker_image: macos, appveyor_build_worker_image: macos-mojave ] }
install:
- |-
case $ARCH in
arm64)
DEPLOY_TARGET=11.0
curl -fsSLO https://cfillion.ca/files/.xcode/Command_Line_Tools_for_Xcode_12.2.dmg
echo 3911b66247e030c7210940cde4230319058bc5c55a81627b8853dab644092c40 Command_Line_Tools_for_Xcode_12.2.dmg | sha256sum -c
hdiutil attach Command_Line_Tools_for_Xcode_12.2.dmg > /dev/null
sudo installer -pkg '/Volumes/Command Line Developer Tools/Command Line Tools.pkg' -target /
;;
*)
DEPLOY_TARGET=10.5
curl -fsSLO https://github.com/phracker/MacOSX-SDKs/releases/download/10.15/MacOSX10.5.sdk.tar.xz
echo a0c9588f4babf2cff55ce5bcd5534c842130554b796fb0ff65add9509b1b8b4f MacOSX10.5.sdk.tar.xz | sha256sum -c
sudo tar xf MacOSX10.5.sdk.tar.xz -C /Library/Developer/CommandLineTools/SDKs
;;
esac
- sudo xcode-select -s /Library/Developer/CommandLineTools

# authorize control of Finder.app for DMG generation, see appveyor/ci#3216
- sqlite3 "$HOME/Library/Application Support/com.apple.TCC/TCC.db" "INSERT INTO access VALUES('kTCCServiceAppleEvents','$(dirname "$0")/appveyor-build-agent',1,1,1,X'fade0c000000002800000001000000080000001469862bbf79a6795b784518beed2ae09bf63e58ef',NULL,0,'com.apple.finder',X'fade0c000000002c00000001000000060000000200000010636f6d2e6170706c652e66696e64657200000003',NULL,1605970638);"
build_script:
- mkdir build && cd build
- cmake .. -DCMAKE_BUILD_TYPE=Release -DNO_INSTALL_PREFIX=YES
-DCMAKE_OSX_ARCHITECTURES=$ARCH -DCMAKE_OSX_DEPLOYMENT_TARGET=$DEPLOY_TARGET
- cmake --build .
- cpack
deploy_script: |-
if [ "$APPVEYOR_REPO_BRANCH" = "master" ] && [ -n "$DEPLOY_KEY" ]; then
echo "$DEPLOY_KEY" | base64 -D > deploy_key && chmod 600 deploy_key &&
scp -i deploy_key -o StrictHostKeyChecking=NO -q sws*.dmg \
swsci@sws-extension.org:/var/www/standingwaterstudios.com/public_html/download/pre-release
fi
artifacts:
- path: build/sws*.dmg

- matrix: { only: [ appveyor_build_worker_image: &windows Visual Studio 2019 ] }
install:
# Use NSIS v2.46 to reduce AV false positives
Expand Down Expand Up @@ -87,6 +124,15 @@ environment:
- job_name: Windows 32-bit
appveyor_build_worker_image: *windows
ARCH: x86
- job_name: macOS x86 64-bit
appveyor_build_worker_image: macos-mojave
ARCH: x86_64
- job_name: macOS x86 32-bit
appveyor_build_worker_image: macos-mojave
ARCH: i386
- job_name: macOS ARM 64-bit
appveyor_build_worker_image: macos
ARCH: arm64
- job_name: Linux x86 64-bit
appveyor_build_worker_image: *linux
ARCH: x86_64
Expand Down
31 changes: 0 additions & 31 deletions .travis.yml

This file was deleted.

8 changes: 4 additions & 4 deletions cfillion/cfillion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@
#include <WDL/localize/localize.h>

#ifdef _WIN32
static const unsigned int CLIPBOARD_FORMAT = CF_UNICODETEXT;
constexpr unsigned int CLIPBOARD_FORMAT = CF_UNICODETEXT;
#else
// on SWELL/generic CF_TEXT may be implemented as a function call which
// may not be available until after loading is complete
# define CLIPBOARD_FORMAT (CF_TEXT)
// using RegisterClipboardFormat instead of CF_TEXT for compatibility with REAPER v5
// (prior to WDL commit 0f77b72adf1cdbe98fd56feb41eb097a8fac5681)
# define CLIPBOARD_FORMAT RegisterClipboardFormat("SWELL__CF_TEXT")
#endif

extern WDL_PtrList_DOD<WDL_FastString> g_script_strs;
Expand Down
1 change: 1 addition & 0 deletions cmake/FindWDL.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ add_library(wdl
$<$<BOOL:${WIN32}>:${WDL_DIR}/win32_utf8.c>
)

target_compile_definitions(wdl PUBLIC _FILE_OFFSET_BITS=64)
target_compile_definitions(wdl INTERFACE WDL_NO_DEFINE_MINMAX)
target_include_directories(wdl INTERFACE ${WDL_INCLUDE_DIR})

Expand Down
4 changes: 4 additions & 0 deletions setup/macos/DS_Store.scpt
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ on run argv
set reaper_sws to "reaper_sws-x86_64.dylib"
set sws_python to "sws_python64.py"

if not exists item reaper_sws
set reaper_sws to "reaper_sws-arm64.dylib"
end if

if not exists item reaper_sws
set reaper_sws to "reaper_sws-i386.dylib"
set sws_python to "sws_python32.py"
Expand Down
2 changes: 1 addition & 1 deletion vendor/WDL
Submodule WDL updated 51 files
+9 −6 WDL/dirscan.h
+9 −0 WDL/eel2/Makefile
+5 −0 WDL/eel2/eel_import.h
+7 −5 WDL/eel2/eel_lice.h
+15 −0 WDL/eel2/eel_strings.h
+2 −1 WDL/eel2/nseel-compiler.c
+1 −7 WDL/filebrowse.cpp
+23 −11 WDL/filename.h
+6 −3 WDL/fileread.h
+25 −7 WDL/filewrite.h
+14 −8 WDL/jnetlib/connection.cpp
+1 −0 WDL/jnetlib/netinc.h
+5 −4 WDL/jnetlib/webserver.cpp
+0 −1 WDL/lice/lice_palette.cpp
+2 −0 WDL/lice/test/Makefile
+1 −0 WDL/localize/localize.cpp
+4 −2 WDL/projectcontext.cpp
+10 −5 WDL/rpool.h
+2 −0 WDL/setthreadname.h
+8 −0 WDL/swell/Makefile
+1 −1 WDL/swell/mac_resgen.php
+ WDL/swell/sample_project/test_UTF16LE.rc
+0 −115 WDL/swell/sample_project/test_UTF8_LF.rc
+8 −3 WDL/swell/swell-dlg-generic.cpp
+210 −41 WDL/swell/swell-dlg.mm
+5 −3 WDL/swell/swell-dlggen.h
+3 −7 WDL/swell/swell-functions.h
+5 −0 WDL/swell/swell-gdi-generic.cpp
+13 −43 WDL/swell/swell-gdi-internalpool.h
+47 −100 WDL/swell/swell-gdi-lice.cpp
+67 −19 WDL/swell/swell-gdi.mm
+143 −78 WDL/swell/swell-generic-gdk.cpp
+10 −1 WDL/swell/swell-generic-headless.cpp
+56 −7 WDL/swell/swell-internal.h
+24 −19 WDL/swell/swell-menu-generic.cpp
+23 −14 WDL/swell/swell-menu.mm
+68 −24 WDL/swell/swell-miscdlg-generic.cpp
+77 −37 WDL/swell/swell-miscdlg.mm
+35 −2 WDL/swell/swell-types.h
+219 −135 WDL/swell/swell-wnd-generic.cpp
+519 −231 WDL/swell/swell-wnd.mm
+42 −35 WDL/swell/swell.cpp
+12 −0 WDL/wdlcstring.h
+1 −0 WDL/wdltypes.h
+1 −1 WDL/win32_utf8.c
+6 −0 WDL/win32_utf8.h
+34 −18 WDL/wingui/virtwnd-controls.h
+415 −316 WDL/wingui/virtwnd-listbox.cpp
+29 −0 WDL/wingui/virtwnd-nsaccessibility.mm
+1 −1 WDL/wingui/virtwnd.cpp
+1 −1 WDL/xmlparse.h

0 comments on commit eea2df6

Please sign in to comment.