CMake Build System: Difference between revisions

Jump to navigation Jump to search
[unchecked revision][unchecked revision]
Content deleted Content added
m Bot: Replace deprecated source tag with syntaxhighlight
m Bot: Replace deprecated source tag with syntaxhighlight
Line 191: Line 191:
Now, all we have to do is call <code>LOAD_PROFILE()</code> with the provided parameters, and we should be able to set up our build environment in a sane manner:
Now, all we have to do is call <code>LOAD_PROFILE()</code> with the provided parameters, and we should be able to set up our build environment in a sane manner:


<source lang="cmake">
<syntaxhighlight lang="cmake">
FILE(GLOB GENERIC_SRCS "*.c")
FILE(GLOB GENERIC_SRCS "*.c")


Line 206: Line 206:
SET_TARGET_PROPERTIES(kernel PROPERTIES LINK_FLAGS
SET_TARGET_PROPERTIES(kernel PROPERTIES LINK_FLAGS
"-T ${PLATFORM_LAYOUT} -N ${ISA_LINKER_FLAGS} ${PLATFORM_LINKER_FLAGS}")
"-T ${PLATFORM_LAYOUT} -N ${ISA_LINKER_FLAGS} ${PLATFORM_LINKER_FLAGS}")
</syntaxhighlight>
</source>


Here, we make a reasonable attempt to control the build order, but the truth is, we don't really know exactly what that order should be; it might
Here, we make a reasonable attempt to control the build order, but the truth is, we don't really know exactly what that order should be; it might