Apply interop filtering
Also actualize .def files
This commit is contained in:
committed by
SvyatoslavScherbina
parent
c5495e744e
commit
8a0b494c2e
@@ -1,6 +1,8 @@
|
||||
headers = llvm-c/Core.h llvm-c/ExecutionEngine.h llvm-c/Target.h llvm-c/Analysis.h llvm-c/BitWriter.h \
|
||||
llvm-c/BitReader.h llvm-c/Linker.h DebugInfoC.h
|
||||
|
||||
headerFilter = llvm-c/* DebugInfoC.h
|
||||
|
||||
compilerOpts = -std=c99 -fPIC \
|
||||
-Wall -W -Wno-unused-parameter -Wwrite-strings -Wmissing-field-initializers \
|
||||
-pedantic -Wno-long-long -Wcovered-switch-default -Wdelete-non-virtual-dtor \
|
||||
|
||||
@@ -1633,21 +1633,18 @@ kotlinNativeInterop {
|
||||
cstdio {
|
||||
defFile 'interop/basics/cstdio.def'
|
||||
flavor 'native'
|
||||
compilerOpts '-D_POSIX_SOURCE' // Exclude Darwin extensions causing link errors.
|
||||
}
|
||||
|
||||
sockets {
|
||||
defFile 'interop/basics/sockets.def'
|
||||
defFile '../../samples/socket/sockets.def'
|
||||
flavor 'native'
|
||||
}
|
||||
|
||||
if (isMac()) {
|
||||
opengl {
|
||||
flavor 'native'
|
||||
compilerOpts '-framework', 'OpenGL', '-framework', 'GLUT'
|
||||
defFile '../../samples/opengl/opengl.def'
|
||||
linkerOpts '-framework', 'OpenGL', '-framework', 'GLUT'
|
||||
pkg 'opengl'
|
||||
headers 'GLUT/glut.h'
|
||||
flavor 'native'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,2 +1 @@
|
||||
headers = stdio.h
|
||||
excludedFunctions = _IO_flockfile _IO_funlockfile _IO_ftrylockfile _IO_cleanup_region_start _IO_cleanup_region_end
|
||||
headers = stdio.h
|
||||
@@ -1,5 +0,0 @@
|
||||
headers = sys/socket.h netdb.h stdio.h string.h unistd.h stdlib.h arpa/inet.h
|
||||
excludedFunctions = _IO_flockfile _IO_funlockfile _IO_ftrylockfile _IO_cleanup_region_start _IO_cleanup_region_end \
|
||||
mkstemp_dprotected_np
|
||||
|
||||
compilerOpts = -D_POSIX_SOURCE
|
||||
Reference in New Issue
Block a user