Lines Matching refs:libname

44       set(libname "${name}.${os}")  variable
45 set(libnames ${libnames} ${libname})
46 set(extra_cflags_${libname} ${DARWIN_${os}_CFLAGS})
47 list_intersect(LIB_ARCHS_${libname} DARWIN_${os}_ARCHS LIB_ARCHS)
51 set(libname "${name}.${arch}") variable
52 set(libnames ${libnames} ${libname})
53 set(extra_cflags_${libname} ${TARGET_${arch}_CFLAGS})
68 foreach(libname ${libnames})
69 add_library(${libname} OBJECT ${LIB_SOURCES})
71 add_dependencies(${libname} ${LIB_DEPS})
76 if(APPLE AND NOT "${libname}" MATCHES ".*\.osx.*")
80 set_target_compile_flags(${libname}
81 ${extra_cflags_${libname}} ${target_flags})
82 set_property(TARGET ${libname} APPEND PROPERTY
84 set_target_properties(${libname} PROPERTIES FOLDER "Compiler-RT Libraries")
86 set_target_properties(${libname} PROPERTIES
87 OSX_ARCHITECTURES "${LIB_ARCHS_${libname}}")
200 set(libname "${name}_${os}") variable
202 set(libname "${name}_${os}_dynamic") variable
203 set(extra_link_flags_${libname} ${DARWIN_${os}_LINK_FLAGS} ${LIB_LINK_FLAGS})
205 list_intersect(LIB_ARCHS_${libname} DARWIN_${os}_ARCHS LIB_ARCHS)
206 if(LIB_ARCHS_${libname})
207 list(APPEND libnames ${libname})
208 … set(extra_cflags_${libname} ${DARWIN_${os}_CFLAGS} ${NO_LTO_FLAGS} ${NO_PGO_FLAGS} ${LIB_CFLAGS})
209 set(output_name_${libname} ${libname}${COMPILER_RT_OS_SUFFIX})
210 set(sources_${libname} ${LIB_SOURCES})
211 format_object_libs(sources_${libname} ${os} ${LIB_OBJECT_LIBS})
212 get_compiler_rt_output_dir(${COMPILER_RT_DEFAULT_TARGET_ARCH} output_dir_${libname})
213 get_compiler_rt_install_dir(${COMPILER_RT_DEFAULT_TARGET_ARCH} install_dir_${libname})
223 set(libname "${name}-${arch}") variable
224 set_output_name(output_name_${libname} ${name}${COMPILER_RT_OS_SUFFIX} ${arch})
226 set(libname "${name}-${arch}") variable
227 set_output_name(output_name_${libname} ${name} ${arch})
229 set(libname "${name}-dynamic-${arch}") variable
230 set(extra_cflags_${libname} ${TARGET_${arch}_CFLAGS} ${LIB_CFLAGS})
231 set(extra_link_flags_${libname} ${TARGET_${arch}_LINK_FLAGS} ${LIB_LINK_FLAGS})
233 set_output_name(output_name_${libname} ${name}_dynamic ${arch})
235 set_output_name(output_name_${libname} ${name} ${arch})
241 find_compiler_rt_library(builtins ${target} builtins_${libname})
242 if(builtins_${libname} STREQUAL "NOTFOUND")
246 set(sources_${libname} ${LIB_SOURCES})
247 format_object_libs(sources_${libname} ${arch} ${LIB_OBJECT_LIBS})
248 set(libnames ${libnames} ${libname})
249 …set(extra_cflags_${libname} ${TARGET_${arch}_CFLAGS} ${NO_LTO_FLAGS} ${NO_PGO_FLAGS} ${LIB_CFLAGS})
250 get_compiler_rt_output_dir(${arch} output_dir_${libname})
251 get_compiler_rt_install_dir(${arch} install_dir_${libname})
268 foreach(libname ${libnames})
274 set(COMPONENT_OPTION COMPONENT ${libname})
279 list(APPEND extra_cflags_${libname} "--target=${CMAKE_C_COMPILER_TARGET}")
282 list(APPEND extra_cflags_${libname} "--sysroot=${CMAKE_SYSROOT}")
284 string(REPLACE ";" " " extra_cflags_${libname} "${extra_cflags_${libname}}")
287 set(compile_command_${libname} "${CMAKE_C_COMPILE_OBJECT}")
289 set(output_file_${libname} ${output_name_${libname}}${CMAKE_C_OUTPUT_EXTENSION})
293 compile_command_${libname} ${compile_command_${libname}})
295 string(REPLACE "<OBJECT>" "${output_dir_${libname}}/${output_file_${libname}}"
296 compile_command_${libname} ${compile_command_${libname}})
298 string(REPLACE "<SOURCE>" "${sources_${libname}}"
299 compile_command_${libname} ${compile_command_${libname}})
301 string(REPLACE "<FLAGS>" "${CMAKE_C_FLAGS} ${extra_cflags_${libname}}"
302 compile_command_${libname} ${compile_command_${libname}})
304 string(REPLACE "${substitution}" "" compile_command_${libname}
305 ${compile_command_${libname}})
308 separate_arguments(compile_command_${libname})
310 OUTPUT ${output_dir_${libname}}/${output_file_${libname}}
311 COMMAND ${compile_command_${libname}}
312 DEPENDS ${sources_${libname}}
313 COMMENT "Building C object ${output_file_${libname}}")
314 add_custom_target(${libname} DEPENDS ${output_dir_${libname}}/${output_file_${libname}})
315 install(FILES ${output_dir_${libname}}/${output_file_${libname}}
316 DESTINATION ${install_dir_${libname}}
319 add_library(${libname} ${type} ${sources_${libname}})
320 set_target_compile_flags(${libname} ${extra_cflags_${libname}})
321 set_target_link_flags(${libname} ${extra_link_flags_${libname}})
322 set_property(TARGET ${libname} APPEND PROPERTY
324 set_target_output_directories(${libname} ${output_dir_${libname}})
325 install(TARGETS ${libname}
326 ARCHIVE DESTINATION ${install_dir_${libname}}
328 LIBRARY DESTINATION ${install_dir_${libname}}
330 RUNTIME DESTINATION ${install_dir_${libname}}
334 add_dependencies(${libname} ${LIB_DEPS})
336 set_target_properties(${libname} PROPERTIES
337 OUTPUT_NAME ${output_name_${libname}})
338 set_target_properties(${libname} PROPERTIES FOLDER "Compiler-RT Runtime")
340 target_link_libraries(${libname} PRIVATE ${LIB_LINK_LIBS})
342 if(builtins_${libname})
343 target_link_libraries(${libname} PRIVATE ${builtins_${libname}})
347 llvm_setup_rpath(${libname})
350 set_target_properties(${libname} PROPERTIES IMPORT_PREFIX "")
351 set_target_properties(${libname} PROPERTIES IMPORT_SUFFIX ".lib")
355 add_custom_command(TARGET ${libname}
357 COMMAND codesign --sign - $<TARGET_FILE:${libname}>
367 add_compiler_rt_install_targets(${libname} ${parent_target_arg})
370 set_target_properties(${libname} PROPERTIES
371 OSX_ARCHITECTURES "${LIB_ARCHS_${libname}}")
375 rt_externalize_debuginfo(${libname})