diff options
author | Dmitry Shevchenko <dmishe@google.com> | 2016-04-22 20:46:07 +0000 |
---|---|---|
committer | Damien Martin-Guillerez <dmarting@google.com> | 2016-04-22 21:21:02 +0000 |
commit | 2036dbd666a3e6430480bcbe333c77376d35bc63 (patch) | |
tree | 4f36f6cabb108be6b67cd16a40899c39462bdfee /examples/swift/constants.swift | |
parent | e7be839c1ce7df2048b86bc956207f86db4e5b65 (diff) |
Add a Skylark rule to build Swift modules.
* Adds a swift_library rule that produces a (.a, .swiftmodule) pair. It can handle dependencies between modules and can be used as a dependency of objc_binary.
* Does not work with Objective-C yet.
--
MOS_MIGRATED_REVID=120578875
Diffstat (limited to 'examples/swift/constants.swift')
-rw-r--r-- | examples/swift/constants.swift | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/swift/constants.swift b/examples/swift/constants.swift new file mode 100644 index 0000000000..6c16d34a82 --- /dev/null +++ b/examples/swift/constants.swift @@ -0,0 +1,4 @@ +class Constants { + static var x = 2 + static var y = 3 +}
\ No newline at end of file |