Beispiel #1
0
 public void BuildNative()
 {
     using (Log.StartAnimation("Building " + _target + (
                                   _backend.BuildType == BuildType.Executable
                 ? " app"
                 : " lib")))
     {
         if (!_target.Build(_compiler.Shell, _file, _options.NativeArguments))
         {
             Log.Error(Source.Unknown, ErrorCode.E0200, _target + " build failed");
         }
         else
         {
             _file.TouchProduct();
         }
     }
 }
Beispiel #2
0
 public void BuildNative()
 {
     using (Log.StartAnimation("Building " + _target.ToString().ToLower() + (
                                   _backend.BuildType == BuildType.Executable && !_env.IsDefined("LIBRARY")
                 ? " app"
                 : " library")))
     {
         if (!_target.Build(_compiler.Shell, _file, _options.NativeArguments))
         {
             Log.Error(Source.Unknown, ErrorCode.E0200, _target + " build failed");
         }
         else
         {
             _file.TouchProduct();
         }
     }
 }