Lines Matching refs:libname
40 set(libname "${name}.${os}") variable
41 set(libnames ${libnames} ${libname})
42 set(extra_cflags_${libname} ${DARWIN_${os}_CFLAGS})
43 list_intersect(LIB_ARCHS_${libname} DARWIN_${os}_ARCHS LIB_ARCHS)
47 set(libname "${name}.${arch}") variable
48 set(libnames ${libnames} ${libname})
49 set(extra_cflags_${libname} ${TARGET_${arch}_CFLAGS})
57 foreach(libname ${libnames})
58 add_library(${libname} OBJECT ${LIB_SOURCES})
59 set_target_compile_flags(${libname}
60 ${CMAKE_CXX_FLAGS} ${extra_cflags_${libname}} ${LIB_CFLAGS})
61 set_property(TARGET ${libname} APPEND PROPERTY
63 set_target_properties(${libname} PROPERTIES FOLDER "Compiler-RT Libraries")
65 set_target_properties(${libname} PROPERTIES
66 OSX_ARCHITECTURES "${LIB_ARCHS_${libname}}")
107 set(libname "${name}_${os}") variable
109 set(libname "${name}_${os}_dynamic") variable
110 set(extra_linkflags_${libname} ${DARWIN_${os}_LINKFLAGS} ${LIB_LINKFLAGS})
112 list_intersect(LIB_ARCHS_${libname} DARWIN_${os}_ARCHS LIB_ARCHS)
113 if(LIB_ARCHS_${libname})
114 list(APPEND libnames ${libname})
115 set(extra_cflags_${libname} ${DARWIN_${os}_CFLAGS} ${LIB_CFLAGS})
116 set(output_name_${libname} ${libname}${COMPILER_RT_OS_SUFFIX})
117 set(sources_${libname} ${LIB_SOURCES})
118 format_object_libs(sources_${libname} ${os} ${LIB_OBJECT_LIBS})
128 set(libname "${name}-${arch}") variable
129 set(output_name_${libname} ${libname}${COMPILER_RT_OS_SUFFIX})
131 set(libname "${name}-dynamic-${arch}") variable
132 set(extra_cflags_${libname} ${TARGET_${arch}_CFLAGS} ${LIB_CFLAGS})
133 set(extra_linkflags_${libname} ${TARGET_${arch}_LINKFLAGS} ${LIB_LINKFLAGS})
135 set(output_name_${libname} ${name}_dynamic-${arch}${COMPILER_RT_OS_SUFFIX})
137 set(output_name_${libname} ${name}-${arch}${COMPILER_RT_OS_SUFFIX})
140 set(sources_${libname} ${LIB_SOURCES})
141 format_object_libs(sources_${libname} ${arch} ${LIB_OBJECT_LIBS})
142 set(libnames ${libnames} ${libname})
143 set(extra_cflags_${libname} ${TARGET_${arch}_CFLAGS} ${LIB_CFLAGS})
170 foreach(libname ${libnames})
176 set(COMPONENT_OPTION COMPONENT ${libname})
179 add_library(${libname} ${type} ${sources_${libname}})
180 set_target_compile_flags(${libname} ${extra_cflags_${libname}})
181 set_target_link_flags(${libname} ${extra_linkflags_${libname}})
182 set_property(TARGET ${libname} APPEND PROPERTY
184 set_target_output_directories(${libname} ${COMPILER_RT_LIBRARY_OUTPUT_DIR})
185 set_target_properties(${libname} PROPERTIES
186 OUTPUT_NAME ${output_name_${libname}})
187 set_target_properties(${libname} PROPERTIES FOLDER "Compiler-RT Runtime")
189 target_link_libraries(${libname} ${LIB_LINK_LIBS})
191 install(TARGETS ${libname}
202 add_custom_target(install-${libname}
203 DEPENDS ${libname}
205 -DCMAKE_INSTALL_COMPONENT=${libname}
210 add_dependencies(install-${LIB_PARENT_TARGET} install-${libname})
214 set_target_properties(${libname} PROPERTIES
215 OSX_ARCHITECTURES "${LIB_ARCHS_${libname}}")
219 rt_externalize_debuginfo(${libname})