matricks / bam

Bam is a fast and flexible build system. Bam uses Lua to describe the build process. It's takes its inspiration for the script files from scons. While scons focuses on being 100% correct when building, bam makes a few sacrifices to acquire fast full and incremental build times.
http://matricks.github.com/bam
Other
146 stars 47 forks source link

How can I detect operating system name? #52

Closed tokuhirom closed 9 years ago

tokuhirom commented 10 years ago

In scons, user can detect operating system by os.name or platform.system(). Is there a same thing for bam?

matricks commented 10 years ago

There are 3 global variables, "family", "platform" and "arch". These correspond to what bam was built with. I might wanna move these variables around a bit for the 0.5 release but you can check those.