Skip to content

Commit 0d56d7b

Browse files
committed
Add testnotificaiton to SDLTest.xcodeproj
1 parent 0c2cc8c commit 0d56d7b

2 files changed

Lines changed: 78 additions & 0 deletions

File tree

Xcode/SDLTest/SDLTest.xcodeproj/project.pbxproj

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@
8686
00794E6609D20865003FC8A1 /* sample.wav in CopyFiles */ = {isa = PBXBuildFile; fileRef = 00794E6209D20839003FC8A1 /* sample.wav */; };
8787
00794EF009D23739003FC8A1 /* utf8.txt in CopyFiles */ = {isa = PBXBuildFile; fileRef = 00794E6309D20839003FC8A1 /* utf8.txt */; };
8888
00794EF709D237DE003FC8A1 /* moose.dat in CopyFiles */ = {isa = PBXBuildFile; fileRef = 00794E5E09D20839003FC8A1 /* moose.dat */; };
89+
303856A72F87F7650040E40E /* testnotification.c in Sources */ = {isa = PBXBuildFile; fileRef = 303856A62F87F7650040E40E /* testnotification.c */; };
90+
303856A82F87F9970040E40E /* SDL3.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 003FA643093FFD41000C53B3 /* SDL3.framework */; };
8991
453774A5120915E3002F0F45 /* testshape.c in Sources */ = {isa = PBXBuildFile; fileRef = 453774A4120915E3002F0F45 /* testshape.c */; };
9092
A1A8594E2BC72FC20045DD6C /* testautomation_properties.c in Sources */ = {isa = PBXBuildFile; fileRef = A1A859482BC72FC20045DD6C /* testautomation_properties.c */; };
9193
A1A859502BC72FC20045DD6C /* testautomation_subsystems.c in Sources */ = {isa = PBXBuildFile; fileRef = A1A859492BC72FC20045DD6C /* testautomation_subsystems.c */; };
@@ -1267,6 +1269,8 @@
12671269
092D6D58FFB311A97F000001 /* testthread.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = testthread.c; sourceTree = "<group>"; };
12681270
092D6D6CFFB313437F000001 /* testkeys.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = testkeys.c; sourceTree = "<group>"; };
12691271
092D6D75FFB313BB7F000001 /* testlock.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = testlock.c; sourceTree = "<group>"; };
1272+
303856932F87F68F0040E40E /* testnotification.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = testnotification.app; sourceTree = BUILT_PRODUCTS_DIR; };
1273+
303856A62F87F7650040E40E /* testnotification.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = testnotification.c; sourceTree = "<group>"; };
12701274
4537749212091504002F0F45 /* testshape.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = testshape.app; sourceTree = BUILT_PRODUCTS_DIR; };
12711275
453774A4120915E3002F0F45 /* testshape.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = testshape.c; sourceTree = "<group>"; };
12721276
66E88E8A203B778F0004D44E /* testyuv_cvt.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = testyuv_cvt.c; sourceTree = "<group>"; };
@@ -1512,6 +1516,14 @@
15121516
);
15131517
runOnlyForDeploymentPostprocessing = 0;
15141518
};
1519+
303856902F87F68F0040E40E /* Frameworks */ = {
1520+
isa = PBXFrameworksBuildPhase;
1521+
buildActionMask = 2147483647;
1522+
files = (
1523+
303856A82F87F9970040E40E /* SDL3.framework in Frameworks */,
1524+
);
1525+
runOnlyForDeploymentPostprocessing = 0;
1526+
};
15151527
4537749012091504002F0F45 /* Frameworks */ = {
15161528
isa = PBXFrameworksBuildPhase;
15171529
buildActionMask = 2147483647;
@@ -1795,6 +1807,7 @@
17951807
08FB7795FE84155DC02AAC07 /* Source */ = {
17961808
isa = PBXGroup;
17971809
children = (
1810+
303856A62F87F7650040E40E /* testnotification.c */,
17981811
092D6D10FFB30A2C7F000001 /* checkkeys.c */,
17991812
F399C6492A78929400C86979 /* gamepadutils.c */,
18001813
083E4872006D84C97F000001 /* loopwave.c */,
@@ -1935,6 +1948,7 @@
19351948
F36C34272C0F85DB00991150 /* testcamera.app */,
19361949
F3B7FD6A2D73FC630086D1D0 /* testpen.app */,
19371950
F3DB65E92E9DA90000568044 /* testyuv.app */,
1951+
303856932F87F68F0040E40E /* testnotification.app */,
19381952
);
19391953
name = Products;
19401954
sourceTree = "<group>";
@@ -2272,6 +2286,22 @@
22722286
productReference = 002F346A09CA204F00EBEB88 /* testplatform.app */;
22732287
productType = "com.apple.product-type.application";
22742288
};
2289+
303856922F87F68F0040E40E /* testnotification */ = {
2290+
isa = PBXNativeTarget;
2291+
buildConfigurationList = 303856A32F87F6920040E40E /* Build configuration list for PBXNativeTarget "testnotification" */;
2292+
buildPhases = (
2293+
3038568F2F87F68F0040E40E /* Sources */,
2294+
303856902F87F68F0040E40E /* Frameworks */,
2295+
303856912F87F68F0040E40E /* Resources */,
2296+
);
2297+
buildRules = (
2298+
);
2299+
dependencies = (
2300+
);
2301+
name = testnotification;
2302+
productReference = 303856932F87F68F0040E40E /* testnotification.app */;
2303+
productType = "com.apple.product-type.application";
2304+
};
22752305
4537749112091504002F0F45 /* testshape */ = {
22762306
isa = PBXNativeTarget;
22772307
buildConfigurationList = 4537749A1209150C002F0F45 /* Build configuration list for PBXNativeTarget "testshape" */;
@@ -2991,6 +3021,7 @@
29913021
0017992010743FB700F5D044 /* testwm */,
29923022
F3DB65DC2E9DA90000568044 /* testyuv */,
29933023
BEC567EA0761D90600A33029 /* torturethread */,
3024+
303856922F87F68F0040E40E /* testnotification */,
29943025
);
29953026
};
29963027
/* End PBXProject section */
@@ -3006,6 +3037,13 @@
30063037
/* End PBXReferenceProxy section */
30073038

30083039
/* Begin PBXResourcesBuildPhase section */
3040+
303856912F87F68F0040E40E /* Resources */ = {
3041+
isa = PBXResourcesBuildPhase;
3042+
buildActionMask = 2147483647;
3043+
files = (
3044+
);
3045+
runOnlyForDeploymentPostprocessing = 0;
3046+
};
30093047
F3C17D3828E424B100E1A26D /* Resources */ = {
30103048
isa = PBXResourcesBuildPhase;
30113049
buildActionMask = 2147483647;
@@ -3193,6 +3231,14 @@
31933231
);
31943232
runOnlyForDeploymentPostprocessing = 0;
31953233
};
3234+
3038568F2F87F68F0040E40E /* Sources */ = {
3235+
isa = PBXSourcesBuildPhase;
3236+
buildActionMask = 2147483647;
3237+
files = (
3238+
303856A72F87F7650040E40E /* testnotification.c in Sources */,
3239+
);
3240+
runOnlyForDeploymentPostprocessing = 0;
3241+
};
31963242
4537748F12091504002F0F45 /* Sources */ = {
31973243
isa = PBXSourcesBuildPhase;
31983244
buildActionMask = 2147483647;
@@ -4351,6 +4397,26 @@
43514397
};
43524398
name = Release;
43534399
};
4400+
303856A42F87F6920040E40E /* Debug */ = {
4401+
isa = XCBuildConfiguration;
4402+
buildSettings = {
4403+
CODE_SIGN_IDENTITY = "Apple Development";
4404+
CODE_SIGN_STYLE = Automatic;
4405+
PRODUCT_NAME = testnotification;
4406+
PROVISIONING_PROFILE_SPECIFIER = "";
4407+
};
4408+
name = Debug;
4409+
};
4410+
303856A52F87F6920040E40E /* Release */ = {
4411+
isa = XCBuildConfiguration;
4412+
buildSettings = {
4413+
CODE_SIGN_IDENTITY = "Apple Development";
4414+
CODE_SIGN_STYLE = Automatic;
4415+
PRODUCT_NAME = testnotification;
4416+
PROVISIONING_PROFILE_SPECIFIER = "";
4417+
};
4418+
name = Release;
4419+
};
43544420
4537749712091509002F0F45 /* Debug */ = {
43554421
isa = XCBuildConfiguration;
43564422
buildSettings = {
@@ -5029,6 +5095,15 @@
50295095
defaultConfigurationIsVisible = 0;
50305096
defaultConfigurationName = Debug;
50315097
};
5098+
303856A32F87F6920040E40E /* Build configuration list for PBXNativeTarget "testnotification" */ = {
5099+
isa = XCConfigurationList;
5100+
buildConfigurations = (
5101+
303856A42F87F6920040E40E /* Debug */,
5102+
303856A52F87F6920040E40E /* Release */,
5103+
);
5104+
defaultConfigurationIsVisible = 0;
5105+
defaultConfigurationName = Debug;
5106+
};
50325107
4537749A1209150C002F0F45 /* Build configuration list for PBXNativeTarget "testshape" */ = {
50335108
isa = XCConfigurationList;
50345109
buildConfigurations = (

src/notification/unix/SDL_dbusnotification.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -601,6 +601,9 @@ static const char *GetIconURI()
601601
SDL_strlcpy(icon_uri, "file://", len);
602602
SDL_strlcat(icon_uri, full_path, len);
603603
}
604+
} else {
605+
// If the path can't be retrieved, assume it is the system name of an icon.
606+
icon_uri = SDL_strdup(icon);
604607
}
605608

606609
return icon_uri;

0 commit comments

Comments
 (0)