-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Switch to using packages for toml and json * Move opal out * Switch to public hosted opal * Switch to public definitions * Switch to public wrapper * Move Build projects around * Add run before/after lists * Cleanup project heirarchy * Fix up tests * Log out run before/after lists * Update some spacing issues and capture tasks in a map * Add build order checks * Add fiddler to preprocessor definition * Check for forbidden user * Break the samples into sub folder Co-authored-by: Matthew Asplund <[email protected]>
- Loading branch information
Showing
325 changed files
with
2,240 additions
and
6,960 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,161 +1,11 @@ | ||
# Samples | ||
These samples are a small set of all the cool things you can do with the Soup Build System. The source for these samples can be found in the main Soup repository in the Samples folder. | ||
|
||
## Simple Console Application | ||
|
||
## [Simple Console Application](Samples/SimpleConsoleApplication) | ||
This is the smallest amount of code to get a console application building using Soup. | ||
|
||
### Recipe.toml | ||
The Recipe file that sets the name, type, version and the single source file. | ||
``` | ||
Name = "SimpleConsoleApplication" | ||
Type = "Executable" | ||
Version = "1.1.3" | ||
Source = [ | ||
"Main.cpp" | ||
] | ||
``` | ||
|
||
### Main.cpp | ||
A simple main method that prints our "Hello World, Soup Style!" and returns a success status. | ||
``` | ||
#include <iostream> | ||
int main() | ||
{ | ||
std::cout << "Hello World, Soup Style!" << std::endl; | ||
return 0; | ||
} | ||
``` | ||
|
||
### .gitignore | ||
A simple git ignore file to exclude all Soup build output. | ||
``` | ||
out/ | ||
``` | ||
|
||
## Module Console Application | ||
|
||
## [Module Console Application](Samples/ModuleConsoleApplication) | ||
This is a console application that uses a single module interface file used inside the same projects. | ||
|
||
### Recipe.toml | ||
The Recipe file that sets the name, type, version, the public interface module and the single source file. | ||
``` | ||
Name = "ModuleConsoleApplication" | ||
Type = "Executable" | ||
Version = "1.2.5" | ||
Public = "Module.cpp" | ||
Source = [ | ||
"Main.cpp" | ||
] | ||
``` | ||
|
||
### Module.cpp | ||
A module interface file that exports a single sample class. | ||
``` | ||
module; | ||
// Include all standard library headers in the global module | ||
#include <string> | ||
export module ModuleConsoleApplication; | ||
export class Helper | ||
{ | ||
public: | ||
static std::string GetName() | ||
{ | ||
return "Soup"; | ||
} | ||
}; | ||
``` | ||
|
||
### Main.cpp | ||
A simple main method that prints our "Hello World, Soup Style!" by using the module from the previous file. | ||
``` | ||
#include <iostream> | ||
import ModuleConsoleApplication; | ||
int main() | ||
{ | ||
std::cout << "Hello World, " << Helper::GetName() << " Style!" << std::endl; | ||
return 0; | ||
} | ||
``` | ||
|
||
### .gitignore | ||
A simple git ignore file to exclude all Soup build output. | ||
``` | ||
out/ | ||
``` | ||
|
||
## Static Library Reference | ||
|
||
## [Static Library Reference](Samples/StaticLibraryReference) | ||
This is a console application that has a single static library dependency. | ||
|
||
### MyLibrary/Recipe.toml | ||
The Recipe file that defines the static library "MyLibrary". | ||
``` | ||
Name = "MyLibrary" | ||
Version = "1.0.0" | ||
Public = "Module.cpp" | ||
``` | ||
|
||
### MyLibrary/Module.cpp | ||
A module interface file that exports a single sample class. | ||
``` | ||
module; | ||
// Include all standard library headers in the global module | ||
#include <string> | ||
export module MyLibrary; | ||
export namespace MyLibrary | ||
{ | ||
class Helper | ||
{ | ||
public: | ||
static std::string GetName() | ||
{ | ||
return "Soup"; | ||
} | ||
}; | ||
} | ||
``` | ||
|
||
### MyApplication/Recipe.toml | ||
The Recipe file that defines the executable "MyApplication". | ||
``` | ||
Name = "MyApplication" | ||
Type = "Executable" | ||
Version = "1.0.0" | ||
Dependencies = [ | ||
"../MyLibrary/" | ||
] | ||
Source = [ | ||
"Main.cpp" | ||
] | ||
``` | ||
|
||
### MyApplication/Main.cpp | ||
A simple main method that prints our "Hello World, Soup Style!" by using the module from the library. | ||
``` | ||
#include <iostream> | ||
import MyLibrary; | ||
using namespace MyLibrary; | ||
int main() | ||
{ | ||
std::cout << "Hello World, " << Helper::GetName() << " Style!" << std::endl; | ||
return 0; | ||
} | ||
``` | ||
|
||
### .gitignore | ||
A simple git ignore file to exclude all Soup build output. | ||
``` | ||
out/ | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# Module Console Application | ||
This is a console application that uses a single module interface file used inside the same projects. | ||
|
||
## Recipe.toml | ||
The Recipe file that sets the name, type, version, the public interface module and the single source file. | ||
``` | ||
Name = "ModuleConsoleApplication" | ||
Type = "Executable" | ||
Version = "1.2.5" | ||
Public = "Module.cpp" | ||
Source = [ | ||
"Main.cpp" | ||
] | ||
``` | ||
|
||
## Module.cpp | ||
A module interface file that exports a single sample class. | ||
``` | ||
module; | ||
// Include all standard library headers in the global module | ||
#include <string> | ||
export module ModuleConsoleApplication; | ||
export class Helper | ||
{ | ||
public: | ||
static std::string GetName() | ||
{ | ||
return "Soup"; | ||
} | ||
}; | ||
``` | ||
|
||
## Main.cpp | ||
A simple main method that prints our "Hello World, Soup Style!" by using the module from the previous file. | ||
``` | ||
#include <iostream> | ||
import ModuleConsoleApplication; | ||
int main() | ||
{ | ||
std::cout << "Hello World, " << Helper::GetName() << " Style!" << std::endl; | ||
return 0; | ||
} | ||
``` | ||
|
||
## .gitignore | ||
A simple git ignore file to exclude all Soup build output. | ||
``` | ||
out/ | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Simple Console Application | ||
This is the smallest amount of code to get a console application building using Soup. | ||
|
||
## Recipe.toml | ||
The Recipe file that sets the name, type, version and the single source file. | ||
``` | ||
Name = "SimpleConsoleApplication" | ||
Type = "Executable" | ||
Version = "1.1.3" | ||
Source = [ | ||
"Main.cpp" | ||
] | ||
``` | ||
|
||
## Main.cpp | ||
A simple main method that prints our "Hello World, Soup Style!" and returns a success status. | ||
``` | ||
#include <iostream> | ||
int main() | ||
{ | ||
std::cout << "Hello World, Soup Style!" << std::endl; | ||
return 0; | ||
} | ||
``` | ||
|
||
## .gitignore | ||
A simple git ignore file to exclude all Soup build output. | ||
``` | ||
out/ | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
# Static Library Reference | ||
This is a console application that has a single static library dependency. | ||
|
||
## MyLibrary/Recipe.toml | ||
The Recipe file that defines the static library "MyLibrary". | ||
``` | ||
Name = "MyLibrary" | ||
Version = "1.0.0" | ||
Public = "Module.cpp" | ||
``` | ||
|
||
## MyLibrary/Module.cpp | ||
A module interface file that exports a single sample class. | ||
``` | ||
module; | ||
// Include all standard library headers in the global module | ||
#include <string> | ||
export module MyLibrary; | ||
export namespace MyLibrary | ||
{ | ||
class Helper | ||
{ | ||
public: | ||
static std::string GetName() | ||
{ | ||
return "Soup"; | ||
} | ||
}; | ||
} | ||
``` | ||
|
||
## MyApplication/Recipe.toml | ||
The Recipe file that defines the executable "MyApplication". | ||
``` | ||
Name = "MyApplication" | ||
Type = "Executable" | ||
Version = "1.0.0" | ||
Dependencies = [ | ||
"../MyLibrary/" | ||
] | ||
Source = [ | ||
"Main.cpp" | ||
] | ||
``` | ||
|
||
## MyApplication/Main.cpp | ||
A simple main method that prints our "Hello World, Soup Style!" by using the module from the library. | ||
``` | ||
#include <iostream> | ||
import MyLibrary; | ||
using namespace MyLibrary; | ||
int main() | ||
{ | ||
std::cout << "Hello World, " << Helper::GetName() << " Style!" << std::endl; | ||
return 0; | ||
} | ||
``` | ||
|
||
## .gitignore | ||
A simple git ignore file to exclude all Soup build output. | ||
``` | ||
out/ | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.