-
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.
* Add build samples script
- Loading branch information
Showing
13 changed files
with
201 additions
and
33 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,10 +1,10 @@ | ||
#include <iostream> | ||
|
||
import Samples.Cpp.DynamicLibrary.Library; | ||
import Samples.Cpp.ModuleDynamicLibrary.Library; | ||
using namespace Samples::Cpp::DynamicLibrary::Library; | ||
|
||
int main() | ||
{ | ||
std::cout << "Hello World, " << Helper::GetName() << " Style!" << std::endl; | ||
return 0; | ||
} | ||
} |
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,5 +1,5 @@ | ||
#!/bin/bash | ||
echo "Linux Build Bootstrap!" | ||
echo "Bootstrap!" | ||
|
||
# Stop on first error | ||
set -e | ||
|
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,5 +1,5 @@ | ||
#!/bin/bash | ||
echo "Linux Build: $1" | ||
echo "Build: $1" | ||
|
||
# Stop on first error | ||
set -e | ||
|
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,5 +1,5 @@ | ||
#!/bin/bash | ||
echo "Linux Build Client: $1" | ||
echo "Build Client: $1" | ||
|
||
# Stop on first error | ||
set -e | ||
|
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,5 +1,5 @@ | ||
#!/bin/bash | ||
echo "Linux Build PackageManager!" | ||
echo "Build PackageManager!" | ||
|
||
# Stop on first error | ||
set -e | ||
|
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,74 @@ | ||
#!/bin/bash | ||
echo "Build Samples: $1" | ||
|
||
# Stop on first error | ||
set -e | ||
|
||
FLAVOR="$1" | ||
SCRIPTS_DIR=$(dirname "$0") | ||
|
||
ROOT_DIR=$SCRIPTS_DIR/../.. | ||
SAMPLES_DIR=$ROOT_DIR/samples | ||
|
||
######################################## | ||
## C Samples | ||
######################################## | ||
|
||
echo soup build $SAMPLES_DIR/c/build-extension/executable/ -flavor $FLAVOR | ||
eval soup build $SAMPLES_DIR/c/build-extension/executable/ -flavor $FLAVOR | ||
|
||
echo soup build $SAMPLES_DIR/c/console-application/ -flavor $FLAVOR | ||
eval soup build $SAMPLES_DIR/c/console-application/ -flavor $FLAVOR | ||
|
||
echo soup build $SAMPLES_DIR/c/dynamic-library/application/ -flavor $FLAVOR | ||
eval soup build $SAMPLES_DIR/c/dynamic-library/application/ -flavor $FLAVOR | ||
|
||
echo soup build $SAMPLES_DIR/c/static-library/application/ -flavor $FLAVOR | ||
eval soup build $SAMPLES_DIR/c/static-library/application/ -flavor $FLAVOR | ||
|
||
echo SKIP: soup build $SAMPLES_DIR/c/windows-application/ -flavor $FLAVOR | ||
|
||
######################################## | ||
## C# Samples | ||
######################################## | ||
|
||
echo soup build $SAMPLES_DIR/c#/build-extension/executable/ -flavor $FLAVOR | ||
eval soup build $SAMPLES_DIR/c#/build-extension/executable/ -flavor $FLAVOR | ||
|
||
echo soup build $SAMPLES_DIR/c#/console-application/ -flavor $FLAVOR | ||
eval soup build $SAMPLES_DIR/c#/console-application/ -flavor $FLAVOR | ||
|
||
echo soup build $SAMPLES_DIR/c#/library/application/ -flavor $FLAVOR | ||
eval soup build $SAMPLES_DIR/c#/library/application/ -flavor $FLAVOR | ||
|
||
######################################## | ||
## C++ Samples | ||
######################################## | ||
|
||
echo soup build $SAMPLES_DIR/c++/build-extension/executable/ -flavor $FLAVOR | ||
eval soup build $SAMPLES_DIR/c++/build-extension/executable/ -flavor $FLAVOR | ||
|
||
echo soup build $SAMPLES_DIR/c++/console-application/ -flavor $FLAVOR | ||
eval soup build $SAMPLES_DIR/c++/console-application/ -flavor $FLAVOR | ||
|
||
echo SKIP: soup build $SAMPLES_DIR/c++/directx/ -flavor $FLAVOR | ||
|
||
echo soup build $SAMPLES_DIR/c++/dynamic-library/application/ -flavor $FLAVOR | ||
eval soup build $SAMPLES_DIR/c++/dynamic-library/application/ -flavor $FLAVOR | ||
|
||
echo soup build $SAMPLES_DIR/c++/header-library/application/ -flavor $FLAVOR | ||
eval soup build $SAMPLES_DIR/c++/header-library/application/ -flavor $FLAVOR | ||
|
||
echo soup build $SAMPLES_DIR/c++/module-dynamic-library/application/ -flavor $FLAVOR | ||
eval soup build $SAMPLES_DIR/c++/module-dynamic-library/application/ -flavor $FLAVOR | ||
|
||
echo soup build $SAMPLES_DIR/c++/module-interface/ -flavor $FLAVOR | ||
eval soup build $SAMPLES_DIR/c++/module-interface/ -flavor $FLAVOR | ||
|
||
echo soup build $SAMPLES_DIR/c++/parse-json/ -flavor $FLAVOR | ||
eval soup build $SAMPLES_DIR/c++/parse-json/ -flavor $FLAVOR | ||
|
||
echo soup build $SAMPLES_DIR/c++/static-library/application/ -flavor $FLAVOR | ||
eval soup build $SAMPLES_DIR/c++/static-library/application/ -flavor $FLAVOR | ||
|
||
echo SKIP: soup build $SAMPLES_DIR/c++/windows-application/ -flavor $FLAVOR |
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,5 +1,5 @@ | ||
#!/bin/bash | ||
echo "Linux Build SWhere!" | ||
echo "Build SWhere!" | ||
|
||
# Stop on first error | ||
set -e | ||
|
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,5 +1,5 @@ | ||
#!/bin/bash | ||
echo "Linux Build SoupView!" | ||
echo "Build SoupView!" | ||
|
||
# Stop on first error | ||
set -e | ||
|
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,5 +1,5 @@ | ||
#!/bin/bash | ||
echo "Linux Build SoupView!" | ||
echo "Build SoupView!" | ||
|
||
# Stop on first error | ||
set -e | ||
|
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 |
---|---|---|
@@ -0,0 +1,90 @@ | ||
@echo off | ||
SETLOCAL | ||
SET Flavor=%1 | ||
SET ScriptsDir=%~dp0 | ||
SET RootDir=%ScriptsDir%../.. | ||
SET SamplesDir=%RootDir%/samples | ||
|
||
REM - ######################################## | ||
REM - ## C Samples | ||
REM - ######################################## | ||
|
||
echo soup build %SamplesDir%/c/build-extension/executable/ -flavor %Flavor% | ||
call soup build %SamplesDir%/c/build-extension/executable/ -flavor %Flavor% | ||
if %ERRORLEVEL% NEQ 0 exit /B %ERRORLEVEL% | ||
|
||
echo soup build %SamplesDir%/c/console-application/ -flavor %Flavor% | ||
call soup build %SamplesDir%/c/console-application/ -flavor %Flavor% | ||
if %ERRORLEVEL% NEQ 0 exit /B %ERRORLEVEL% | ||
|
||
echo soup build %SamplesDir%/c/dynamic-library/application/ -flavor %Flavor% | ||
call soup build %SamplesDir%/c/dynamic-library/application/ -flavor %Flavor% | ||
if %ERRORLEVEL% NEQ 0 exit /B %ERRORLEVEL% | ||
|
||
echo soup build %SamplesDir%/c/static-library/application/ -flavor %Flavor% | ||
call soup build %SamplesDir%/c/static-library/application/ -flavor %Flavor% | ||
if %ERRORLEVEL% NEQ 0 exit /B %ERRORLEVEL% | ||
|
||
echo soup build %SamplesDir%/c/windows-application/ -flavor %Flavor% | ||
call soup build %SamplesDir%/c/windows-application/ -flavor %Flavor% | ||
if %ERRORLEVEL% NEQ 0 exit /B %ERRORLEVEL% | ||
|
||
REM - ######################################## | ||
REM - ## C# Samples | ||
REM - ######################################## | ||
|
||
echo soup build %SamplesDir%/c#/build-extension/executable/ -flavor %Flavor% | ||
call soup build %SamplesDir%/c#/build-extension/executable/ -flavor %Flavor% | ||
if %ERRORLEVEL% NEQ 0 exit /B %ERRORLEVEL% | ||
|
||
echo soup build %SamplesDir%/c#/console-application/ -flavor %Flavor% | ||
call soup build %SamplesDir%/c#/console-application/ -flavor %Flavor% | ||
if %ERRORLEVEL% NEQ 0 exit /B %ERRORLEVEL% | ||
|
||
echo soup build %SamplesDir%/c#/library/application/ -flavor %Flavor% | ||
call soup build %SamplesDir%/c#/library/application/ -flavor %Flavor% | ||
if %ERRORLEVEL% NEQ 0 exit /B %ERRORLEVEL% | ||
|
||
REM - ######################################## | ||
REM - ## C++ Samples | ||
REM - ######################################## | ||
|
||
echo soup build %SamplesDir%/c++/build-extension/executable/ -flavor %Flavor% | ||
call soup build %SamplesDir%/c++/build-extension/executable/ -flavor %Flavor% | ||
if %ERRORLEVEL% NEQ 0 exit /B %ERRORLEVEL% | ||
|
||
echo soup build %SamplesDir%/c++/console-application/ -flavor %Flavor% | ||
call soup build %SamplesDir%/c++/console-application/ -flavor %Flavor% | ||
if %ERRORLEVEL% NEQ 0 exit /B %ERRORLEVEL% | ||
|
||
echo soup build %SamplesDir%/c++/directx/ -flavor %Flavor% | ||
call soup build %SamplesDir%/c++/directx/ -flavor %Flavor% | ||
if %ERRORLEVEL% NEQ 0 exit /B %ERRORLEVEL% | ||
|
||
echo soup build %SamplesDir%/c++/dynamic-library/application/ -flavor %Flavor% | ||
call soup build %SamplesDir%/c++/dynamic-library/application/ -flavor %Flavor% | ||
if %ERRORLEVEL% NEQ 0 exit /B %ERRORLEVEL% | ||
|
||
echo soup build %SamplesDir%/c++/header-library/application/ -flavor %Flavor% | ||
call soup build %SamplesDir%/c++/header-library/application/ -flavor %Flavor% | ||
if %ERRORLEVEL% NEQ 0 exit /B %ERRORLEVEL% | ||
|
||
echo soup build %SamplesDir%/c++/module-dynamic-library/application/ -flavor %Flavor% | ||
call soup build %SamplesDir%/c++/module-dynamic-library/application/ -flavor %Flavor% | ||
if %ERRORLEVEL% NEQ 0 exit /B %ERRORLEVEL% | ||
|
||
echo soup build %SamplesDir%/c++/module-interface/ -flavor %Flavor% | ||
call soup build %SamplesDir%/c++/module-interface/ -flavor %Flavor% | ||
if %ERRORLEVEL% NEQ 0 exit /B %ERRORLEVEL% | ||
|
||
echo soup build %SamplesDir%/c++/parse-json/ -flavor %Flavor% | ||
call soup build %SamplesDir%/c++/parse-json/ -flavor %Flavor% | ||
if %ERRORLEVEL% NEQ 0 exit /B %ERRORLEVEL% | ||
|
||
echo soup build %SamplesDir%/c++/static-library/application/ -flavor %Flavor% | ||
call soup build %SamplesDir%/c++/static-library/application/ -flavor %Flavor% | ||
if %ERRORLEVEL% NEQ 0 exit /B %ERRORLEVEL% | ||
|
||
echo soup build %SamplesDir%/c++/windows-application/ -flavor %Flavor% | ||
call soup build %SamplesDir%/c++/windows-application/ -flavor %Flavor% | ||
if %ERRORLEVEL% NEQ 0 exit /B %ERRORLEVEL% |