Comments (2)
Hello,
I extracted some code from our scripts... Removed the things that are under nda.
static class Extensions
{
public static string ToPlatformString(this Platform platform)
{
switch (platform)
{
// Used by buildsystemhelper, need to target value in Pipeline.Core/Targets.cs
case Platform._reserved8: return "<removed the name> - Put the name here";
case Platform._reserved7: return "<removed the name> - put that other name here";
}
return platform.ToString();
}
}
We also have this
class EngineTarget : ITarget
{
public Platform Platform;
public string PlatformString
{
get
{
if (Platform == SomeHiddenPlatform.SharpmakePlatform)
return "somestring";
if (Platform == Platform.XXXX)
return "XXX";
if (Platform == XYZ.SharpmakePlatform)
return "xyz";
return _platformString ??= Platform.ToString();
}
}
}
from sharpmake.
Thank you!
from sharpmake.
Related Issues (20)
- Tutorial page says you need to run the bootstrap to build Sharpmake, but no bootstrap file exists anymore HOT 2
- Same source filenames leads to obj outputs overwritten HOT 1
- Question: How to copy files into a sub-dir of TargetCopyFilesPath HOT 5
- Comparison with Cake? HOT 1
- Will you add the ability to generate cmake? HOT 1
- Having Project Dependencies visible on Visual Studio? HOT 5
- Compile.ps1 does not work on Windows (Powershell 5.1 Desktop) HOT 1
- Unable to parse clang version HOT 3
- Unable to setup OutputType per target HOT 1
- Avoid duplication of targets in Solution and Project class
- Files with identical names in different subdirectories don't build in Xcode projects. HOT 15
- CustomTargets wiki (Quick change) HOT 2
- Platform and Optimization extensibility HOT 6
- Custom argument doesn't work HOT 4
- [Question] Is there support for clang compilation database? HOT 1
- Compilation Database Generation HOT 2
- IncludeSystemPaths are ignored in Makefile generator
- Publish to Nuget HOT 1
- CSharp project configuration name ignored
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sharpmake.