summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler/TI-C.cmake
diff options
context:
space:
mode:
authorAlex Neundorf <neundorf@kde.org>2013-03-13 22:11:29 (GMT)
committerAlex Neundorf <neundorf@kde.org>2013-03-14 20:47:59 (GMT)
commitb3015862e547319bdc91fab5f28a366640ab50ea (patch)
tree9d6e8f4330de552b9d42b6b42ec6fe00e660a7ea /Modules/Compiler/TI-C.cmake
parent12b25df882968b4f5807f2734c98847337d518a9 (diff)
downloadCMake-b3015862e547319bdc91fab5f28a366640ab50ea.zip
CMake-b3015862e547319bdc91fab5f28a366640ab50ea.tar.gz
CMake-b3015862e547319bdc91fab5f28a366640ab50ea.tar.bz2
rename TI_DSP toolchain to TI, since it works also for the ARM compiler
Additionally, look for a special ar and strip Alex
Diffstat (limited to 'Modules/Compiler/TI-C.cmake')
-rw-r--r--Modules/Compiler/TI-C.cmake10
1 files changed, 10 insertions, 0 deletions
diff --git a/Modules/Compiler/TI-C.cmake b/Modules/Compiler/TI-C.cmake
new file mode 100644
index 0000000..b580994
--- /dev/null
+++ b/Modules/Compiler/TI-C.cmake
@@ -0,0 +1,10 @@
+set(CMAKE_LIBRARY_PATH_FLAG "--search_path=")
+set(CMAKE_LINK_LIBRARY_FLAG "--library=")
+set(CMAKE_INCLUDE_FLAG_C "--include_path=")
+
+set(CMAKE_C_CREATE_ASSEMBLY_SOURCE "<CMAKE_C_COMPILER> --compile_only --skip_assembler --c_file=<SOURCE> <DEFINES> <FLAGS> --output_file=<ASSEMBLY_SOURCE>")
+set(CMAKE_C_CREATE_PREPROCESSED_SOURCE "<CMAKE_C_COMPILER> --preproc_only --c_file=<SOURCE> <DEFINES> <FLAGS> --output_file=<PREPROCESSED_SOURCE>")
+
+set(CMAKE_C_COMPILE_OBJECT "<CMAKE_C_COMPILER> --compile_only --c_file=<SOURCE> <DEFINES> <FLAGS> --output_file=<OBJECT>")
+set(CMAKE_C_ARCHIVE_CREATE "<CMAKE_AR> -r <TARGET> <OBJECTS>")
+set(CMAKE_C_LINK_EXECUTABLE "<CMAKE_C_COMPILER> --run_linker --output_file=<TARGET> --map_file=<TARGET>.map <CMAKE_C_LINK_FLAGS> <LINK_LIBRARIES> <LINK_FLAGS> <OBJECTS>")