Skip to content

Commit 8411bbf

Browse files
simlaygoddessfreya
authored andcommitted
Added an xcode project for an ios build (rust-windowing#1233)
1 parent 1f6af25 commit 8411bbf

File tree

17 files changed

+573
-0
lines changed

17 files changed

+573
-0
lines changed

.travis.yml

+9
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,15 @@ matrix:
4242
os: osx
4343
rust: stable
4444

45+
# Xcode
46+
- env: TARGET=x86_64-apple-ios
47+
rust: stable
48+
os: osx
49+
osx_image: xcode11.2
50+
xcode_destination: platform=iOS Simulator,name=iPhone 11 Pro,OS=13.2
51+
script:
52+
- make -C glutin_examples/ios-example ci
53+
4554
addons:
4655
apt:
4756
packages:

Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ members = [
33
"glutin",
44
"glutin_lighter",
55
"glutin_examples",
6+
"glutin_examples/ios-example/rust",
67
"glutin_egl_sys",
78
"glutin_glx_sys",
89
"glutin_wgl_sys",
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
build
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,343 @@
1+
// !$*UTF8*$!
2+
{
3+
archiveVersion = 1;
4+
classes = {
5+
};
6+
objectVersion = 50;
7+
objects = {
8+
9+
/* Begin PBXBuildFile section */
10+
96517E7A23733540004181B9 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 96517E7923733540004181B9 /* main.m */; };
11+
96517E8323733807004181B9 /* libglutin_ios_example.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 96517E8223733807004181B9 /* libglutin_ios_example.a */; };
12+
96517E8823733856004181B9 /* OpenGLES.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 96517E8723733856004181B9 /* OpenGLES.framework */; };
13+
96517E8A23733863004181B9 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 96517E8923733863004181B9 /* UIKit.framework */; };
14+
96517E8C237338A2004181B9 /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 96517E8B237338A2004181B9 /* Security.framework */; };
15+
96517E8F237338C4004181B9 /* GLKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 96517E8523733846004181B9 /* GLKit.framework */; };
16+
/* End PBXBuildFile section */
17+
18+
/* Begin PBXFileReference section */
19+
96517E6423733540004181B9 /* GlutinExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = GlutinExample.app; sourceTree = BUILT_PRODUCTS_DIR; };
20+
96517E7823733540004181B9 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
21+
96517E7923733540004181B9 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
22+
96517E81237337FE004181B9 /* glutin_ios_example.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = glutin_ios_example.h; sourceTree = "<group>"; };
23+
96517E8223733807004181B9 /* libglutin_ios_example.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = libglutin_ios_example.a; sourceTree = "<group>"; };
24+
96517E8523733846004181B9 /* GLKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = GLKit.framework; path = System/Library/Frameworks/GLKit.framework; sourceTree = SDKROOT; };
25+
96517E8723733856004181B9 /* OpenGLES.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OpenGLES.framework; path = System/Library/Frameworks/OpenGLES.framework; sourceTree = SDKROOT; };
26+
96517E8923733863004181B9 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
27+
96517E8B237338A2004181B9 /* Security.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Security.framework; path = System/Library/Frameworks/Security.framework; sourceTree = SDKROOT; };
28+
96517E8D237338BB004181B9 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreFoundation.framework; path = System/Library/Frameworks/CoreFoundation.framework; sourceTree = SDKROOT; };
29+
/* End PBXFileReference section */
30+
31+
/* Begin PBXFrameworksBuildPhase section */
32+
96517E6123733540004181B9 /* Frameworks */ = {
33+
isa = PBXFrameworksBuildPhase;
34+
buildActionMask = 2147483647;
35+
files = (
36+
96517E8323733807004181B9 /* libglutin_ios_example.a in Frameworks */,
37+
96517E8A23733863004181B9 /* UIKit.framework in Frameworks */,
38+
96517E8C237338A2004181B9 /* Security.framework in Frameworks */,
39+
96517E8F237338C4004181B9 /* GLKit.framework in Frameworks */,
40+
96517E8823733856004181B9 /* OpenGLES.framework in Frameworks */,
41+
);
42+
runOnlyForDeploymentPostprocessing = 0;
43+
};
44+
/* End PBXFrameworksBuildPhase section */
45+
46+
/* Begin PBXGroup section */
47+
96517E5B23733540004181B9 = {
48+
isa = PBXGroup;
49+
children = (
50+
96517E8023733582004181B9 /* rust */,
51+
96517E6623733540004181B9 /* GlutinExample */,
52+
96517E6523733540004181B9 /* Products */,
53+
96517E8423733846004181B9 /* Frameworks */,
54+
);
55+
sourceTree = "<group>";
56+
};
57+
96517E6523733540004181B9 /* Products */ = {
58+
isa = PBXGroup;
59+
children = (
60+
96517E6423733540004181B9 /* GlutinExample.app */,
61+
);
62+
name = Products;
63+
sourceTree = "<group>";
64+
};
65+
96517E6623733540004181B9 /* GlutinExample */ = {
66+
isa = PBXGroup;
67+
children = (
68+
96517E7823733540004181B9 /* Info.plist */,
69+
96517E7923733540004181B9 /* main.m */,
70+
);
71+
path = GlutinExample;
72+
sourceTree = "<group>";
73+
};
74+
96517E8023733582004181B9 /* rust */ = {
75+
isa = PBXGroup;
76+
children = (
77+
96517E81237337FE004181B9 /* glutin_ios_example.h */,
78+
96517E8223733807004181B9 /* libglutin_ios_example.a */,
79+
);
80+
path = rust;
81+
sourceTree = "<group>";
82+
};
83+
96517E8423733846004181B9 /* Frameworks */ = {
84+
isa = PBXGroup;
85+
children = (
86+
96517E8D237338BB004181B9 /* CoreFoundation.framework */,
87+
96517E8B237338A2004181B9 /* Security.framework */,
88+
96517E8923733863004181B9 /* UIKit.framework */,
89+
96517E8723733856004181B9 /* OpenGLES.framework */,
90+
96517E8523733846004181B9 /* GLKit.framework */,
91+
);
92+
name = Frameworks;
93+
sourceTree = "<group>";
94+
};
95+
/* End PBXGroup section */
96+
97+
/* Begin PBXNativeTarget section */
98+
96517E6323733540004181B9 /* GlutinExample */ = {
99+
isa = PBXNativeTarget;
100+
buildConfigurationList = 96517E7D23733540004181B9 /* Build configuration list for PBXNativeTarget "GlutinExample" */;
101+
buildPhases = (
102+
96517E6023733540004181B9 /* Sources */,
103+
96517E6123733540004181B9 /* Frameworks */,
104+
96517E6223733540004181B9 /* Resources */,
105+
);
106+
buildRules = (
107+
);
108+
dependencies = (
109+
);
110+
name = GlutinExample;
111+
productName = GlutinExample;
112+
productReference = 96517E6423733540004181B9 /* GlutinExample.app */;
113+
productType = "com.apple.product-type.application";
114+
};
115+
/* End PBXNativeTarget section */
116+
117+
/* Begin PBXProject section */
118+
96517E5C23733540004181B9 /* Project object */ = {
119+
isa = PBXProject;
120+
attributes = {
121+
LastUpgradeCheck = 1110;
122+
ORGANIZATIONNAME = "Sebastian Imlay";
123+
TargetAttributes = {
124+
96517E6323733540004181B9 = {
125+
CreatedOnToolsVersion = 11.1;
126+
};
127+
};
128+
};
129+
buildConfigurationList = 96517E5F23733540004181B9 /* Build configuration list for PBXProject "GlutinExample" */;
130+
compatibilityVersion = "Xcode 9.3";
131+
developmentRegion = en;
132+
hasScannedForEncodings = 0;
133+
knownRegions = (
134+
en,
135+
Base,
136+
);
137+
mainGroup = 96517E5B23733540004181B9;
138+
productRefGroup = 96517E6523733540004181B9 /* Products */;
139+
projectDirPath = "";
140+
projectRoot = "";
141+
targets = (
142+
96517E6323733540004181B9 /* GlutinExample */,
143+
);
144+
};
145+
/* End PBXProject section */
146+
147+
/* Begin PBXResourcesBuildPhase section */
148+
96517E6223733540004181B9 /* Resources */ = {
149+
isa = PBXResourcesBuildPhase;
150+
buildActionMask = 2147483647;
151+
files = (
152+
);
153+
runOnlyForDeploymentPostprocessing = 0;
154+
};
155+
/* End PBXResourcesBuildPhase section */
156+
157+
/* Begin PBXSourcesBuildPhase section */
158+
96517E6023733540004181B9 /* Sources */ = {
159+
isa = PBXSourcesBuildPhase;
160+
buildActionMask = 2147483647;
161+
files = (
162+
96517E7A23733540004181B9 /* main.m in Sources */,
163+
);
164+
runOnlyForDeploymentPostprocessing = 0;
165+
};
166+
/* End PBXSourcesBuildPhase section */
167+
168+
/* Begin XCBuildConfiguration section */
169+
96517E7B23733540004181B9 /* Debug */ = {
170+
isa = XCBuildConfiguration;
171+
buildSettings = {
172+
ALWAYS_SEARCH_USER_PATHS = NO;
173+
CLANG_ANALYZER_NONNULL = YES;
174+
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
175+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
176+
CLANG_CXX_LIBRARY = "libc++";
177+
CLANG_ENABLE_MODULES = YES;
178+
CLANG_ENABLE_OBJC_ARC = YES;
179+
CLANG_ENABLE_OBJC_WEAK = YES;
180+
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
181+
CLANG_WARN_BOOL_CONVERSION = YES;
182+
CLANG_WARN_COMMA = YES;
183+
CLANG_WARN_CONSTANT_CONVERSION = YES;
184+
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
185+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
186+
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
187+
CLANG_WARN_EMPTY_BODY = YES;
188+
CLANG_WARN_ENUM_CONVERSION = YES;
189+
CLANG_WARN_INFINITE_RECURSION = YES;
190+
CLANG_WARN_INT_CONVERSION = YES;
191+
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
192+
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
193+
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
194+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
195+
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
196+
CLANG_WARN_STRICT_PROTOTYPES = YES;
197+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
198+
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
199+
CLANG_WARN_UNREACHABLE_CODE = YES;
200+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
201+
COPY_PHASE_STRIP = NO;
202+
DEBUG_INFORMATION_FORMAT = dwarf;
203+
ENABLE_STRICT_OBJC_MSGSEND = YES;
204+
ENABLE_TESTABILITY = YES;
205+
GCC_C_LANGUAGE_STANDARD = gnu11;
206+
GCC_DYNAMIC_NO_PIC = NO;
207+
GCC_NO_COMMON_BLOCKS = YES;
208+
GCC_OPTIMIZATION_LEVEL = 0;
209+
GCC_PREPROCESSOR_DEFINITIONS = (
210+
"DEBUG=1",
211+
"$(inherited)",
212+
);
213+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
214+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
215+
GCC_WARN_UNDECLARED_SELECTOR = YES;
216+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
217+
GCC_WARN_UNUSED_FUNCTION = YES;
218+
GCC_WARN_UNUSED_VARIABLE = YES;
219+
IPHONEOS_DEPLOYMENT_TARGET = 13.1;
220+
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
221+
MTL_FAST_MATH = YES;
222+
ONLY_ACTIVE_ARCH = YES;
223+
SDKROOT = iphoneos;
224+
};
225+
name = Debug;
226+
};
227+
96517E7C23733540004181B9 /* Release */ = {
228+
isa = XCBuildConfiguration;
229+
buildSettings = {
230+
ALWAYS_SEARCH_USER_PATHS = NO;
231+
CLANG_ANALYZER_NONNULL = YES;
232+
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
233+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
234+
CLANG_CXX_LIBRARY = "libc++";
235+
CLANG_ENABLE_MODULES = YES;
236+
CLANG_ENABLE_OBJC_ARC = YES;
237+
CLANG_ENABLE_OBJC_WEAK = YES;
238+
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
239+
CLANG_WARN_BOOL_CONVERSION = YES;
240+
CLANG_WARN_COMMA = YES;
241+
CLANG_WARN_CONSTANT_CONVERSION = YES;
242+
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
243+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
244+
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
245+
CLANG_WARN_EMPTY_BODY = YES;
246+
CLANG_WARN_ENUM_CONVERSION = YES;
247+
CLANG_WARN_INFINITE_RECURSION = YES;
248+
CLANG_WARN_INT_CONVERSION = YES;
249+
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
250+
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
251+
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
252+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
253+
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
254+
CLANG_WARN_STRICT_PROTOTYPES = YES;
255+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
256+
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
257+
CLANG_WARN_UNREACHABLE_CODE = YES;
258+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
259+
COPY_PHASE_STRIP = NO;
260+
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
261+
ENABLE_NS_ASSERTIONS = NO;
262+
ENABLE_STRICT_OBJC_MSGSEND = YES;
263+
GCC_C_LANGUAGE_STANDARD = gnu11;
264+
GCC_NO_COMMON_BLOCKS = YES;
265+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
266+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
267+
GCC_WARN_UNDECLARED_SELECTOR = YES;
268+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
269+
GCC_WARN_UNUSED_FUNCTION = YES;
270+
GCC_WARN_UNUSED_VARIABLE = YES;
271+
IPHONEOS_DEPLOYMENT_TARGET = 13.1;
272+
MTL_ENABLE_DEBUG_INFO = NO;
273+
MTL_FAST_MATH = YES;
274+
SDKROOT = iphoneos;
275+
VALIDATE_PRODUCT = YES;
276+
};
277+
name = Release;
278+
};
279+
96517E7E23733540004181B9 /* Debug */ = {
280+
isa = XCBuildConfiguration;
281+
buildSettings = {
282+
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
283+
CODE_SIGN_STYLE = Automatic;
284+
INFOPLIST_FILE = GlutinExample/Info.plist;
285+
LD_RUNPATH_SEARCH_PATHS = (
286+
"$(inherited)",
287+
"@executable_path/Frameworks",
288+
);
289+
LIBRARY_SEARCH_PATHS = (
290+
"$(inherited)",
291+
"$(PROJECT_DIR)/rust",
292+
);
293+
PRODUCT_BUNDLE_IDENTIFIER = com.glutin.GlutinExample;
294+
PRODUCT_NAME = "$(TARGET_NAME)";
295+
TARGETED_DEVICE_FAMILY = "1,2";
296+
};
297+
name = Debug;
298+
};
299+
96517E7F23733540004181B9 /* Release */ = {
300+
isa = XCBuildConfiguration;
301+
buildSettings = {
302+
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
303+
CODE_SIGN_STYLE = Automatic;
304+
INFOPLIST_FILE = GlutinExample/Info.plist;
305+
LD_RUNPATH_SEARCH_PATHS = (
306+
"$(inherited)",
307+
"@executable_path/Frameworks",
308+
);
309+
LIBRARY_SEARCH_PATHS = (
310+
"$(inherited)",
311+
"$(PROJECT_DIR)/rust",
312+
);
313+
PRODUCT_BUNDLE_IDENTIFIER = com.glutin.GlutinExample;
314+
PRODUCT_NAME = "$(TARGET_NAME)";
315+
TARGETED_DEVICE_FAMILY = "1,2";
316+
};
317+
name = Release;
318+
};
319+
/* End XCBuildConfiguration section */
320+
321+
/* Begin XCConfigurationList section */
322+
96517E5F23733540004181B9 /* Build configuration list for PBXProject "GlutinExample" */ = {
323+
isa = XCConfigurationList;
324+
buildConfigurations = (
325+
96517E7B23733540004181B9 /* Debug */,
326+
96517E7C23733540004181B9 /* Release */,
327+
);
328+
defaultConfigurationIsVisible = 0;
329+
defaultConfigurationName = Release;
330+
};
331+
96517E7D23733540004181B9 /* Build configuration list for PBXNativeTarget "GlutinExample" */ = {
332+
isa = XCConfigurationList;
333+
buildConfigurations = (
334+
96517E7E23733540004181B9 /* Debug */,
335+
96517E7F23733540004181B9 /* Release */,
336+
);
337+
defaultConfigurationIsVisible = 0;
338+
defaultConfigurationName = Release;
339+
};
340+
/* End XCConfigurationList section */
341+
};
342+
rootObject = 96517E5C23733540004181B9 /* Project object */;
343+
}

glutin_examples/ios-example/GlutinExample.xcodeproj/project.xcworkspace/contents.xcworkspacedata

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
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>

0 commit comments

Comments
 (0)