fixing iOS builds with new SKDs

This commit is contained in:
Stefan Csomor
2018-09-22 17:30:37 +02:00
parent 6c1b2b23cf
commit e768046774
5 changed files with 21 additions and 9 deletions

View File

@@ -2834,7 +2834,9 @@
/* Begin PBXProject section */ /* Begin PBXProject section */
19367367C9323490BB936F06 /* Project object */ = { 19367367C9323490BB936F06 /* Project object */ = {
isa = PBXProject; isa = PBXProject;
buildConfigurationList = A66311F47C8832F6A58105B6 /* Build configuration list for PBXProject "wxiphone" */; attributes = {
};
buildConfigurationList = A66311F47C8832F6A58105B6 /* Build configuration list for PBXProject "wxiPhone" */;
compatibilityVersion = "Xcode 3.2"; compatibilityVersion = "Xcode 3.2";
developmentRegion = English; developmentRegion = English;
hasScannedForEncodings = 1; hasScannedForEncodings = 1;
@@ -3737,6 +3739,7 @@
isa = XCBuildConfiguration; isa = XCBuildConfiguration;
baseConfigurationReference = 477B609FA2373FB58F4C8768 /* wxiphone.xcconfig */; baseConfigurationReference = 477B609FA2373FB58F4C8768 /* wxiphone.xcconfig */;
buildSettings = { buildSettings = {
ARCHS = "$(ARCHS_STANDARD)";
GCC_PREPROCESSOR_DEFINITIONS = ( GCC_PREPROCESSOR_DEFINITIONS = (
"$(GCC_PREPROCESSOR_DEFINITIONS)", "$(GCC_PREPROCESSOR_DEFINITIONS)",
"wxUSE_BASE=1", "wxUSE_BASE=1",
@@ -3756,6 +3759,7 @@
isa = XCBuildConfiguration; isa = XCBuildConfiguration;
baseConfigurationReference = 477B609FA2373FB58F4C8768 /* wxiphone.xcconfig */; baseConfigurationReference = 477B609FA2373FB58F4C8768 /* wxiphone.xcconfig */;
buildSettings = { buildSettings = {
ARCHS = "$(ARCHS_STANDARD)";
GCC_PREPROCESSOR_DEFINITIONS = ( GCC_PREPROCESSOR_DEFINITIONS = (
"$(GCC_PREPROCESSOR_DEFINITIONS)", "$(GCC_PREPROCESSOR_DEFINITIONS)",
"wxUSE_BASE=1", "wxUSE_BASE=1",
@@ -3783,7 +3787,7 @@
defaultConfigurationIsVisible = 0; defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release; defaultConfigurationName = Release;
}; };
A66311F47C8832F6A58105B6 /* Build configuration list for PBXProject "wxiphone" */ = { A66311F47C8832F6A58105B6 /* Build configuration list for PBXProject "wxiPhone" */ = {
isa = XCConfigurationList; isa = XCConfigurationList;
buildConfigurations = ( buildConfigurations = (
55C93151F6053EBCBDD70DF9 /* Debug */, 55C93151F6053EBCBDD70DF9 /* Debug */,

View File

@@ -142,6 +142,8 @@
/* Begin PBXProject section */ /* Begin PBXProject section */
29B97313FDCFA39411CA2CEA /* Project object */ = { 29B97313FDCFA39411CA2CEA /* Project object */ = {
isa = PBXProject; isa = PBXProject;
attributes = {
};
buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "minimal_iphone" */; buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "minimal_iphone" */;
compatibilityVersion = "Xcode 3.1"; compatibilityVersion = "Xcode 3.1";
developmentRegion = English; developmentRegion = English;
@@ -203,6 +205,7 @@
isa = XCBuildConfiguration; isa = XCBuildConfiguration;
baseConfigurationReference = 404BEE0510EC7BF20080E2B8 /* wxiphone.xcconfig */; baseConfigurationReference = 404BEE0510EC7BF20080E2B8 /* wxiphone.xcconfig */;
buildSettings = { buildSettings = {
ARCHS = "$(ARCHS_STANDARD)";
OTHER_LDFLAGS = ""; OTHER_LDFLAGS = "";
PRODUCT_NAME = minimal_iphone; PRODUCT_NAME = minimal_iphone;
}; };
@@ -212,6 +215,7 @@
isa = XCBuildConfiguration; isa = XCBuildConfiguration;
baseConfigurationReference = 404BEE0510EC7BF20080E2B8 /* wxiphone.xcconfig */; baseConfigurationReference = 404BEE0510EC7BF20080E2B8 /* wxiphone.xcconfig */;
buildSettings = { buildSettings = {
ARCHS = "$(ARCHS_STANDARD)";
PRODUCT_NAME = minimal_iphone; PRODUCT_NAME = minimal_iphone;
}; };
name = Release; name = Release;

View File

@@ -476,11 +476,15 @@ wxFont::wxFont(wxOSXSystemFont font)
m_refData = new wxFontRefData(ctfont); m_refData = new wxFontRefData(ctfont);
} }
#if wxOSX_USE_COCOA
wxFont::wxFont(WX_NSFont nsfont) wxFont::wxFont(WX_NSFont nsfont)
{ {
m_refData = new wxFontRefData((CTFontRef)nsfont); m_refData = new wxFontRefData((CTFontRef)nsfont);
} }
#endif
wxFont::wxFont(CTFontRef font) wxFont::wxFont(CTFontRef font)
{ {
m_refData = new wxFontRefData(font); m_refData = new wxFontRefData(font);

View File

@@ -837,7 +837,7 @@ wxMacCoreGraphicsFontData::wxMacCoreGraphicsFontData(wxGraphicsRenderer* rendere
m_ctFont = wxCFRetain(font.OSXGetCTFont()); m_ctFont = wxCFRetain(font.OSXGetCTFont());
m_ctFontAttributes = wxCFRetain(font.OSXGetCTFontAttributes()); m_ctFontAttributes = wxCFRetain(font.OSXGetCTFontAttributes());
#if wxOSX_USE_IPHONE #if wxOSX_USE_IPHONE
m_uiFont = font.OSXGetUIFont(); m_uiFont = wxCFRetain(font.OSXGetUIFont());
#endif #endif
} }

View File

@@ -80,22 +80,22 @@ wxWidgetImplType* wxWidgetImpl::CreateStaticText( wxWindowMac* wxpeer,
wxUILabel* v = [[wxUILabel alloc] initWithFrame:r]; wxUILabel* v = [[wxUILabel alloc] initWithFrame:r];
v.backgroundColor = [UIColor clearColor]; v.backgroundColor = [UIColor clearColor];
UILineBreakMode linebreak = UILineBreakModeWordWrap; NSLineBreakMode linebreak = NSLineBreakByWordWrapping;
if ( style & wxST_ELLIPSIZE_MASK ) if ( style & wxST_ELLIPSIZE_MASK )
{ {
if ( style & wxST_ELLIPSIZE_MIDDLE ) if ( style & wxST_ELLIPSIZE_MIDDLE )
linebreak = UILineBreakModeMiddleTruncation; linebreak = NSLineBreakByTruncatingMiddle;
else if (style & wxST_ELLIPSIZE_END ) else if (style & wxST_ELLIPSIZE_END )
linebreak = UILineBreakModeTailTruncation; linebreak = NSLineBreakByTruncatingTail;
else if (style & wxST_ELLIPSIZE_START ) else if (style & wxST_ELLIPSIZE_START )
linebreak = UILineBreakModeHeadTruncation; linebreak = NSLineBreakByTruncatingHead;
} }
[v setLineBreakMode:linebreak]; [v setLineBreakMode:linebreak];
if (style & wxALIGN_CENTER) if (style & wxALIGN_CENTER)
[v setTextAlignment: UITextAlignmentCenter]; [v setTextAlignment: NSTextAlignmentCenter];
else if (style & wxALIGN_RIGHT) else if (style & wxALIGN_RIGHT)
[v setTextAlignment: UITextAlignmentRight]; [v setTextAlignment: NSTextAlignmentRight];
wxWidgetIPhoneImpl* c = new wxStaticTextIPhoneImpl( wxpeer, v ); wxWidgetIPhoneImpl* c = new wxStaticTextIPhoneImpl( wxpeer, v );
return c; return c;