mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-14 19:49:36 +00:00
[CMake] Folder structure for generated Xcode project to cover more targets
llvm-svn: 361799
This commit is contained in:
parent
536a62d007
commit
a3388e5f9e
@ -153,6 +153,7 @@ if(LLDB_INCLUDE_TESTS)
|
||||
|
||||
add_custom_target(lldb-test-deps)
|
||||
add_dependencies(lldb-test-deps ${LLDB_TEST_DEPS})
|
||||
set_target_properties(lldb-test-deps PROPERTIES FOLDER "lldb misc")
|
||||
|
||||
add_subdirectory(test)
|
||||
add_subdirectory(unittests)
|
||||
@ -193,6 +194,7 @@ if (NOT LLDB_DISABLE_PYTHON)
|
||||
set(readline_dep readline)
|
||||
endif()
|
||||
add_dependencies(finish_swig swig_wrapper liblldb lldb-argdumper ${readline_dep})
|
||||
set_target_properties(finish_swig swig_wrapper PROPERTIES FOLDER "lldb misc")
|
||||
|
||||
# Ensure we do the python post-build step when building lldb.
|
||||
add_dependencies(lldb finish_swig)
|
||||
|
@ -100,7 +100,11 @@ function(add_lldb_library name)
|
||||
# Add in any extra C++ compilation flags for this library.
|
||||
target_compile_options(${name} PRIVATE ${PARAM_EXTRA_CXXFLAGS})
|
||||
|
||||
set_target_properties(${name} PROPERTIES FOLDER "lldb libraries")
|
||||
if(PARAM_PLUGIN)
|
||||
set_target_properties(${name} PROPERTIES FOLDER "lldb plugins")
|
||||
else()
|
||||
set_target_properties(${name} PROPERTIES FOLDER "lldb libraries")
|
||||
endif()
|
||||
endfunction(add_lldb_library)
|
||||
|
||||
function(add_lldb_executable name)
|
||||
|
@ -364,7 +364,7 @@ if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY)
|
||||
)
|
||||
|
||||
add_custom_target(lldb-headers)
|
||||
set_target_properties(lldb-headers PROPERTIES FOLDER "Misc")
|
||||
set_target_properties(lldb-headers PROPERTIES FOLDER "lldb misc")
|
||||
|
||||
if (NOT CMAKE_CONFIGURATION_TYPES)
|
||||
add_llvm_install_targets(install-lldb-headers
|
||||
|
@ -88,6 +88,14 @@ if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
|
||||
set(PACKAGE_VERSION "${LLVM_PACKAGE_VERSION}")
|
||||
set(LLVM_INCLUDE_TESTS ON CACHE INTERNAL "")
|
||||
|
||||
option(LLVM_USE_FOLDERS "Enable solution folders in Visual Studio. Disable for Express versions." ON)
|
||||
if(LLVM_USE_FOLDERS)
|
||||
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
|
||||
endif()
|
||||
|
||||
set_target_properties(clang-tablegen-targets PROPERTIES FOLDER "lldb misc")
|
||||
set_target_properties(intrinsics_gen PROPERTIES FOLDER "lldb misc")
|
||||
|
||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
include_directories(
|
||||
"${CMAKE_BINARY_DIR}/include"
|
||||
|
@ -68,7 +68,7 @@ add_lit_testsuite(check-lldb-lit "Running lldb lit test suite"
|
||||
DEPENDS ${LLDB_TEST_DEPS}
|
||||
)
|
||||
|
||||
set_target_properties(check-lldb-lit PROPERTIES FOLDER "LLDB tests")
|
||||
set_target_properties(check-lldb-lit PROPERTIES FOLDER "lldb tests")
|
||||
|
||||
# If we're building with an in-tree clang, then list clang as a dependency
|
||||
# to run tests.
|
||||
|
@ -144,6 +144,7 @@ if (NOT CMAKE_SYSTEM_NAME MATCHES "Windows")
|
||||
MESSAGE("-- Symbols (liblldb): exporting all symbols from the lldb and lldb_private namespaces")
|
||||
add_llvm_symbol_exports(liblldb ${CMAKE_CURRENT_SOURCE_DIR}/liblldb-private.exports)
|
||||
endif()
|
||||
set_target_properties(liblldb_exports PROPERTIES FOLDER "lldb misc")
|
||||
endif()
|
||||
|
||||
if ( CMAKE_SYSTEM_NAME MATCHES "Windows" )
|
||||
|
@ -110,13 +110,13 @@ add_python_test_target(check-lldb-single
|
||||
"--no-multiprocess;${LLDB_DOTEST_ARGS}"
|
||||
"Testing LLDB with args: ${LLDB_DOTEST_ARGS}"
|
||||
)
|
||||
set_target_properties(check-lldb-single PROPERTIES FOLDER "lldb misc")
|
||||
|
||||
# If tests crash cause LLDB to crash, or things are otherwise unstable, or if machine-parsable
|
||||
# output is desired (i.e. in continuous integration contexts) check-lldb-single is a better target.
|
||||
add_custom_target(check-lldb)
|
||||
|
||||
# Make check-lldb depend on all test dependencies.
|
||||
add_dependencies(check-lldb lldb-test-deps)
|
||||
set_target_properties(check-lldb PROPERTIES FOLDER "lldb misc")
|
||||
|
||||
# If we're building with an in-tree clang, then list clang as a dependency
|
||||
# to run tests.
|
||||
|
@ -236,6 +236,7 @@ if(build_and_sign_debugserver)
|
||||
${DEBUGSERVER_VERS_GENERATED_FILE})
|
||||
|
||||
add_library(lldbDebugserverCommon ${lldbDebugserverCommonSources})
|
||||
set_target_properties(lldbDebugserverCommon PROPERTIES FOLDER "lldb libraries/debugserver")
|
||||
|
||||
target_link_libraries(lldbDebugserverCommon
|
||||
INTERFACE ${COCOA_LIBRARY}
|
||||
|
@ -21,3 +21,5 @@ include_directories(${LLDB_SOURCE_DIR}/tools/debugserver/source)
|
||||
add_library(lldbDebugserverArchSupport
|
||||
${SOURCES}
|
||||
)
|
||||
|
||||
set_target_properties(lldbDebugserverArchSupport PROPERTIES FOLDER "lldb libraries/debugserver")
|
||||
|
@ -13,3 +13,5 @@ add_library(lldbDebugserverDarwin_DarwinLog
|
||||
LogMessage.cpp
|
||||
LogMessageOsLog.cpp
|
||||
)
|
||||
|
||||
set_target_properties(lldbDebugserverDarwin_DarwinLog PROPERTIES FOLDER "lldb libraries/debugserver")
|
||||
|
@ -28,6 +28,8 @@ add_dependencies(lldb
|
||||
${tablegen_deps}
|
||||
)
|
||||
|
||||
set_target_properties(LLDBOptionsTableGen PROPERTIES FOLDER "lldb misc")
|
||||
|
||||
if(LLDB_BUILD_FRAMEWORK)
|
||||
lldb_setup_framework_rpaths_in_tool(lldb)
|
||||
endif()
|
||||
|
@ -1,5 +1,5 @@
|
||||
add_custom_target(LLDBUnitTests)
|
||||
set_target_properties(LLDBUnitTests PROPERTIES FOLDER "LLDB tests")
|
||||
set_target_properties(LLDBUnitTests PROPERTIES FOLDER "lldb tests")
|
||||
|
||||
include_directories(${LLDB_SOURCE_ROOT})
|
||||
include_directories(${LLDB_PROJECT_ROOT}/unittests)
|
||||
|
@ -10,3 +10,4 @@ add_lldb_unittest(LLDBMiUtilTests
|
||||
)
|
||||
|
||||
target_sources(LLDBMiUtilTests PRIVATE $<TARGET_OBJECTS:lldb-mi-utils>)
|
||||
set_target_properties(lldb-mi-utils PROPERTIES FOLDER "lldb libraries")
|
||||
|
@ -7,6 +7,7 @@ function(add_lldb_test_executable test_name)
|
||||
set_output_directory(${test_name} BINARY_DIR ${outdir} LIBRARY_DIR ${outdir})
|
||||
list(APPEND ALL_LLDB_TEST_EXECUTABLES ${test_name})
|
||||
set(ALL_LLDB_TEST_EXECUTABLES ${ALL_LLDB_TEST_EXECUTABLES} PARENT_SCOPE)
|
||||
set_target_properties(${test_name} PROPERTIES FOLDER "lldb tests")
|
||||
endfunction()
|
||||
|
||||
add_lldb_test_executable(thread_inferior inferior/thread_inferior.cpp)
|
||||
|
@ -3,3 +3,4 @@ add_llvm_utility(lit-cpuid
|
||||
)
|
||||
|
||||
target_link_libraries(lit-cpuid PRIVATE LLVMSupport)
|
||||
set_target_properties(lit-cpuid PROPERTIES FOLDER "lldb utils")
|
||||
|
@ -1,6 +1,7 @@
|
||||
# Make lldb-dotest a custom target.
|
||||
add_custom_target(lldb-dotest)
|
||||
add_dependencies(lldb-dotest ${LLDB_TEST_DEPS})
|
||||
set_target_properties(lldb-dotest PROPERTIES FOLDER "lldb utils")
|
||||
|
||||
get_property(LLDB_DOTEST_ARGS GLOBAL PROPERTY LLDB_DOTEST_ARGS_PROPERTY)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user