Project Examples
Beskid project examples in BSOL.
Project Examples
Example 1: Single-project app
Section titled “Example 1: Single-project app”MyApp/├── MyApp.bproj└── Src/ └── Main.bdMyApp.bproj
MyApp { name = "MyApp" version = "0.1.0" root = "Src"}
target "App" { kind = "App" entry = "Main.bd"}Example 2: App with local dependency
Section titled “Example 2: App with local dependency”Workspace/├── App/│ ├── App.bproj│ └── Src/│ └── Main.bd└── Std/ ├── Std.bproj └── Src/ └── IO.bdApp.bproj (under App/)
App { name = "App" version = "0.1.0" root = "Src"}
target "App" { kind = "App" entry = "Main.bd"}
dependency "Std" { source = "path" path = "../Std"}Std.bproj (under Std/)
Std { name = "Std" version = "0.1.0" root = "Src"}
target "Library" { kind = "Lib" entry = "IO.bd"}Example 3: Nested module layout
Section titled “Example 3: Nested module layout”NetLib/├── NetLib.bproj└── Src/ ├── Net.bd └── Net/ └── Http.bdNetLib.bproj
NetLib { name = "NetLib" version = "0.1.0" root = "Src"}
target "Library" { kind = "Lib" entry = "Net.bd"}Src/Net.bd
pub mod Http;Src/Net/Http.bd
pub type Client { ... }Example 4: Multiple targets
Section titled “Example 4: Multiple targets”Project/├── Project.bproj└── Src/ ├── Main.bd └── Tests.bdProject.bproj
Project { name = "Project" version = "0.2.0" root = "Src"}
target "App" { kind = "App" entry = "Main.bd"}
target "Tests" { kind = "Test" entry = "Tests.bd"}