caLib_util.build

This module provides several variables. Paired with static if's these variables can be used for conditional compilation *

Members

Variables

arch
enum string arch;

An enum string representing the target architecture.
possible values:

  • "x86" (32-bit)
  • "x86_64" (64-bit)
  • "ARM" (32-bit)
os
enum string os;

An enum string representing the target operating system.
possible values:

  • "Windows"
  • "Linux"
  • "OSX"

Examples

1 static if(os == "Windows") {
2     //code for windows
3 }
4 else {
5     //generic code	
6 }

Meta