Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-12681] [Workspace] Add a way to init a C library package #4556

Open
swift-ci opened this issue Apr 27, 2020 · 1 comment
Open

[SR-12681] [Workspace] Add a way to init a C library package #4556

swift-ci opened this issue Apr 27, 2020 · 1 comment

Comments

@swift-ci
Copy link
Contributor

Previous ID SR-12681
Radar rdar://problem/62895043
Original Reporter mattdipasquale (JIRA User)
Type New Feature
Additional Detail from JIRA
Votes 0
Component/s Package Manager
Labels New Feature
Assignee None
Priority Medium

md5: 27b44f7e8665ebbad2223d7e84945aa3

Issue Description:

To create a new C library package, I'd like to be able to do something like:

swift package init --language c

The directory structure could be like:

├── Package.swift
└── Sources
    └── Hello
        ├── include
        │   └── hello.h
        └── hello.c

If I also specify a type other than library, I could be shown an error like:

error: If language is C, then type must be library.

The output of swift package init --help could include a line like:

  --language   swift|c [default: swift]

Bonus: I'd also be able to specify language via Xcode: File > New > Package...

@beccadax
Copy link
Contributor

beccadax commented May 5, 2020

@swift-ci create

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants