diff --git a/samples/tetris/build.gradle b/samples/tetris/build.gradle index aae0a7a6c7c..0e399881c9b 100644 --- a/samples/tetris/build.gradle +++ b/samples/tetris/build.gradle @@ -14,11 +14,11 @@ buildscript { apply plugin: 'konan' konanInterop { - sdlOSX { + sdlMacbook { defFile 'sdl.def' includeDirs '/Library/Frameworks/SDL2.framework/Headers', "${System.getProperty("user.home")}/Library/Frameworks/SDL2.framework/Headers" - target 'osx' + target 'macbook' } sdlLinux { @@ -27,10 +27,10 @@ konanInterop { target 'linux' } - sdlIOS { + sdlIphone { defFile 'sdl.def' includeDirs "${project.property("konan.home")}/dependencies/target-sysroot-2-darwin-ios/System/Library/Frameworks/SDL2.framework/Headers" - target 'ios' + target 'iphone' } sdlRaspberry { @@ -41,13 +41,13 @@ konanInterop { } konanArtifacts { - TetrisOSX { + TetrisMacbook { inputFiles project.file('Tetris.kt') - useInterop 'sdlOSX' + useInterop 'sdlMacbook' linkerOpts "-F ${System.getProperty("user.home")}/Library/Frameworks -F /Library/Frameworks -framework SDL2" // Use this line instead of the previous one if you've got a 'No SDL-framework' error. //linkerOpts "-L/opt/local/lib -L/usr/local/lib -lSDL2" - target 'osx' + target 'macbook' } TetrisLinux { @@ -58,16 +58,16 @@ konanArtifacts { target 'linux' } - TetrisIOS { + TetrisIphone { inputFiles project.file('Tetris.kt') - useInterop 'sdlIOS' + useInterop 'sdlIphone' linkerOpts '-framework SDL2 -framework AVFoundation -framework CoreGraphics -framework CoreMotion ' + '-framework Foundation -framework GameController -framework AudioToolbox -framework OpenGLES ' + '-framework QuartzCore -framework UIKit' noMain() - target 'ios' + target 'iphone' } TetrisRaspberry {