packaging: Initial packaging
[platform/upstream/cmake.git] / Source / cmLocalXCodeGenerator.cxx
1 /*============================================================================
2   CMake - Cross Platform Makefile Generator
3   Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
4
5   Distributed under the OSI-approved BSD License (the "License");
6   see accompanying file Copyright.txt for details.
7
8   This software is distributed WITHOUT ANY WARRANTY; without even the
9   implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10   See the License for more information.
11 ============================================================================*/
12 #include "cmLocalXCodeGenerator.h"
13 #include "cmGlobalXCodeGenerator.h"
14 #include "cmSourceFile.h"
15
16 //----------------------------------------------------------------------------
17 cmLocalXCodeGenerator::cmLocalXCodeGenerator()
18 {
19   // the global generator does this, so do not
20   // put these flags into the language flags
21   this->EmitUniversalBinaryFlags = false;
22 }
23
24 //----------------------------------------------------------------------------
25 cmLocalXCodeGenerator::~cmLocalXCodeGenerator()
26 {
27 }
28
29 //----------------------------------------------------------------------------
30 std::string
31 cmLocalXCodeGenerator::GetTargetDirectory(cmTarget const&) const
32 {
33   // No per-target directory for this generator (yet).
34   return "";
35 }
36
37 //----------------------------------------------------------------------------
38 void cmLocalXCodeGenerator::AppendFlagEscape(std::string& flags,
39                                              const char* rawFlag)
40 {
41   cmGlobalXCodeGenerator* gg =
42     static_cast<cmGlobalXCodeGenerator*>(this->GlobalGenerator);
43   gg->AppendFlag(flags, rawFlag);
44 }