[PATCH] D114664: [objcopy][NFC] Add rules to cmake to put files under specific folders.
Alexey Lapshin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 17 14:59:36 PST 2022
avl updated this revision to Diff 409799.
avl added a comment.
rebased.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D114664/new/
https://reviews.llvm.org/D114664
Files:
llvm/lib/ObjCopy/CMakeLists.txt
Index: llvm/lib/ObjCopy/CMakeLists.txt
===================================================================
--- llvm/lib/ObjCopy/CMakeLists.txt
+++ 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 @@
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D114664.409799.patch
Type: text/x-patch
Size: 1383 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220217/7b8ccfdf/attachment.bin>
More information about the llvm-commits
mailing list