Skip to content

Commit

Permalink
[tests][teaspot opengl] fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
vvlevchenko committed Oct 19, 2017
1 parent e1cfb21 commit d470df5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
9 changes: 1 addition & 8 deletions backend.native/tests/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2097,12 +2097,6 @@ kotlinNativeInterop {
}

if (isMac()) {
opengl {
defFile '../../samples/opengl/src/main/c_interop/opengl.def'
linkerOpts '-framework', 'OpenGL', '-framework', 'GLUT'
flavor 'native'
}

objcSmoke {
defFile 'interop/objc/objcSmoke.def'
headers "$projectDir/interop/objc/smoke.h"
Expand Down Expand Up @@ -2190,11 +2184,10 @@ task interop_echo_server(type: RunInteropKonanTest) {
}

if (isMac()) {
task interop_opengl_teapot(type: RunInteropKonanTest) {
task interop_opengl_teapot(type: RunKonanTest) {
disabled = (project.testTarget == 'wasm32') // No interop for wasm yet.
run = false
source = "interop/basics/opengl_teapot.kt"
interop = 'opengl'
}

task interop_objc_smoke(type: RunInteropKonanTest) {
Expand Down
4 changes: 3 additions & 1 deletion backend.native/tests/interop/basics/opengl_teapot.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import kotlinx.cinterop.*
import opengl.*
import platform.GLUT.*
import platform.OpenGL.*
import platform.OpenGLCommon.*

// Ported from http://openglsamples.sourceforge.net/projects/index.php/blog/index/

Expand Down

0 comments on commit d470df5

Please sign in to comment.