aboutsummaryrefslogtreecommitdiffstats
path: root/make/dynlink-windows.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'make/dynlink-windows.cfg')
-rwxr-xr-xmake/dynlink-windows.cfg25
1 files changed, 25 insertions, 0 deletions
diff --git a/make/dynlink-windows.cfg b/make/dynlink-windows.cfg
new file mode 100755
index 0000000..871326e
--- /dev/null
+++ b/make/dynlink-windows.cfg
@@ -0,0 +1,25 @@
+Style AllStatic
+JavaClass WindowsDynamicLinkerImpl
+Package com.sun.gluegen.runtime
+Implements WindowsDynamicLinkerImpl DynamicLinker
+JavaOutputDir ../src/java
+NativeOutputDir ../src/native/windows
+HierarchicalNativeOutput false
+
+IncludeAs CustomJavaCode WindowsDynamicLinkerImpl dynlink-windows-CustomJavaCode.java
+CustomCCode #include <windows.h>
+CustomCCode /* This typedef is only needed for VC6 */
+CustomCCode #if _MSC_VER <= 1200
+CustomCCode typedef int intptr_t;
+CustomCCode #endif
+
+ArgumentIsString LoadLibraryA 0
+ArgumentIsString GetProcAddress 1
+Opaque long HANDLE
+Opaque long PROC
+
+# Hide the platform-specific functions
+AccessControl GetLastError PRIVATE
+AccessControl LoadLibraryA PRIVATE
+AccessControl GetProcAddress PRIVATE
+AccessControl FreeLibrary PRIVATE