Skip to content

Commit 6c04001

Browse files
authored
Bump version to 6.5.1 and enable apple-generic versioning (#216)
1 parent e970392 commit 6c04001

5 files changed

Lines changed: 15 additions & 10 deletions

File tree

‎Configs/OpenAttributeGraph.xcconfig‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,9 @@ SKIP_INSTALL = NO
3434
// MARK: - Framework
3535

3636
GENERATE_INFOPLIST_FILE = YES
37-
CURRENT_PROJECT_VERSION = 1
37+
CURRENT_PROJECT_VERSION = 6.5.1
3838
MARKETING_VERSION = 1.0
39-
// OAGVersion.c defines OpenAttributeGraphVersionNumber/String manually,
40-
// so disable Xcode's auto-generated version object to avoid duplicate symbols.
41-
// VERSIONING_SYSTEM = apple-generic
39+
VERSIONING_SYSTEM = apple-generic
4240
DYLIB_COMPATIBILITY_VERSION = 1
4341
DYLIB_CURRENT_VERSION = 1
4442
DYLIB_INSTALL_NAME_BASE = @rpath

‎Package.resolved‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Package.swift‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ if libraryEvolutionCondition {
212212
// Either set OPENATTRIBUTEGRAPH_LIBRARY_EVOLUTION=0 or add `-Xswiftc -no-verify-emitted-module-interface` after `swift build`
213213
sharedSwiftSettings.append(.unsafeFlags(["-enable-library-evolution", "-no-verify-emitted-module-interface"]))
214214
}
215-
if !compatibilityTestCondition {
215+
if !(compatibilityTestCondition && buildForDarwinPlatform) {
216216
sharedCSettings.append(.define("OPENATTRIBUTEGRAPH"))
217217
sharedCxxSettings.append(.define("OPENATTRIBUTEGRAPH"))
218218
sharedSwiftSettings.append(.define("OPENATTRIBUTEGRAPH"))
@@ -358,7 +358,7 @@ let openAttributeGraphCompatibilityTestsTarget = Target.testTarget(
358358
name: "OpenAttributeGraphCompatibilityTests",
359359
dependencies: [
360360
.product(name: "Numerics", package: "swift-numerics"),
361-
] + (compatibilityTestCondition ? [] : [.target(name: openAttributeGraphTarget.name)]),
361+
],
362362
exclude: ["README.md"],
363363
cSettings: sharedCSettings,
364364
cxxSettings: sharedCxxSettings,
@@ -470,6 +470,9 @@ if computeCondition {
470470
setupDPFDependency()
471471
openAttributeGraphCompatibilityTestsTarget.addAGSettings()
472472
} else {
473+
openAttributeGraphCompatibilityTestsTarget.dependencies.append(
474+
.target(name: openAttributeGraphTarget.name)
475+
)
473476
package.targets += [
474477
utilitiesTestsTarget,
475478
openAttributeGraphCxxTestsTarget,

‎Sources/OpenAttributeGraphCxx/Version/OAGVersion.c‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,15 @@
66
#include <OpenAttributeGraph/OAGVersion.h>
77

88
#if OPENATTRIBUTEGRAPH_RELEASE == OPENATTRIBUTEGRAPH_RELEASE_2024
9-
double OpenAttributeGraphVersionNumber __attribute__ ((used)) = (double)6.0;
10-
const unsigned char OpenAttributeGraphVersionString[] __attribute__ ((used)) = "@(#)PROAGRAM:OpenAttributeGraph PROJECT:OpenAttributeGraph-6.0.87\n";
9+
#if SWIFT_PACKAGE
10+
double OpenAttributeGraphVersionNumber __attribute__ ((used)) = (double)6.5;
11+
const unsigned char OpenAttributeGraphVersionString[] __attribute__ ((used)) = "@(#)PROAGRAM:OpenAttributeGraph PROJECT:OpenAttributeGraph-6.5.1\n";
12+
#endif
1113
const uint64_t OAGVersion = 0x2001e;
1214
#elif OPENATTRIBUTEGRAPH_RELEASE == OPENATTRIBUTEGRAPH_RELEASE_2021
15+
#if SWIFT_PACKAGE
1316
double OpenAttributeGraphVersionNumber __attribute__ ((used)) = (double)3.2;
1417
const unsigned char OpenAttributeGraphVersionString[] __attribute__ ((used)) = "@(#)PROAGRAM:OpenAttributeGraph PROJECT:OpenAttributeGraph-3.2.1\n";
18+
#endif
1519
const uint64_t OAGVersion = 0x20014;
1620
#endif

‎Tests/OpenAttributeGraphCompatibilityTests/VersionCompatibilityTests.swift‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ struct VersionTests {
1616
#expect(OAGVersion == 0x20014)
1717
confirm()
1818
case OPENATTRIBUTEGRAPH_RELEASE_2024:
19-
#expect(OpenAttributeGraphVersionNumber.isApproximatelyEqual(to: 6.0))
19+
#expect(OpenAttributeGraphVersionNumber.isApproximatelyEqual(to: 6.5))
2020
#expect(OAGVersion == 0x2001e)
2121
confirm()
2222
default:

0 commit comments

Comments
 (0)