Summary:
Previously were in support. Since many many things depend on support,
were all forced to also depend on libxml2, which we only want in a few cases.
This puts all the libxml2 deps in a separate lib to be used only in a few
places.
Reviewers: ruiu, thakis, rnk
Subscribers: mgorny, hiraditya, llvm-commits
Differential Revision: https://reviews.llvm.org/D35819
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309070
91177308-0d34-0410-b5e6-
96231b3b80d8
header "llvm/Support/DataTypes.h"
export *
}
+
+module LLVM_WindowsManifest {
+ requires cplusplus
+ umbrella "WindowsManifest"
+ module * { export * }
+}
add_subdirectory(ToolDrivers)
add_subdirectory(XRay)
add_subdirectory(Testing)
+add_subdirectory(WindowsManifest)
Testing
ToolDrivers
Transforms
+ WindowsManifest
[component_0]
type = Group
if( UNIX AND NOT (BEOS OR HAIKU) )
set(system_libs ${system_libs} m)
endif()
- if( LLVM_LIBXML2_ENABLED )
- set(system_libs ${system_libs} ${LIBXML2_LIBS})
- endif()
endif( MSVC OR MINGW )
add_llvm_library(LLVMSupport
Triple.cpp
Twine.cpp
Unicode.cpp
- WindowsManifestMerger.cpp
YAMLParser.cpp
YAMLTraits.cpp
raw_os_ostream.cpp
--- /dev/null
+set(system_libs)\r
+if( CMAKE_HOST_UNIX )\r
+ if( LLVM_LIBXML2_ENABLED )\r
+ set(system_libs ${system_libs} ${LIBXML2_LIBS})\r
+ endif()\r
+endif()\r
+\r
+add_llvm_library(LLVMWindowsManifest\r
+ WindowsManifestMerger.cpp\r
+\r
+ ADDITIONAL_HEADER_DIRS\r
+ ${LLVM_MAIN_INCLUDE_DIR}/llvm/WindowsManifest\r
+ ${Backtrace_INCLUDE_DIRS}\r
+\r
+ LINK_LIBS ${system_libs}\r
+ )\r
+\r
+set_property(TARGET LLVMWindowsManifest PROPERTY LLVM_SYSTEM_LIBS "${system_libs}")\r
--- /dev/null
+;===- ./lib/WindowsManifest/LLVMBuild.txt ----------------------*- Conf -*--===;\r
+;\r
+; The LLVM Compiler Infrastructure\r
+;\r
+; This file is distributed under the University of Illinois Open Source\r
+; License. See LICENSE.TXT for details.\r
+;\r
+;===------------------------------------------------------------------------===;\r
+;\r
+; This is an LLVMBuild description file for the components in this subdirectory.\r
+;\r
+; For more information on the LLVMBuild system, please see:\r
+;\r
+; http://llvm.org/docs/LLVMBuild.html\r
+;\r
+;===------------------------------------------------------------------------===;\r
+\r
+[component_0]\r
+type = Library\r
+name = WindowsManifest\r
+parent = Libraries\r
+required_libraries = Support\r
//
//===---------------------------------------------------------------------===//
-#include "llvm/Support/WindowsManifestMerger.h"
+#include "llvm/WindowsManifest/WindowsManifestMerger.h"
#include "llvm/Support/MemoryBuffer.h"
#include <stdarg.h>
set(LLVM_LINK_COMPONENTS
Option
Support
+ WindowsManifest
)
set(LLVM_TARGET_DEFINITIONS Opts.td)
type = Tool
name = llvm-mt
parent = Tools
-required_libraries = Option Support
+required_libraries = Option Support WindowsManifest
#include "llvm/Support/PrettyStackTrace.h"
#include "llvm/Support/Process.h"
#include "llvm/Support/Signals.h"
-#include "llvm/Support/WindowsManifestMerger.h"
#include "llvm/Support/raw_ostream.h"
+#include "llvm/WindowsManifest/WindowsManifestMerger.h"
#include <system_error>