Skip to content

Commit e7d90b7

Browse files
committed
* ios build dir
1 parent 8267ac7 commit e7d90b7

62 files changed

Lines changed: 6562 additions & 150 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

DemoProject/Assets/Plugins/PureScript/ScriptEngine.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@ namespace PureScript
99
{
1010
public class ScriptEngine
1111
{
12+
#if UNITY_IOS
13+
const string XMONO_LIB = "__Internal";
14+
#else
1215
const string XMONO_LIB = "ScriptEngine";
16+
#endif
1317

1418
[DllImport(XMONO_LIB, CallingConvention = CallingConvention.Cdecl)]
1519
public static extern void SetupMono([In()] [MarshalAs(UnmanagedType.LPStr)]string bundleDir, [In()] [MarshalAs(UnmanagedType.LPStr)] string exeName);

DemoProject/Assets/Plugins/x86_64.meta

Lines changed: 0 additions & 8 deletions
This file was deleted.

ScriptEngine/ScriptEngine.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
// MonoLib.cpp : 定义 DLL 应用程序的导出函数。
1+
// MonoLib.cpp : 定义 DLL 应用程序的导出函数。
22
//
33

4-
#include "main/runtime.h"
5-
#include "main/Mediator.h"
6-
#include <mono/metadata/exception.h>
4+
#include "runtime.h"
5+
#include "Mediator.h"
6+
#include "mono/metadata/exception.h"
77

88
// Macro to put before functions that need to be exposed to C#
99
#ifdef _WIN32
Lines changed: 311 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,311 @@
1+
// !$*UTF8*$!
2+
{
3+
archiveVersion = 1;
4+
classes = {
5+
};
6+
objectVersion = 50;
7+
objects = {
8+
9+
/* Begin PBXBuildFile section */
10+
FD17C11C25E0C90A008C67BE /* ScriptEngine.c in Sources */ = {isa = PBXBuildFile; fileRef = FD17C10725E0C90A008C67BE /* ScriptEngine.c */; };
11+
/* End PBXBuildFile section */
12+
13+
/* Begin PBXCopyFilesBuildPhase section */
14+
FD17C0F325E0C809008C67BE /* CopyFiles */ = {
15+
isa = PBXCopyFilesBuildPhase;
16+
buildActionMask = 2147483647;
17+
dstPath = "include/$(PRODUCT_NAME)";
18+
dstSubfolderSpec = 16;
19+
files = (
20+
);
21+
runOnlyForDeploymentPostprocessing = 0;
22+
};
23+
/* End PBXCopyFilesBuildPhase section */
24+
25+
/* Begin PBXFileReference section */
26+
FD173FC025E25F2E00BD43A7 /* lib */ = {isa = PBXFileReference; lastKnownFileType = folder; path = lib; sourceTree = SOURCE_ROOT; };
27+
FD173FC125E25F4300BD43A7 /* main */ = {isa = PBXFileReference; lastKnownFileType = folder; path = main; sourceTree = SOURCE_ROOT; };
28+
FD17C0F525E0C809008C67BE /* libScriptEngine.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libScriptEngine.a; sourceTree = BUILT_PRODUCTS_DIR; };
29+
FD17C10725E0C90A008C67BE /* ScriptEngine.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = ScriptEngine.c; sourceTree = SOURCE_ROOT; };
30+
/* End PBXFileReference section */
31+
32+
/* Begin PBXFrameworksBuildPhase section */
33+
FD17C0F225E0C809008C67BE /* Frameworks */ = {
34+
isa = PBXFrameworksBuildPhase;
35+
buildActionMask = 2147483647;
36+
files = (
37+
);
38+
runOnlyForDeploymentPostprocessing = 0;
39+
};
40+
/* End PBXFrameworksBuildPhase section */
41+
42+
/* Begin PBXGroup section */
43+
FD17C0EC25E0C809008C67BE = {
44+
isa = PBXGroup;
45+
children = (
46+
FD17C0F725E0C809008C67BE /* ScriptEngine */,
47+
FD17C0F625E0C809008C67BE /* Products */,
48+
);
49+
sourceTree = "<group>";
50+
};
51+
FD17C0F625E0C809008C67BE /* Products */ = {
52+
isa = PBXGroup;
53+
children = (
54+
FD17C0F525E0C809008C67BE /* libScriptEngine.a */,
55+
);
56+
name = Products;
57+
sourceTree = "<group>";
58+
};
59+
FD17C0F725E0C809008C67BE /* ScriptEngine */ = {
60+
isa = PBXGroup;
61+
children = (
62+
FD173FC125E25F4300BD43A7 /* main */,
63+
FD173FC025E25F2E00BD43A7 /* lib */,
64+
FD17C10725E0C90A008C67BE /* ScriptEngine.c */,
65+
);
66+
path = ScriptEngine;
67+
sourceTree = "<group>";
68+
};
69+
/* End PBXGroup section */
70+
71+
/* Begin PBXNativeTarget section */
72+
FD17C0F425E0C809008C67BE /* ScriptEngine */ = {
73+
isa = PBXNativeTarget;
74+
buildConfigurationList = FD17C0FE25E0C809008C67BE /* Build configuration list for PBXNativeTarget "ScriptEngine" */;
75+
buildPhases = (
76+
FD17C0F125E0C809008C67BE /* Sources */,
77+
FD17C0F225E0C809008C67BE /* Frameworks */,
78+
FD17C0F325E0C809008C67BE /* CopyFiles */,
79+
);
80+
buildRules = (
81+
);
82+
dependencies = (
83+
);
84+
name = ScriptEngine;
85+
productName = ScriptEngine;
86+
productReference = FD17C0F525E0C809008C67BE /* libScriptEngine.a */;
87+
productType = "com.apple.product-type.library.static";
88+
};
89+
/* End PBXNativeTarget section */
90+
91+
/* Begin PBXProject section */
92+
FD17C0ED25E0C809008C67BE /* Project object */ = {
93+
isa = PBXProject;
94+
attributes = {
95+
LastUpgradeCheck = 1030;
96+
ORGANIZATIONNAME = long;
97+
TargetAttributes = {
98+
FD17C0F425E0C809008C67BE = {
99+
CreatedOnToolsVersion = 10.3;
100+
};
101+
};
102+
};
103+
buildConfigurationList = FD17C0F025E0C809008C67BE /* Build configuration list for PBXProject "ScriptEngine" */;
104+
compatibilityVersion = "Xcode 9.3";
105+
developmentRegion = en;
106+
hasScannedForEncodings = 0;
107+
knownRegions = (
108+
en,
109+
);
110+
mainGroup = FD17C0EC25E0C809008C67BE;
111+
productRefGroup = FD17C0F625E0C809008C67BE /* Products */;
112+
projectDirPath = "";
113+
projectRoot = "";
114+
targets = (
115+
FD17C0F425E0C809008C67BE /* ScriptEngine */,
116+
);
117+
};
118+
/* End PBXProject section */
119+
120+
/* Begin PBXSourcesBuildPhase section */
121+
FD17C0F125E0C809008C67BE /* Sources */ = {
122+
isa = PBXSourcesBuildPhase;
123+
buildActionMask = 2147483647;
124+
files = (
125+
FD17C11C25E0C90A008C67BE /* ScriptEngine.c in Sources */,
126+
);
127+
runOnlyForDeploymentPostprocessing = 0;
128+
};
129+
/* End PBXSourcesBuildPhase section */
130+
131+
/* Begin XCBuildConfiguration section */
132+
FD17C0FC25E0C809008C67BE /* Debug */ = {
133+
isa = XCBuildConfiguration;
134+
buildSettings = {
135+
ALWAYS_SEARCH_USER_PATHS = NO;
136+
CLANG_ANALYZER_NONNULL = YES;
137+
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
138+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
139+
CLANG_CXX_LIBRARY = "libc++";
140+
CLANG_ENABLE_MODULES = YES;
141+
CLANG_ENABLE_OBJC_ARC = YES;
142+
CLANG_ENABLE_OBJC_WEAK = YES;
143+
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
144+
CLANG_WARN_BOOL_CONVERSION = YES;
145+
CLANG_WARN_COMMA = YES;
146+
CLANG_WARN_CONSTANT_CONVERSION = YES;
147+
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
148+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
149+
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
150+
CLANG_WARN_EMPTY_BODY = YES;
151+
CLANG_WARN_ENUM_CONVERSION = YES;
152+
CLANG_WARN_INFINITE_RECURSION = YES;
153+
CLANG_WARN_INT_CONVERSION = YES;
154+
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
155+
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
156+
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
157+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
158+
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
159+
CLANG_WARN_STRICT_PROTOTYPES = YES;
160+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
161+
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
162+
CLANG_WARN_UNREACHABLE_CODE = YES;
163+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
164+
CODE_SIGN_IDENTITY = "iPhone Developer";
165+
COPY_PHASE_STRIP = NO;
166+
DEBUG_INFORMATION_FORMAT = dwarf;
167+
ENABLE_STRICT_OBJC_MSGSEND = YES;
168+
ENABLE_TESTABILITY = YES;
169+
GCC_C_LANGUAGE_STANDARD = gnu11;
170+
GCC_DYNAMIC_NO_PIC = NO;
171+
GCC_NO_COMMON_BLOCKS = YES;
172+
GCC_OPTIMIZATION_LEVEL = 0;
173+
GCC_PREPROCESSOR_DEFINITIONS = (
174+
"DEBUG=1",
175+
"$(inherited)",
176+
);
177+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
178+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
179+
GCC_WARN_UNDECLARED_SELECTOR = YES;
180+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
181+
GCC_WARN_UNUSED_FUNCTION = YES;
182+
GCC_WARN_UNUSED_VARIABLE = YES;
183+
IPHONEOS_DEPLOYMENT_TARGET = 12.4;
184+
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
185+
MTL_FAST_MATH = YES;
186+
ONLY_ACTIVE_ARCH = YES;
187+
SDKROOT = iphoneos;
188+
};
189+
name = Debug;
190+
};
191+
FD17C0FD25E0C809008C67BE /* Release */ = {
192+
isa = XCBuildConfiguration;
193+
buildSettings = {
194+
ALWAYS_SEARCH_USER_PATHS = NO;
195+
CLANG_ANALYZER_NONNULL = YES;
196+
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
197+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
198+
CLANG_CXX_LIBRARY = "libc++";
199+
CLANG_ENABLE_MODULES = YES;
200+
CLANG_ENABLE_OBJC_ARC = YES;
201+
CLANG_ENABLE_OBJC_WEAK = YES;
202+
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
203+
CLANG_WARN_BOOL_CONVERSION = YES;
204+
CLANG_WARN_COMMA = YES;
205+
CLANG_WARN_CONSTANT_CONVERSION = YES;
206+
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
207+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
208+
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
209+
CLANG_WARN_EMPTY_BODY = YES;
210+
CLANG_WARN_ENUM_CONVERSION = YES;
211+
CLANG_WARN_INFINITE_RECURSION = YES;
212+
CLANG_WARN_INT_CONVERSION = YES;
213+
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
214+
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
215+
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
216+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
217+
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
218+
CLANG_WARN_STRICT_PROTOTYPES = YES;
219+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
220+
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
221+
CLANG_WARN_UNREACHABLE_CODE = YES;
222+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
223+
CODE_SIGN_IDENTITY = "iPhone Developer";
224+
COPY_PHASE_STRIP = NO;
225+
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
226+
ENABLE_NS_ASSERTIONS = NO;
227+
ENABLE_STRICT_OBJC_MSGSEND = YES;
228+
GCC_C_LANGUAGE_STANDARD = gnu11;
229+
GCC_NO_COMMON_BLOCKS = YES;
230+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
231+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
232+
GCC_WARN_UNDECLARED_SELECTOR = YES;
233+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
234+
GCC_WARN_UNUSED_FUNCTION = YES;
235+
GCC_WARN_UNUSED_VARIABLE = YES;
236+
IPHONEOS_DEPLOYMENT_TARGET = 12.4;
237+
MTL_ENABLE_DEBUG_INFO = NO;
238+
MTL_FAST_MATH = YES;
239+
SDKROOT = iphoneos;
240+
VALIDATE_PRODUCT = YES;
241+
};
242+
name = Release;
243+
};
244+
FD17C0FF25E0C809008C67BE /* Debug */ = {
245+
isa = XCBuildConfiguration;
246+
buildSettings = {
247+
CODE_SIGN_STYLE = Automatic;
248+
GCC_PREPROCESSOR_DEFINITIONS = (
249+
DEBUG,
250+
TARGET_OS_IPHONE,
251+
);
252+
HEADER_SEARCH_PATHS = (
253+
"$(SRCROOT)/lib/include",
254+
/Applications/Unity/2019.4.20f1c1/PlaybackEngines/iOSSupport/il2cpp/libil2cpp/include,
255+
);
256+
LIBRARY_SEARCH_PATHS = (
257+
"$(inherited)",
258+
"$(PROJECT_DIR)/lib",
259+
);
260+
OTHER_LDFLAGS = "-ObjC";
261+
PRODUCT_NAME = "$(TARGET_NAME)";
262+
SKIP_INSTALL = YES;
263+
TARGETED_DEVICE_FAMILY = "1,2";
264+
};
265+
name = Debug;
266+
};
267+
FD17C10025E0C809008C67BE /* Release */ = {
268+
isa = XCBuildConfiguration;
269+
buildSettings = {
270+
CODE_SIGN_STYLE = Automatic;
271+
GCC_PREPROCESSOR_DEFINITIONS = TARGET_OS_IPHONE;
272+
HEADER_SEARCH_PATHS = (
273+
"$(SRCROOT)/lib/include",
274+
/Applications/Unity/2019.4.20f1c1/PlaybackEngines/iOSSupport/il2cpp/libil2cpp/include,
275+
);
276+
LIBRARY_SEARCH_PATHS = (
277+
"$(inherited)",
278+
"$(PROJECT_DIR)/lib",
279+
);
280+
OTHER_LDFLAGS = "-ObjC";
281+
PRODUCT_NAME = "$(TARGET_NAME)";
282+
SKIP_INSTALL = YES;
283+
TARGETED_DEVICE_FAMILY = "1,2";
284+
};
285+
name = Release;
286+
};
287+
/* End XCBuildConfiguration section */
288+
289+
/* Begin XCConfigurationList section */
290+
FD17C0F025E0C809008C67BE /* Build configuration list for PBXProject "ScriptEngine" */ = {
291+
isa = XCConfigurationList;
292+
buildConfigurations = (
293+
FD17C0FC25E0C809008C67BE /* Debug */,
294+
FD17C0FD25E0C809008C67BE /* Release */,
295+
);
296+
defaultConfigurationIsVisible = 0;
297+
defaultConfigurationName = Release;
298+
};
299+
FD17C0FE25E0C809008C67BE /* Build configuration list for PBXNativeTarget "ScriptEngine" */ = {
300+
isa = XCConfigurationList;
301+
buildConfigurations = (
302+
FD17C0FF25E0C809008C67BE /* Debug */,
303+
FD17C10025E0C809008C67BE /* Release */,
304+
);
305+
defaultConfigurationIsVisible = 0;
306+
defaultConfigurationName = Release;
307+
};
308+
/* End XCConfigurationList section */
309+
};
310+
rootObject = FD17C0ED25E0C809008C67BE /* Project object */;
311+
}

ScriptEngine/ScriptEngine.xcodeproj/project.xcworkspace/contents.xcworkspacedata

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>IDEDidComputeMac32BitWarning</key>
6+
<true/>
7+
</dict>
8+
</plist>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>SchemeUserState</key>
6+
<dict>
7+
<key>ScriptEngine.xcscheme_^#shared#^_</key>
8+
<dict>
9+
<key>orderHint</key>
10+
<integer>0</integer>
11+
</dict>
12+
</dict>
13+
</dict>
14+
</plist>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
#include "../lib/include/runtime.h"
3+
#include "../lib/include/il2cpp_support.h"
4+
#include "../lib/include/Mediator.h"

ScriptEngine/custom/event_binding.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
// auto gengerated !
2-
#include "../custom/event_binding.h"
3-
#include "../main/Mediator.h"
1+
2+
#include "engine_include.h"
3+
#include "event_binding.h"
4+
45

56
void init_event_method(EventMethodDesc* desc, MonoClass *monoklass, Il2CppClass* ilklass, const char* method_name, int param_count, Il2CppMethodPointer hook2)
67
{

0 commit comments

Comments
 (0)