Skip to content

Commit d4fdffa

Browse files
authored
Change repo name to OpenCoreGraphics (#3)
1 parent 5ce8130 commit d4fdffa

File tree

14 files changed

+56
-56
lines changed

14 files changed

+56
-56
lines changed

.github/workflows/compatibility_tests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ jobs:
1717
xcode-version: "16.4" # Swift 6.1.2
1818
runs-on: ${{ matrix.os }}
1919
env:
20-
OPENGRAPHICS_BUILD_FOR_DARWIN_PLATFORM: 1
21-
OPENGRAPHICS_WERROR: 1
22-
OPENGRAPHICS_COREGRAPHICS: 1
23-
OPENGRAPHICS_LIBRARY_EVOLUTION: 0
20+
OPENCOREGRAPHICS_BUILD_FOR_DARWIN_PLATFORM: 1
21+
OPENCOREGRAPHICS_WERROR: 1
22+
OPENCOREGRAPHICS_COREGRAPHICS: 1
23+
OPENCOREGRAPHICS_LIBRARY_EVOLUTION: 0
2424
GH_TOKEN: ${{ github.token }}
2525
steps:
2626
- uses: actions/checkout@v4

.github/workflows/macos.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ jobs:
1616
xcode-version: [16.4] # Swift 6.1.2
1717
runs-on: ${{ matrix.os }}
1818
env:
19-
OPENGRAPHICS_BUILD_FOR_DARWIN_PLATFORM: 1
20-
OPENGRAPHICS_WERROR: 1
21-
OPENGRAPHICS_COREGRAPHICS: 0
22-
OPENGRAPHICS_LIBRARY_EVOLUTION: 0
19+
OPENCOREGRAPHICS_BUILD_FOR_DARWIN_PLATFORM: 1
20+
OPENCOREGRAPHICS_WERROR: 1
21+
OPENCOREGRAPHICS_COREGRAPHICS: 0
22+
OPENCOREGRAPHICS_LIBRARY_EVOLUTION: 0
2323
GH_TOKEN: ${{ github.token }}
2424
steps:
2525
- uses: actions/checkout@v4
@@ -37,7 +37,7 @@ jobs:
3737
--build-path .build-test-debug
3838
xcrun llvm-cov show \
3939
-instr-profile=.build-test-debug/debug/codecov/default.profdata \
40-
.build-test-debug/debug/OpenGraphicsPackageTests.xctest/Contents/MacOS/OpenGraphicsPackageTests \
40+
.build-test-debug/debug/OpenCoreGraphicsPackageTests.xctest/Contents/MacOS/OpenCoreGraphicsPackageTests \
4141
> coverage.txt
4242
- name: Build and run tests in release mode
4343
run: |

.github/workflows/ubuntu.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ jobs:
1515
swift_version: ["6.1.2"]
1616
runs-on: ubuntu-22.04
1717
env:
18-
OPENGRAPHICS_BUILD_FOR_DARWIN_PLATFORM: 0
19-
OPENGRAPHICS_WERROR: 1
20-
OPENGRAPHICS_COREGRAPHICS: 0
21-
OPENGRAPHICS_LIBRARY_EVOLUTION: 0
18+
OPENCOREGRAPHICS_BUILD_FOR_DARWIN_PLATFORM: 0
19+
OPENCOREGRAPHICS_WERROR: 1
20+
OPENCOREGRAPHICS_COREGRAPHICS: 0
21+
OPENCOREGRAPHICS_LIBRARY_EVOLUTION: 0
2222
container: swift:${{ matrix.swift_version }}-jammy
2323
steps:
2424
- uses: actions/checkout@v4
@@ -33,7 +33,7 @@ jobs:
3333
--build-path .build-test-debug
3434
llvm-cov show \
3535
-instr-profile=.build-test-debug/debug/codecov/default.profdata \
36-
.build-test-debug/debug/OpenGraphicsPackageTests.xctest \
36+
.build-test-debug/debug/OpenCoreGraphicsPackageTests.xctest \
3737
> coverage.txt
3838
- name: Building and running tests in release mode
3939
run: |

Package.swift

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -22,44 +22,44 @@ var sharedSwiftSettings: [SwiftSetting] = [
2222

2323
#if os(macOS)
2424
// NOTE: #if os(macOS) check is not accurate if we are cross compiling for Linux platform. So we add an env key to specify it.
25-
let buildForDarwinPlatform = envEnable("OPENGRAPHICS_BUILD_FOR_DARWIN_PLATFORM", default: true)
25+
let buildForDarwinPlatform = envEnable("OPENCOREGRAPHICS_BUILD_FOR_DARWIN_PLATFORM", default: true)
2626
#else
27-
let buildForDarwinPlatform = envEnable("OPENGRAPHICS_BUILD_FOR_DARWIN_PLATFORM")
27+
let buildForDarwinPlatform = envEnable("OPENCOREGRAPHICS_BUILD_FOR_DARWIN_PLATFORM")
2828
#endif
2929

3030
let isXcodeEnv = Context.environment["__CFBundleIdentifier"] == "com.apple.dt.Xcode"
3131

32-
let development = envEnable("OPENGRAPHICS_DEVELOPMENT")
32+
let development = envEnable("OPENCOREGRAPHICS_DEVELOPMENT")
3333

34-
// MARK: - [env] OPENGRAPHICS_COREGRAPHICS
34+
// MARK: - [env] OPENCOREGRAPHICS_COREGRAPHICS
3535

36-
let coreGraphicsCondition = envEnable("OPENGRAPHICS_COREGRAPHICS", default: buildForDarwinPlatform)
36+
let coreGraphicsCondition = envEnable("OPENCOREGRAPHICS_COREGRAPHICS", default: buildForDarwinPlatform)
3737
if coreGraphicsCondition {
38-
sharedSwiftSettings.append(.define("OPENGRAPHICS_COREGRAPHICS"))
38+
sharedSwiftSettings.append(.define("OPENCOREGRAPHICS_COREGRAPHICS"))
3939
}
4040

41-
// MARK: - [env] OPENGRAPHICS_WERROR
41+
// MARK: - [env] OPENCOREGRAPHICS_WERROR
4242

43-
let warningsAsErrorsCondition = envEnable("OPENGRAPHICS_WERROR", default: isXcodeEnv && development)
43+
let warningsAsErrorsCondition = envEnable("OPENCOREGRAPHICS_WERROR", default: isXcodeEnv && development)
4444
if warningsAsErrorsCondition {
4545
sharedSwiftSettings.append(.unsafeFlags(["-warnings-as-errors"]))
4646
}
4747

48-
// MARK: - [env] OPENGRAPHICS_LIBRARY_EVOLUTION
48+
// MARK: - [env] OPENCOREGRAPHICS_LIBRARY_EVOLUTION
4949

50-
let libraryEvolutionCondition = envEnable("OPENGRAPHICS_LIBRARY_EVOLUTION", default: buildForDarwinPlatform)
50+
let libraryEvolutionCondition = envEnable("OPENCOREGRAPHICS_LIBRARY_EVOLUTION", default: buildForDarwinPlatform)
5151

5252
if libraryEvolutionCondition {
5353
// NOTE: -enable-library-evolution will cause module verify failure for `swift build`.
54-
// Either set OPENGRAPHICS_LIBRARY_EVOLUTION=0 or add `-Xswiftc -no-verify-emitted-module-interface` after `swift build`
54+
// Either set OPENCOREGRAPHICS_LIBRARY_EVOLUTION=0 or add `-Xswiftc -no-verify-emitted-module-interface` after `swift build`
5555
sharedSwiftSettings.append(.unsafeFlags(["-enable-library-evolution", "-no-verify-emitted-module-interface"]))
5656
}
5757

5858
let package = Package(
59-
name: "OpenGraphics",
59+
name: "OpenCoreGraphics",
6060
products: [
61-
.library(name: "OpenGraphics", targets: ["OpenGraphics"]),
62-
.library(name: "OpenGraphicsShims", targets: ["OpenGraphicsShims"]),
61+
.library(name: "OpenCoreGraphics", targets: ["OpenCoreGraphics"]),
62+
.library(name: "OpenCoreGraphicsShims", targets: ["OpenCoreGraphicsShims"]),
6363
.library(name: "OpenQuartzCore", targets: ["OpenQuartzCore"]),
6464
.library(name: "OpenQuartzCoreShims", targets: ["OpenQuartzCoreShims"]),
6565
],
@@ -68,29 +68,29 @@ let package = Package(
6868
],
6969
targets: [
7070
.target(
71-
name: "OpenGraphics",
71+
name: "OpenCoreGraphics",
7272
swiftSettings: sharedSwiftSettings
7373
),
7474
.target(
75-
name: "OpenGraphicsShims",
76-
dependencies: ["OpenGraphics"],
75+
name: "OpenCoreGraphicsShims",
76+
dependencies: ["OpenCoreGraphics"],
7777
swiftSettings: sharedSwiftSettings,
7878
linkerSettings: [
7979
.linkedFramework("CoreGraphics", .when(platforms: .darwinPlatforms)),
8080
]
8181
),
8282
.testTarget(
83-
name: "OpenGraphicsShimsTests",
83+
name: "OpenCoreGraphicsShimsTests",
8484
dependencies: [
85-
"OpenGraphicsShims",
85+
"OpenCoreGraphicsShims",
8686
.product(name: "Numerics", package: "swift-numerics"),
8787
],
8888
swiftSettings: sharedSwiftSettings
8989
),
9090

9191
.target(
9292
name: "OpenQuartzCore",
93-
dependencies: ["OpenGraphics"],
93+
dependencies: ["OpenCoreGraphics"],
9494
swiftSettings: sharedSwiftSettings
9595
),
9696
.target(

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# OpenGraphics
1+
# OpenCoreGraphics
22

3-
[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2FOpenSwiftUIProject%2FOpenGraphics%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/OpenSwiftUIProject/OpenGraphics)
3+
[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2FOpenSwiftUIProject%2FOpenCoreGraphics%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/OpenSwiftUIProject/OpenCoreGraphics)
44

5-
[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2FOpenSwiftUIProject%2FOpenGraphics%2Fbadge%3Ftype%3Dplatforms)](https://swiftpackageindex.com/OpenSwiftUIProject/OpenGraphics)
5+
[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2FOpenSwiftUIProject%2FOpenCoreGraphics%2Fbadge%3Ftype%3Dplatforms)](https://swiftpackageindex.com/OpenSwiftUIProject/OpenCoreGraphics)
66

7-
[![codecov](https://codecov.io/github/OpenSwiftUIProject/OpenGraphics/graph/badge.svg?token=1JKUXEZRCB)](https://codecov.io/github/OpenSwiftUIProject/OpenGraphics)
7+
[![codecov](https://codecov.io/github/OpenSwiftUIProject/OpenCoreGraphics/graph/badge.svg?token=1JKUXEZRCB)](https://codecov.io/github/OpenSwiftUIProject/OpenCoreGraphics)
88

9-
OpenGraphics provides an alternative implementation of Apple's CoreGraphics framework which is not available on non-Apple platforms.
9+
OpenCoreGraphics provides an alternative implementation of Apple's CoreGraphics framework which is not available on non-Apple platforms.
1010

1111
Currently, this project is in early development.
1212

@@ -27,9 +27,9 @@ Ref:
2727

2828
| **CI Status** |
2929
|---|
30-
|[![Compatibility tests](https://github.com/OpenSwiftUIProject/OpenGraphics/actions/workflows/compatibility_tests.yml/badge.svg)](https://github.com/OpenSwiftUIProject/OpenGraphics/actions/workflows/compatibility_tests.yml)|
31-
|[![macOS](https://github.com/OpenSwiftUIProject/OpenGraphics/actions/workflows/macos.yml/badge.svg)](https://github.com/OpenSwiftUIProject/OpenGraphics/actions/workflows/macos.yml)|
32-
|[![Ubuntu](https://github.com/OpenSwiftUIProject/OpenGraphics/actions/workflows/ubuntu.yml/badge.svg)](https://github.com/OpenSwiftUIProject/OpenGraphics/actions/workflows/ubuntu.yml)|
30+
|[![Compatibility tests](https://github.com/OpenSwiftUIProject/OpenCoreGraphics/actions/workflows/compatibility_tests.yml/badge.svg)](https://github.com/OpenSwiftUIProject/OpenCoreGraphics/actions/workflows/compatibility_tests.yml)|
31+
|[![macOS](https://github.com/OpenSwiftUIProject/OpenCoreGraphics/actions/workflows/macos.yml/badge.svg)](https://github.com/OpenSwiftUIProject/OpenCoreGraphics/actions/workflows/macos.yml)|
32+
|[![Ubuntu](https://github.com/OpenSwiftUIProject/OpenCoreGraphics/actions/workflows/ubuntu.yml/badge.svg)](https://github.com/OpenSwiftUIProject/OpenCoreGraphics/actions/workflows/ubuntu.yml)|
3333

3434
## License
3535

Sources/OpenGraphics/CGAffineTransform.swift renamed to Sources/OpenCoreGraphics/CGAffineTransform.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// CGAffineTransform.swift
3-
// OpenGraphics
3+
// OpenCoreGraphics
44

55
public import Foundation
66

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// CGLine.swift
3-
// OpenGraphics
3+
// OpenCoreGraphics
44

55
/// Line join styles
66
public enum CGLineJoin: Int32, @unchecked Sendable {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// CGPath.swift
3-
// OpenGraphics
3+
// OpenCoreGraphics
44
//
55
// License: MIT
66
// Modified from https://github.com/PureSwift/Silica/blob/22c72ff508c40ae5e673c16ad39f39235f6ddd01/Sources/Silica/CGPath.swift
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// Shims.swift
3-
// OpenGraphics
3+
// OpenCoreGraphics
44

55
#if canImport(Darwin)
66
public import Foundation
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
//
22
// Export.swift
3-
// OpenGraphicsShims
3+
// OpenCoreGraphicsShims
44

5-
#if OPENGRAPHICS_COREGRAPHICS
5+
#if OPENCOREGRAPHICS_COREGRAPHICS
66
@_exported import CoreGraphics
77
#else
8-
@_exported import OpenGraphics
8+
@_exported import OpenCoreGraphics
99
@_exported import CoreFoundation // CoreGraphics will export CoreFoundation
1010
@_exported import Foundation // For non-Darwin platforms, CG_TYPES is defined on Foundation
1111
#endif

0 commit comments

Comments
 (0)