[llvm] a0c0db4 - [objcopy][NFC] Add rules to cmake to put files under specific folders.
Alexey Lapshin via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 18 02:19:31 PST 2022
Author: Alexey Lapshin
Date: 2022-02-18T13:17:29+03:00
New Revision: a0c0db4627dcbc51234494bdab9cc69e882828e3
URL: https://github.com/llvm/llvm-project/commit/a0c0db4627dcbc51234494bdab9cc69e882828e3
DIFF: https://github.com/llvm/llvm-project/commit/a0c0db4627dcbc51234494bdab9cc69e882828e3.diff
LOG: [objcopy][NFC] Add rules to cmake to put files under specific folders.
This patch adds rules to cmake to put files under specific folders.
It allows to have files for different formats(which are located in different
subdirectories) be displayed in different subfolders of VS IDE solution.
Depends on D114429
Differential Revision: https://reviews.llvm.org/D114664
Added:
Modified:
llvm/lib/ObjCopy/CMakeLists.txt
Removed:
################################################################################
diff --git a/llvm/lib/ObjCopy/CMakeLists.txt b/llvm/lib/ObjCopy/CMakeLists.txt
index c272d2637bdcc..1e516394c74ae 100644
--- a/llvm/lib/ObjCopy/CMakeLists.txt
+++ b/llvm/lib/ObjCopy/CMakeLists.txt
@@ -1,3 +1,34 @@
+source_group("Header Files" REGULAR_EXPRESSION
+ .*[.]h
+)
+source_group("Header Files\\COFF" REGULAR_EXPRESSION
+ COFF/.*[.]h
+)
+source_group("Header Files\\ELF" REGULAR_EXPRESSION
+ ELF/.*[.]h
+)
+source_group("Header Files\\MachO" REGULAR_EXPRESSION
+ MachO/.*[.]h
+)
+source_group("Header Files\\wasm" REGULAR_EXPRESSION
+ wasm/.*[.]h
+)
+source_group("Source Files" REGULAR_EXPRESSION
+ .*[.]cpp
+)
+source_group("Source Files\\COFF" REGULAR_EXPRESSION
+ COFF/.*[.]cpp
+)
+source_group("Source Files\\ELF" REGULAR_EXPRESSION
+ ELF/.*[.]cpp
+)
+source_group("Source Files\\MachO" REGULAR_EXPRESSION
+ MachO/.*[.]cpp
+)
+source_group("Source Files\\wasm" REGULAR_EXPRESSION
+ wasm/.*[.]cpp
+)
+
add_llvm_component_library(LLVMObjCopy
Archive.cpp
ObjCopy.cpp
@@ -19,8 +50,16 @@ add_llvm_component_library(LLVMObjCopy
wasm/WasmObjcopy.cpp
ADDITIONAL_HEADER_DIRS
- ${LLVM_MAIN_INCLUDE_DIR}/llvm/Object
-
+ ${LLVM_MAIN_INCLUDE_DIR}/llvm/ObjCopy
+ ${LLVM_MAIN_INCLUDE_DIR}/llvm/ObjCopy/COFF
+ ${LLVM_MAIN_INCLUDE_DIR}/llvm/ObjCopy/ELF
+ ${LLVM_MAIN_INCLUDE_DIR}/llvm/ObjCopy/MachO
+ ${LLVM_MAIN_INCLUDE_DIR}/llvm/ObjCopy/wasm
+ COFF
+ ELF
+ MachO
+ wasm
+
DEPENDS
intrinsics_gen
More information about the llvm-commits
mailing list