<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jan 20, 2016, at 9:03 AM, Ricardo N Olivieri via swift-build-dev <<a href="mailto:swift-build-dev@swift.org" class="">swift-build-dev@swift.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><font size="2" face="Helvetica Neue" class="">Hello,</font><br class=""><br class=""><font size="2" face="Helvetica Neue" class="">At this point in time, the Swift
PM doesn’t handle C code. And though Swift PM’s goal is not probably
to compile C code, we are wondering about the following scenario: A
swift package that consists of the expected Package.swift file, a module.modulemap
file, and C files. In a situation like this, the Swift package cannot be
compiled by the Swift PM.</font><br class=""><br class=""><br class=""><font size="2" face="Helvetica Neue" class="">A possible solution for this could
be to have an indication that the C code present in the package should
be compiled with the C compiler and a way to specify what flags should
be passed to the C compiler. For example, the Package.swift file could
include a directive to kick off a Ninja or Makefile that is then responsible
for compiling and linking the C code. </font><br class=""><br class=""><br class=""><font size="2" face="Helvetica Neue" class="">Is this something that would or
could be considered to be within scope of the Swift PM? </font><font size="2" face="sans-serif" class=""><br class=""></font></div></blockquote><div><br class=""></div>Yes, certainly.</div><div><br class=""></div><div>I have a proposal for initial support for this here:</div><div> <a href="https://github.com/ddunbar/swift-evolution/blob/8c8272b423bdc26fe49f3d1a36ab13a3a976f519/proposals/NNNN-swiftpm-c-language-targets.md" class="">https://github.com/ddunbar/swift-evolution/blob/8c8272b423bdc26fe49f3d1a36ab13a3a976f519/proposals/NNNN-swiftpm-c-language-targets.md</a></div><div>and it is on the short list of things I want to work on, but I've unfortunately been hit with a bunch of other distractions and sickness so it hasn't gotten much attention yet.</div><div><br class=""></div><div> - Daniel</div><div><br class=""><blockquote type="cite" class=""><div class=""><font size="2" face="sans-serif" class="">Regards,<br class=""> Ricardo Olivieri<br class=""> Software Engineer</font><br class="">
_______________________________________________<br class="">swift-build-dev mailing list<br class=""><a href="mailto:swift-build-dev@swift.org" class="">swift-build-dev@swift.org</a><br class="">https://lists.swift.org/mailman/listinfo/swift-build-dev<br class=""></div></blockquote></div><br class=""></body></html>