1 MESSAGE(STATUS "Loaded CMakeASM${ASM_DIALECT}Information - ASM${ASM_DIALECT} support is still experimental, please report issues")
4 SET(CMAKE_ASM${ASM_DIALECT}_OUTPUT_EXTENSION .o)
6 SET(CMAKE_ASM${ASM_DIALECT}_OUTPUT_EXTENSION .obj)
9 SET(CMAKE_INCLUDE_FLAG_ASM${ASM_DIALECT} "-I") # -I
11 GET_FILENAME_COMPONENT(CMAKE_BASE_NAME "${CMAKE_ASM${ASM_DIALECT}_COMPILER}" NAME_WE)
13 IF("${CMAKE_BASE_NAME}" STREQUAL "as")
14 SET(CMAKE_BASE_NAME gas)
15 ENDIF("${CMAKE_BASE_NAME}" STREQUAL "as")
17 INCLUDE(Platform/${CMAKE_BASE_NAME} OPTIONAL)
19 IF(CMAKE_SYSTEM_PROCESSOR)
20 INCLUDE(Platform/${CMAKE_SYSTEM_NAME}-${CMAKE_BASE_NAME}-${CMAKE_SYSTEM_PROCESSOR} OPTIONAL RESULT_VARIABLE _INCLUDED_FILE)
21 ENDIF(CMAKE_SYSTEM_PROCESSOR)
22 IF(NOT _INCLUDED_FILE)
23 INCLUDE(Platform/${CMAKE_SYSTEM_NAME}-${CMAKE_C_COMPILER_ID}-ASM-${CMAKE_SYSTEM_PROCESSOR} OPTIONAL)
24 ENDIF(NOT _INCLUDED_FILE)
26 INCLUDE(Platform/${CMAKE_SYSTEM_NAME}-${CMAKE_BASE_NAME} OPTIONAL RESULT_VARIABLE _INCLUDED_FILE)
27 IF(NOT _INCLUDED_FILE)
28 INCLUDE(Platform/${CMAKE_SYSTEM_NAME}-${CMAKE_C_COMPILER_ID}-ASM OPTIONAL)
29 ENDIF(NOT _INCLUDED_FILE)
31 IF(NOT CMAKE_ASM${ASM_DIALECT}_SOURCE_FILE_EXTENSIONS)
32 SET(CMAKE_ASM${ASM_DIALECT}_SOURCE_FILE_EXTENSIONS s;S;asm)
33 ENDIF(NOT CMAKE_ASM${ASM_DIALECT}_SOURCE_FILE_EXTENSIONS)
35 IF(NOT CMAKE_ASM${ASM_DIALECT}_COMPILE_OBJECT)
36 SET(CMAKE_ASM${ASM_DIALECT}_COMPILE_OBJECT "<CMAKE_ASM${ASM_DIALECT}_COMPILER> <FLAGS> -o <OBJECT> <SOURCE>")
37 ENDIF(NOT CMAKE_ASM${ASM_DIALECT}_COMPILE_OBJECT)
39 IF(NOT CMAKE_ASM${ASM_DIALECT}_CREATE_STATIC_LIBRARY)
40 SET(CMAKE_ASM${ASM_DIALECT}_CREATE_STATIC_LIBRARY
41 "<CMAKE_AR> cr <TARGET> <LINK_FLAGS> <OBJECTS> "
42 "<CMAKE_RANLIB> <TARGET> ")
43 ENDIF(NOT CMAKE_ASM${ASM_DIALECT}_CREATE_STATIC_LIBRARY)
45 IF(NOT CMAKE_ASM${ASM_DIALECT}_LINK_EXECUTABLE)
46 SET(CMAKE_ASM${ASM_DIALECT}_LINK_EXECUTABLE
47 "<CMAKE_LINKER> <FLAGS> <CMAKE_ASM${ASM_DIALECT}_LINK_FLAGS> <LINK_FLAGS> <OBJECTS> -o <TARGET> <LINK_LIBRARIES>")
48 ENDIF(NOT CMAKE_ASM${ASM_DIALECT}_LINK_EXECUTABLE)
51 IF(NOT CMAKE_ASM${ASM_DIALECT}_CREATE_SHARED_LIBRARY)
52 SET(CMAKE_ASM${ASM_DIALECT}_CREATE_SHARED_LIBRARY)
53 ENDIF(NOT CMAKE_ASM${ASM_DIALECT}_CREATE_SHARED_LIBRARY)
55 IF(NOT CMAKE_ASM${ASM_DIALECT}_CREATE_SHARED_MODULE)
56 SET(CMAKE_ASM${ASM_DIALECT}_CREATE_SHARED_MODULE)
57 ENDIF(NOT CMAKE_ASM${ASM_DIALECT}_CREATE_SHARED_MODULE)
60 SET(CMAKE_ASM${ASM_DIALECT}_INFOMATION_LOADED 1)