Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
CMake
CMake
Commits
dee197fe
Commit
dee197fe
authored
Jun 06, 2015
by
Stephen Kelly
Committed by
Brad King
Jun 22, 2015
Browse files
GHS: Use a cmGeneratorTarget in generator API.
parent
b2b41b83
Changes
3
Show whitespace changes
Inline
Side-by-side
Source/cmGhsMultiTargetGenerator.cxx
View file @
dee197fe
...
...
@@ -21,23 +21,24 @@
std
::
string
const
cmGhsMultiTargetGenerator
::
DDOption
(
"-dynamic"
);
cmGhsMultiTargetGenerator
::
cmGhsMultiTargetGenerator
(
cmTarget
*
target
)
:
Target
(
target
)
cmGhsMultiTargetGenerator
::
cmGhsMultiTargetGenerator
(
cmGeneratorTarget
*
target
)
:
Target
(
target
->
Target
)
,
GeneratorTarget
(
target
)
,
LocalGenerator
(
static_cast
<
cmLocalGhsMultiGenerator
*>
(
target
->
GetMakefile
()
->
GetLocalGenerator
()))
,
Makefile
(
target
->
GetMakefile
())
,
TargetGroup
(
DetermineIfTargetGroup
(
target
))
target
->
GetLocalGenerator
()))
,
Makefile
(
target
->
Target
->
GetMakefile
())
,
TargetGroup
(
DetermineIfTargetGroup
(
target
->
Target
))
,
DynamicDownload
(
false
)
{
this
->
RelBuildFilePath
=
this
->
GetRelBuildFilePath
(
target
);
this
->
RelBuildFilePath
=
this
->
GetRelBuildFilePath
(
target
->
Target
);
this
->
RelOutputFileName
=
this
->
RelBuildFilePath
+
this
->
Target
->
GetName
()
+
".a"
;
this
->
RelBuildFileName
=
this
->
RelBuildFilePath
;
this
->
RelBuildFileName
+=
this
->
GetBuildFileName
(
target
);
this
->
RelBuildFileName
+=
this
->
GetBuildFileName
(
target
->
Target
);
std
::
string
absPathToRoot
=
this
->
GetAbsPathToRoot
(
target
);
std
::
string
absPathToRoot
=
this
->
GetAbsPathToRoot
(
target
->
Target
);
absPathToRoot
=
this
->
AddSlashIfNeededToPath
(
absPathToRoot
);
this
->
AbsBuildFilePath
=
absPathToRoot
+
this
->
RelBuildFilePath
;
this
->
AbsBuildFileName
=
absPathToRoot
+
this
->
RelBuildFileName
;
...
...
@@ -373,7 +374,6 @@ void cmGhsMultiTargetGenerator::WriteTargetLinkLibraries()
cmTarget
*
tg
(
GetGlobalGenerator
()
->
FindTarget
(
libName
));
if
(
NULL
!=
tg
)
{
cmGhsMultiTargetGenerator
gmtg
(
tg
);
libName
=
tg
->
GetName
()
+
".a"
;
}
*
this
->
GetFolderBuildStreams
()
<<
" -l
\"
"
<<
libName
<<
"
\"
"
...
...
Source/cmGhsMultiTargetGenerator.h
View file @
dee197fe
...
...
@@ -27,7 +27,7 @@ class cmCustomCommand;
class
cmGhsMultiTargetGenerator
{
public:
cmGhsMultiTargetGenerator
(
cmTarget
*
target
);
cmGhsMultiTargetGenerator
(
cm
Generator
Target
*
target
);
virtual
~
cmGhsMultiTargetGenerator
();
...
...
@@ -100,6 +100,7 @@ private:
const
std
::
string
&
language
);
cmTarget
*
Target
;
cmGeneratorTarget
*
GeneratorTarget
;
cmLocalGhsMultiGenerator
*
LocalGenerator
;
cmMakefile
*
Makefile
;
std
::
string
AbsBuildFilePath
;
...
...
Source/cmLocalGhsMultiGenerator.cxx
View file @
dee197fe
...
...
@@ -37,7 +37,7 @@ void cmLocalGhsMultiGenerator::Generate()
{
continue
;
}
cmGhsMultiTargetGenerator
tg
(
l
->
second
->
Target
);
cmGhsMultiTargetGenerator
tg
(
l
->
second
);
tg
.
Generate
();
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment