samples: Update comments in the tetris gradle build

This commit is contained in:
Ilya Matveev
2017-04-03 13:59:33 +07:00
committed by ilmat192
parent 7b0e70d550
commit 9a07fd322d
+4 -10
View File
@@ -1,8 +1,3 @@
/**
* Use `./gradlew build<target platform>` to build the project.
* e.g. ./gradlew buildMacbook
*/
buildscript { buildscript {
repositories { repositories {
mavenCentral() mavenCentral()
@@ -34,15 +29,13 @@ konanInterop {
sdlIphone { sdlIphone {
defFile 'sdl.def' defFile 'sdl.def'
includeDirs '../../dist/dependencies/target-sysroot-2-darwin-ios/System/Library/Frameworks/SDL2.framework/Headers' includeDirs "${project.property("konan.home")}/dependencies/target-sysroot-2-darwin-ios/System/Library/Frameworks/SDL2.framework/Headers"
includeDirs '../../dependencies/target-sysroot-2-darwin-ios/System/Library/Frameworks/SDL2.framework/Headers'
target 'iphone' target 'iphone'
} }
sdlRaspberry { sdlRaspberry {
defFile 'sdl.def' defFile 'sdl.def'
includeDirs '../../dist/dependencies/target-sysroot-1-raspberrypi/usr/include/SDL2' includeDirs "${project.property("konan.home")}/dependencies/target-sysroot-1-raspberrypi/usr/include/SDL2"
includeDirs '../../dependencies/target-sysroot-1-raspberrypi/usr/include/SDL2'
target 'raspberrypi' target 'raspberrypi'
} }
} }
@@ -51,7 +44,8 @@ konanArtifacts {
TetrisMacbook { TetrisMacbook {
inputFiles project.file('Tetris.kt') inputFiles project.file('Tetris.kt')
useInterop 'sdlMacbook' useInterop 'sdlMacbook'
linkerOpts "-F ${System.getProperty("user.home")}/Library/Frameworks -framework SDL2 -L/usr/local/lib -lSDL2 -F /Library/Frameworks -framework SDL2 -L/opt/local/lib" linkerOpts "-F ${System.getProperty("user.home")}/Library/Frameworks -F /Library/Frameworks -framework SDL2 -L/usr/local/lib -L/opt/local/lib -lSDL2"
// 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" //linkerOpts "-L/opt/local/lib -L/usr/local/lib -lSDL2"
target 'macbook' target 'macbook'
} }