build: make an interface lib out of the common folder

This commit is contained in:
sithlord48
2024-11-26 22:03:11 -05:00
committed by Chris Rizzitello
parent 18bc419b7a
commit f321f6596b
16 changed files with 65 additions and 27 deletions

View File

@ -17,6 +17,7 @@
add_subdirectory(arch)
add_subdirectory(base)
add_subdirectory(client)
add_subdirectory(common)
add_subdirectory(deskflow)
add_subdirectory(io)
add_subdirectory(ipc)

View File

@ -0,0 +1,37 @@
# SPDX-FileCopyrightText: (C) 2024 Chris Rizzitello <sithlord48@gmail.com>
# SPDX-License-Identifier: MIT
add_library(common INTERFACE
basic_types.h
common.h
constants.h
copyright.h
IInterface.h
ipc.h
stdbitset.h
stddeque.h
stdexcept.h
stdfstream.h
stdistream.h
stdlist.h
stdmap.h
stdostream.h
stdpost.h
stdpre.h
stdset.h
stdsstream.h
stdstring.h
stdvector.h
version.h
)
if(APPLE)
target_sources(common INTERFACE MacOSXPrecomp.h)
endif()
target_include_directories(common
INTERFACE
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
)

View File

@ -18,7 +18,7 @@
#pragma once
#include "common/common.h"
#include "common.h"
//! Base class of interfaces
/*!

View File

@ -18,7 +18,7 @@
#pragma once
#include "common/common.h"
#include "common.h"
// VC++ has built-in sized types
// moved from common.h (why was it there?)

View File

@ -17,7 +17,7 @@
#pragma once
#include "common/basic_types.h"
#include "basic_types.h"
enum class IpcMessageType : UInt8
{

View File

@ -17,8 +17,8 @@
*/
#pragma once
#include "common/stdpre.h"
#include "stdpre.h"
#include <bitset>
#include "common/stdpost.h"
#include "stdpost.h"

View File

@ -17,8 +17,8 @@
*/
#pragma once
#include "common/stdpre.h"
#include "stdpre.h"
#include <deque>
#include "common/stdpost.h"
#include "stdpost.h"

View File

@ -17,9 +17,9 @@
*/
#pragma once
#include "common/stdpre.h"
#include "stdpre.h"
#include "common/stdistream.h"
#include "stdistream.h"
#include <fstream>
#include "common/stdpost.h"
#include "stdpost.h"

View File

@ -17,7 +17,7 @@
*/
#pragma once
#include "common/stdpre.h"
#include "stdpre.h"
#if HAVE_ISTREAM
#include <istream>
@ -25,7 +25,7 @@
#include <iostream>
#endif
#include "common/stdpost.h"
#include "stdpost.h"
#if defined(_MSC_VER) && _MSC_VER <= 1200
// VC++6 istream has no overloads for __int* types, .NET does

View File

@ -17,8 +17,8 @@
*/
#pragma once
#include "common/stdpre.h"
#include "stdpre.h"
#include <list>
#include "common/stdpost.h"
#include "stdpost.h"

View File

@ -17,8 +17,8 @@
*/
#pragma once
#include "common/stdpre.h"
#include "stdpre.h"
#include <map>
#include "common/stdpost.h"
#include "stdpost.h"

View File

@ -17,7 +17,7 @@
*/
#pragma once
#include "common/stdpre.h"
#include "stdpre.h"
#if HAVE_OSTREAM
#include <ostream>
@ -25,4 +25,4 @@
#include <iostream>
#endif
#include "common/stdpost.h"
#include "stdpost.h"

View File

@ -17,8 +17,8 @@
*/
#pragma once
#include "common/stdpre.h"
#include "stdpre.h"
#include <set>
#include "common/stdpost.h"
#include "stdpost.h"

View File

@ -17,7 +17,7 @@
*/
#pragma once
#include "common/stdpre.h"
#include "stdpre.h"
#if HAVE_SSTREAM || !defined(__GNUC__) || (__GNUC__ >= 3)
@ -339,6 +339,6 @@ private:
#endif /* not g++ 2.95 and no <sstream> */
#include "common/stdistream.h"
#include "stdistream.h"
#include "common/stdpost.h"
#include "stdpost.h"

View File

@ -17,8 +17,8 @@
*/
#pragma once
#include "common/stdpre.h"
#include "stdpre.h"
#include <string>
#include "common/stdpost.h"
#include "stdpost.h"

View File

@ -17,8 +17,8 @@
*/
#pragma once
#include "common/stdpre.h"
#include "stdpre.h"
#include <vector>
#include "common/stdpost.h"
#include "stdpost.h"