-
Notifications
You must be signed in to change notification settings - Fork 18
/
Package.swift
42 lines (40 loc) · 1.34 KB
/
Package.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// swift-tools-version:5.0
// The swift-tools-version declares the minimum version of Swift required to build this package.
import Foundation
import PackageDescription
let package = Package(
name: "JellyBeanWorld",
platforms: [.macOS(.v10_13)],
products: [
.library(
name: "JellyBeanWorld",
targets: ["JellyBeanWorld"]),
],
dependencies: [
.package(url: "https://github.com/eaplatanios/swift-rl.git", .branch("master")),
.package(url: "https://github.com/apple/swift-log.git", from: "1.0.0"),
.package(url: "https://github.com/apple/swift-package-manager.git", "0.5.0"..<"0.6.0"),
],
targets: [
.target(
name: "CJellyBeanWorld",
path: "api/c",
sources: ["simulator.cpp"],
cxxSettings: [
.headerSearchPath("../../jbw"),
.headerSearchPath("../../jbw/deps"),
.unsafeFlags([
"-std=c++11", "-Wall", "-Wpedantic", "-Ofast", "-DNDEBUG",
"-fno-stack-protector", "-mtune=native", "-march=native",
]),
]),
.target(
name: "JellyBeanWorld",
dependencies: ["CJellyBeanWorld", "ReinforcementLearning"],
path: "api/swift/Sources/JellyBeanWorld"),
.target(
name: "JellyBeanWorldExperiments",
dependencies: ["JellyBeanWorld", "Logging", "SPMUtility"],
path: "api/swift/Sources/JellyBeanWorldExperiments"),
]
)