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
|
||||
@@ -1 +1,2 @@
|
||||
headers = MessageChannel.h
|
||||
headerFilter = MessageChannel.h
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
headers = stdio.h stdlib.h string.h
|
||||
compilerOpts = -D_POSIX_SOURCE
|
||||
excludedFunctions =
|
||||
excludeDependentModules.osx = true
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
headers = git2.h
|
||||
headers = git2.h time.h
|
||||
linkerOpts = -lgit2
|
||||
excludedFunctions =
|
||||
headerFilter = git2/** time.h
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
headers = gtk/gtk.h
|
||||
headerFilter = gtk/* gobject/* gio/*
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
headers = curl/curl.h
|
||||
excludedFunctions = zopen pfctlinput
|
||||
headerFilter = curl/*
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
headers =
|
||||
headers.osx = GLUT/glut.h
|
||||
headers.osx = OpenGL/gl.h OpenGL/glu.h GLUT/glut.h
|
||||
headers.linux = GL/glut.h
|
||||
compilerOpts =
|
||||
compilerOpts.osx = -framework OpenGL -framework GLUT
|
||||
compilerOpts.linux = -I/usr/include
|
||||
excludeDependentModules.osx = true
|
||||
|
||||
@@ -1,5 +1,2 @@
|
||||
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
|
||||
headers = sys/socket.h netdb.h stdio.h string.h unistd.h stdlib.h netinet/in.h
|
||||
excludeDependentModules.osx = true
|
||||
|
||||
@@ -1,12 +1,8 @@
|
||||
headers = SDL.h stdio.h string.h unistd.h stdlib.h time.h
|
||||
excludedFunctions = _IO_flockfile _IO_funlockfile _IO_ftrylockfile \
|
||||
_IO_cleanup_region_start _IO_cleanup_region_end \
|
||||
_mm_stream_si32 _mm_stream_si64 \
|
||||
_cvtsh_ss __frexp __modf __nan __remquo __frexpf __modff __nanf __remquof \
|
||||
__inf __inff \
|
||||
SDL_PointInRect SDL_RectEmpty SDL_RectEquals
|
||||
headers = SDL.h stdlib.h time.h
|
||||
entryPoint = SDL_main
|
||||
|
||||
headerFilter = SDL* stdlib.h time.h
|
||||
|
||||
compilerOpts = -D_POSIX_SOURCE
|
||||
compilerOpts.osx =
|
||||
compilerOpts.linux = -D_REENTRANT
|
||||
|
||||
Reference in New Issue
Block a user