this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

JavaVM stubs

Required for Java for OS X (Apple's distribution)

+368
+2
src/CMakeLists.txt
··· 212 212 ${CMAKE_CURRENT_SOURCE_DIR}/AVFoundation/include 213 213 ${CMAKE_CURRENT_SOURCE_DIR}/CoreAudio/include 214 214 ${CMAKE_CURRENT_SOURCE_DIR}/CoreMedia/include 215 + ${CMAKE_CURRENT_SOURCE_DIR}/JavaVM/include 215 216 ) 216 217 217 218 add_subdirectory(external/libkqueue) ··· 394 395 # Just a stub 395 396 add_subdirectory(WebKit) 396 397 add_subdirectory(OpenGL) 398 + add_subdirectory(JavaVM) 397 399 398 400 # /Applications 399 401 #add_subdirectory(external/TextEdit)
+20
src/JavaVM/CMakeLists.txt
··· 1 + project(JavaVM) 2 + 3 + set(DYLIB_COMPAT_VERSION "1.0.0") 4 + set(DYLIB_CURRENT_VERSION "1.0.0") 5 + 6 + add_framework(JavaVM 7 + FAT 8 + CURRENT_VERSION 9 + VERSION "A" 10 + 11 + SOURCES 12 + src/JavaVM.m 13 + src/NSJavaVirtualMachine.m 14 + src/NSJavaConfiguration.m 15 + 16 + DEPENDENCIES 17 + system 18 + objc 19 + Foundation 20 + )
+59
src/JavaVM/include/JavaVM/JavaVM.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + 21 + #ifndef _JavaVM_H_ 22 + #define _JavaVM_H_ 23 + 24 + #import <Foundation/Foundation.h> 25 + 26 + #import <JavaVM/NSJavaVirtualMachine.h> 27 + #import <JavaVM/NSJavaConfiguration.h> 28 + 29 + void* CheckForInstalledJavaRuntimes(void); 30 + void* JAWT_GetAWT(void); 31 + void* JNI_CreateJavaVM(void); 32 + void* JNI_GetCreatedJavaVMs(void); 33 + void* JNI_GetDefaultJavaVMInitArgs(void); 34 + void* JVMCopyDefaultPrefForTaskAndKey(void); 35 + void* JVMCopyUserPrefForTaskAndKey(void); 36 + void* JVMCreateCompleteJVMListForTask(void); 37 + void* JVMCreateJVMListForTask(void); 38 + void* JVMCreateJVMListForTaskVersionAndArch(void); 39 + void* JVMCreateJVMListForTaskVersionAndArchs(void); 40 + void* JVMCreateJVMListOfCurrentArchitectureForTask(void); 41 + void* JVMCreateLatestJVMInfo(void); 42 + void* JVMSaveUserPrefForTaskAndKey(void); 43 + void* JVMSetPreferredOrderForTask(void); 44 + void* _NSJVMAddressOfFunctionInLibrary(void); 45 + void* _NSJVMAddressOfFunctionInLibraryNamed(void); 46 + void* _NSJVMInitializeObjCRuntimeInLibraryNamed(void); 47 + void* _NSJVMJNI_CreateJavaVM(void); 48 + void* _NSJVMJNI_GetCreatedJavaVMs(void); 49 + void* _NSJVMJNI_GetDefaultJavaVMInitArgs(void); 50 + void* _NSJVMJavaVMLibraryName(void); 51 + void* _NSJVMLoadLibrary(void); 52 + void* _NSJVM_IHashCodeFunction(void); 53 + void* _NSJVM_IsJVMLoaded(void); 54 + void* _NSLoadJavaVirtualMachine(void); 55 + void* scheduleUpdateSharing(void); 56 + void* scheduleUpdateSharingUninstalled(void); 57 + void* updateSharing(void); 58 + 59 + #endif
+24
src/JavaVM/include/JavaVM/NSJavaConfiguration.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + #include <Foundation/Foundation.h> 21 + 22 + @interface NSJavaConfiguration : NSObject 23 + 24 + @end
+24
src/JavaVM/include/JavaVM/NSJavaVirtualMachine.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + #include <Foundation/Foundation.h> 21 + 22 + @interface NSJavaVirtualMachine : NSObject 23 + 24 + @end
+175
src/JavaVM/src/JavaVM.m
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + 21 + #include <JavaVM/JavaVM.h> 22 + #include <stdlib.h> 23 + #include <stdio.h> 24 + 25 + static int verbose = 0; 26 + 27 + __attribute__((constructor)) 28 + static void initme(void) { 29 + verbose = getenv("STUB_VERBOSE") != NULL; 30 + } 31 + 32 + void* CheckForInstalledJavaRuntimes(void) { 33 + if (verbose) puts("STUB: CheckForInstalledJavaRuntimes called"); 34 + return NULL; 35 + } 36 + 37 + void* JAWT_GetAWT(void) { 38 + if (verbose) puts("STUB: JAWT_GetAWT called"); 39 + return NULL; 40 + } 41 + 42 + void* JNI_CreateJavaVM(void) { 43 + if (verbose) puts("STUB: JNI_CreateJavaVM called"); 44 + return NULL; 45 + } 46 + 47 + void* JNI_GetCreatedJavaVMs(void) { 48 + if (verbose) puts("STUB: JNI_GetCreatedJavaVMs called"); 49 + return NULL; 50 + } 51 + 52 + void* JNI_GetDefaultJavaVMInitArgs(void) { 53 + if (verbose) puts("STUB: JNI_GetDefaultJavaVMInitArgs called"); 54 + return NULL; 55 + } 56 + 57 + void* JVMCopyDefaultPrefForTaskAndKey(void) { 58 + if (verbose) puts("STUB: JVMCopyDefaultPrefForTaskAndKey called"); 59 + return NULL; 60 + } 61 + 62 + void* JVMCopyUserPrefForTaskAndKey(void) { 63 + if (verbose) puts("STUB: JVMCopyUserPrefForTaskAndKey called"); 64 + return NULL; 65 + } 66 + 67 + void* JVMCreateCompleteJVMListForTask(void) { 68 + if (verbose) puts("STUB: JVMCreateCompleteJVMListForTask called"); 69 + return NULL; 70 + } 71 + 72 + void* JVMCreateJVMListForTask(void) { 73 + if (verbose) puts("STUB: JVMCreateJVMListForTask called"); 74 + return NULL; 75 + } 76 + 77 + void* JVMCreateJVMListForTaskVersionAndArch(void) { 78 + if (verbose) puts("STUB: JVMCreateJVMListForTaskVersionAndArch called"); 79 + return NULL; 80 + } 81 + 82 + void* JVMCreateJVMListForTaskVersionAndArchs(void) { 83 + if (verbose) puts("STUB: JVMCreateJVMListForTaskVersionAndArchs called"); 84 + return NULL; 85 + } 86 + 87 + void* JVMCreateJVMListOfCurrentArchitectureForTask(void) { 88 + if (verbose) puts("STUB: JVMCreateJVMListOfCurrentArchitectureForTask called"); 89 + return NULL; 90 + } 91 + 92 + void* JVMCreateLatestJVMInfo(void) { 93 + if (verbose) puts("STUB: JVMCreateLatestJVMInfo called"); 94 + return NULL; 95 + } 96 + 97 + void* JVMSaveUserPrefForTaskAndKey(void) { 98 + if (verbose) puts("STUB: JVMSaveUserPrefForTaskAndKey called"); 99 + return NULL; 100 + } 101 + 102 + void* JVMSetPreferredOrderForTask(void) { 103 + if (verbose) puts("STUB: JVMSetPreferredOrderForTask called"); 104 + return NULL; 105 + } 106 + 107 + void* _NSJVMAddressOfFunctionInLibrary(void) { 108 + if (verbose) puts("STUB: _NSJVMAddressOfFunctionInLibrary called"); 109 + return NULL; 110 + } 111 + 112 + void* _NSJVMAddressOfFunctionInLibraryNamed(void) { 113 + if (verbose) puts("STUB: _NSJVMAddressOfFunctionInLibraryNamed called"); 114 + return NULL; 115 + } 116 + 117 + void* _NSJVMInitializeObjCRuntimeInLibraryNamed(void) { 118 + if (verbose) puts("STUB: _NSJVMInitializeObjCRuntimeInLibraryNamed called"); 119 + return NULL; 120 + } 121 + 122 + void* _NSJVMJNI_CreateJavaVM(void) { 123 + if (verbose) puts("STUB: _NSJVMJNI_CreateJavaVM called"); 124 + return NULL; 125 + } 126 + 127 + void* _NSJVMJNI_GetCreatedJavaVMs(void) { 128 + if (verbose) puts("STUB: _NSJVMJNI_GetCreatedJavaVMs called"); 129 + return NULL; 130 + } 131 + 132 + void* _NSJVMJNI_GetDefaultJavaVMInitArgs(void) { 133 + if (verbose) puts("STUB: _NSJVMJNI_GetDefaultJavaVMInitArgs called"); 134 + return NULL; 135 + } 136 + 137 + void* _NSJVMJavaVMLibraryName(void) { 138 + if (verbose) puts("STUB: _NSJVMJavaVMLibraryName called"); 139 + return NULL; 140 + } 141 + 142 + void* _NSJVMLoadLibrary(void) { 143 + if (verbose) puts("STUB: _NSJVMLoadLibrary called"); 144 + return NULL; 145 + } 146 + 147 + void* _NSJVM_IHashCodeFunction(void) { 148 + if (verbose) puts("STUB: _NSJVM_IHashCodeFunction called"); 149 + return NULL; 150 + } 151 + 152 + void* _NSJVM_IsJVMLoaded(void) { 153 + if (verbose) puts("STUB: _NSJVM_IsJVMLoaded called"); 154 + return NULL; 155 + } 156 + 157 + void* _NSLoadJavaVirtualMachine(void) { 158 + if (verbose) puts("STUB: _NSLoadJavaVirtualMachine called"); 159 + return NULL; 160 + } 161 + 162 + void* scheduleUpdateSharing(void) { 163 + if (verbose) puts("STUB: scheduleUpdateSharing called"); 164 + return NULL; 165 + } 166 + 167 + void* scheduleUpdateSharingUninstalled(void) { 168 + if (verbose) puts("STUB: scheduleUpdateSharingUninstalled called"); 169 + return NULL; 170 + } 171 + 172 + void* updateSharing(void) { 173 + if (verbose) puts("STUB: updateSharing called"); 174 + return NULL; 175 + }
+32
src/JavaVM/src/NSJavaConfiguration.m
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + #import <JavaVM/NSJavaConfiguration.h> 21 + 22 + @implementation NSJavaConfiguration 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector { 25 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 26 + } 27 + 28 + - (void)forwardInvocation:(NSInvocation *)anInvocation { 29 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 30 + } 31 + 32 + @end
+32
src/JavaVM/src/NSJavaVirtualMachine.m
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + #import <JavaVM/NSJavaVirtualMachine.h> 21 + 22 + @implementation NSJavaVirtualMachine 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector { 25 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 26 + } 27 + 28 + - (void)forwardInvocation:(NSInvocation *)anInvocation { 29 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 30 + } 31 + 32 + @end