Skip to content

Commit

Permalink
Moved common headers in install to wombat subdirectory (#492)
Browse files Browse the repository at this point in the history
This was necessary to avoid conflict with various packaging formats.

Mailing list email outlining plan:

https://lists.openmama.org/g/Openmama-dev/message/2302

Signed-off-by: Frank Quinn <fquinn@cascadium.io>
  • Loading branch information
fquinner committed Jun 19, 2022
1 parent 8dbdd09 commit d9cf1ce
Show file tree
Hide file tree
Showing 75 changed files with 84 additions and 98 deletions.
20 changes: 4 additions & 16 deletions common/c_cpp/src/c/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,34 +44,22 @@ if(WIN32)
target_link_libraries(wombatcommonstatic ws2_32 advapi32 kernel32 Pdh shlwapi)
endif()

file(GLOB wombat_inst_includes wombat/*.h ${system}/wombat/*.h)
if(WIN32)
file(GLOB wombat_platform_inst_includes ${system}/*.h)
endif()
list(APPEND inst_includes
destroyHandle.h
list.h
lookup2.h
platform.h
property.h
wlock.h
timers.h)

set_target_properties(wombatcommon PROPERTIES OUTPUT_NAME "wombatcommon${OPENMAMA_LIBRARY_SUFFIX}")
set_target_properties(wombatcommonstatic PROPERTIES OUTPUT_NAME "wombatcommon${OPENMAMA_LIBRARY_STATIC_SUFFIX}")
install(TARGETS wombatcommon wombatcommonstatic
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib)

file(GLOB wombat_inst_includes wombat/*.h ${system}/wombat/*.h)
install(FILES ${wombat_inst_includes}
DESTINATION include/wombat)

if(WIN32)
file(GLOB wombat_platform_inst_includes ${system}/*.h)
install(FILES ${wombat_platform_inst_includes}
DESTINATION include/${system})
DESTINATION include/wombat/${system})
endif()
install(FILES ${inst_includes}
DESTINATION include)

if (WIN32 AND MSVC)
install(FILES $<TARGET_PDB_FILE:wombatcommon> DESTINATION bin OPTIONAL)
Expand Down
2 changes: 0 additions & 2 deletions common/c_cpp/src/c/cmake/windows-files.cmake
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
set(SYSTEM_SOURCES
windows/environment.c
windows/lock.c
windows/lock.h
windows/machine_win.c
windows/mman.c
windows/mman.h
windows/network.c
windows/platform.c
windows/port.c
Expand Down
2 changes: 1 addition & 1 deletion common/c_cpp/src/c/destroyHandle.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
/* Includes. */
/* ************************************************************** */
#include "wombat/port.h"
#include "destroyHandle.h"
#include "wombat/destroyHandle.h"
#include <stdio.h>

/* ************************************************************** */
Expand Down
2 changes: 1 addition & 1 deletion common/c_cpp/src/c/linux/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include <stdlib.h>
#include <stddef.h>

#include "platform.h"
#include "wombat/platform.h"
#include "wombat/wincompat.h"

/**
Expand Down
4 changes: 2 additions & 2 deletions common/c_cpp/src/c/list.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
#include <stdio.h>
#include <string.h>

#include "wlock.h"
#include "list.h"
#include "wombat/wlock.h"
#include "wombat/list.h"

int gWListDebug;

Expand Down
2 changes: 1 addition & 1 deletion common/c_cpp/src/c/lookup2.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ You can use this free for any purpose. It has no warranty.
#include <stddef.h>
#include <stdlib.h>

#include "lookup2.h"
#include "wombat/lookup2.h"

/*
--------------------------------------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions common/c_cpp/src/c/property.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
#include <ctype.h>


#include "property.h"
#include "wombat/property.h"
#include "propertyinternal.h"
#include "lookup2.h"
#include "wombat/lookup2.h"
#include "wombat/memnode.h"
#include "wombat/wtable.h"
#include "wombat/strutils.h"
Expand Down
2 changes: 1 addition & 1 deletion common/c_cpp/src/c/timers.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*/

#include "wombat/port.h"
#include "timers.h"
#include "wombat/timers.h"

#include <sys/types.h>
#include <stdio.h>
Expand Down
2 changes: 1 addition & 1 deletion common/c_cpp/src/c/windows/lock.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* 02110-1301 USA
*/

#include "lock.h"
#include "wombat/windows/lock.h"


int wthread_mutex_lock (wthread_t thread)
Expand Down
2 changes: 1 addition & 1 deletion common/c_cpp/src/c/windows/mman.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include <errno.h>
#include <io.h>

#include "mman.h"
#include "wombat/windows/mman.h"

#ifndef FILE_MAP_EXECUTE
#define FILE_MAP_EXECUTE 0x0020
Expand Down
2 changes: 1 addition & 1 deletion common/c_cpp/src/c/windows/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include <stdio.h>
#include <string.h>
#include "wombat/port.h"
#include "platform.h"
#include "wombat/platform.h"

#define PATH_SEPERATOR "\\"

Expand Down
4 changes: 2 additions & 2 deletions common/c_cpp/src/c/windows/wombat/port.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@

#include "wombat/targetsxs.h"
#include "wombat/wConfig.h"
#include "windows/lock.h"
#include "windows/mman.h"
#include "wombat/windows/lock.h"
#include "wombat/windows/mman.h"

#if defined(__cplusplus)
extern "C" {
Expand Down
2 changes: 1 addition & 1 deletion common/c_cpp/src/c/wlock.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include <stdio.h>
#include <string.h>

#include <wlock.h>
#include <wombat/wlock.h>

typedef struct
{
Expand Down
2 changes: 1 addition & 1 deletion common/c_cpp/src/c/wombat/MRSWLock.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
/* ********************************************************** */
/* Includes. */
/* ********************************************************** */
#include "wlock.h"
#include "wombat/wlock.h"
#include "wombat/wSemaphore.h"

/* ********************************************************** */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ extern "C" {
/* Includes. */
/* ************************************************************** */
#include <stdlib.h>
#include "wlock.h"
#include "wombat/wlock.h"

/* ************************************************************** */
/* Structures. */
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion common/c_cpp/src/c/wtable.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include <stdlib.h>
#include <string.h>

#include "lookup2.h"
#include "wombat/lookup2.h"
#include "wombat/wtable.h"

#define HASH_INITVAL 1
Expand Down
2 changes: 1 addition & 1 deletion common/c_cpp/src/cpp/CommonStrUtils.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <wlock.h>
#include <wombat/wlock.h>
#include "wombat/CommonStrUtils.h"

namespace Wombat
Expand Down
2 changes: 1 addition & 1 deletion common/c_cpp/src/cpp/Lock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* 02110-1301 USA
*/

#include <wlock.h>
#include <wombat/wlock.h>
#include "wombat/Lock.h"

namespace Wombat {
Expand Down
2 changes: 1 addition & 1 deletion common/c_cpp/src/gunittest/c/port.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include <cstdlib>

#include "wombat/port.h"
#include "timers.h"
#include "wombat/timers.h"
#include <sys/types.h>

class CommonPortTestC : public ::testing::Test
Expand Down
2 changes: 1 addition & 1 deletion common/c_cpp/src/gunittest/c/timertest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include <cstdlib>

#include "wombat/port.h"
#include "timers.h"
#include "wombat/timers.h"
#include <sys/types.h>


Expand Down
2 changes: 1 addition & 1 deletion mama/c_cpp/src/c/bridge.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#include "mama/subscmsgtype.h"
#include "mamainternal.h"
#include "conflation/manager_int.h"
#include "wlock.h"
#include "wombat/wlock.h"
#include <wombat/thread.h>

#ifndef OPENMAMA_INTEGRATION
Expand Down
4 changes: 2 additions & 2 deletions mama/c_cpp/src/c/bridge/base/basedefs.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@

#include <wombat/wSemaphore.h>
#include <wombat/wtable.h>
#include <list.h>
#include <wombat/list.h>
#include <wombat/mempool.h>
#include <timers.h>
#include <wombat/timers.h>

#include <mama/integration/bridge.h>

Expand Down
2 changes: 1 addition & 1 deletion mama/c_cpp/src/c/bridge/base/bridge.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include <stdint.h>
#include <mama/mama.h>
#include <mama/version.h>
#include <timers.h>
#include <wombat/timers.h>
#include <wombat/strutils.h>
#include <mama/integration/bridge/base.h>
#include <mama/integration/bridge.h>
Expand Down
2 changes: 1 addition & 1 deletion mama/c_cpp/src/c/bridge/base/timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

#include <mama/mama.h>
#include <mama/timer.h>
#include <timers.h>
#include <wombat/timers.h>
#include <mama/integration/queue.h>
#include <mama/integration/bridge/base.h>
#include "basedefs.h"
Expand Down
2 changes: 1 addition & 1 deletion mama/c_cpp/src/c/bridge/noop/bridge.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

#include <mama/mama.h>
#include <mama/version.h>
#include <timers.h>
#include <wombat/timers.h>
#include <wombat/strutils.h>
#include <mama/integration/mama.h>
#include "bridgefunctions.h"
Expand Down
2 changes: 1 addition & 1 deletion mama/c_cpp/src/c/bridge/ompb/bridge.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

#include <mama/mama.h>
#include <mama/version.h>
#include <timers.h>
#include <wombat/timers.h>
#include <wombat/strutils.h>
#include <mama/integration/mama.h>
#include "bridgefunctions.h"
Expand Down
2 changes: 1 addition & 1 deletion mama/c_cpp/src/c/bridge/ompb/subscription.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include "bridgefunctions.h"
#include "transport.h"
#include <mama/mama.h>
#include <property.h>
#include <wombat/property.h>
#include <stdlib.h>
#include <string.h>

Expand Down
2 changes: 1 addition & 1 deletion mama/c_cpp/src/c/bridge/qpid/bridge.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include <stdint.h>
#include <mama/mama.h>
#include <mama/version.h>
#include <timers.h>
#include <wombat/timers.h>
#include <wombat/strutils.h>
#include "qpidbridgefunctions.h"
#include "qpiddefs.h"
Expand Down
4 changes: 2 additions & 2 deletions mama/c_cpp/src/c/bridge/qpid/qpiddefs.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@

#include <wombat/wSemaphore.h>
#include <wombat/wtable.h>
#include <list.h>
#include <wombat/list.h>
#include <wombat/mempool.h>
#include <timers.h>
#include <wombat/timers.h>

/* Qpid include files */
#include <proton/version.h>
Expand Down
4 changes: 2 additions & 2 deletions mama/c_cpp/src/c/bridge/qpid/transport.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

#include <stdint.h>
#include <wombat/port.h>
#include <property.h>
#include <wombat/property.h>
#include <mama/mama.h>
#include <queueimpl.h>
#include <msgimpl.h>
Expand All @@ -35,7 +35,7 @@
#include <msgimpl.h>
#include <subscriptionimpl.h>
#include <transportimpl.h>
#include <timers.h>
#include <wombat/timers.h>
#include <stdio.h>
#include <errno.h>
#include <wombat/queue.h>
Expand Down
2 changes: 1 addition & 1 deletion mama/c_cpp/src/c/clientmanageresponder.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include "mama/clientmanage.h"
#include "subscriptionimpl.h"
#include "clientmanageresponder.h"
#include "list.h"
#include "wombat/list.h"
#include "syncresponder.h"
#include "bridge.h"
#include "transportimpl.h"
Expand Down
2 changes: 1 addition & 1 deletion mama/c_cpp/src/c/endpointpool.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include <wombat/wtable.h>
#include <wombat/port.h>
#include <mama/integration/endpointpool.h>
#include <wlock.h>
#include <wombat/wlock.h>


/*=========================================================================
Expand Down
2 changes: 1 addition & 1 deletion mama/c_cpp/src/c/fieldcache/fieldcacheimpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include <mama/types.h>
#include "fieldcachemap.h"
#include "fieldcachelist.h"
#include <wlock.h>
#include <wombat/wlock.h>

#if defined(__cplusplus)
extern "C" {
Expand Down
6 changes: 3 additions & 3 deletions mama/c_cpp/src/c/imagerequest.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@
#include <imagerequest.h>
#include <throttle.h>
#include <bridge.h>
#include <list.h>
#include <wombat/list.h>
#include <mama/timer.h>
#include <mama/subscription.h>
#include <subscriptionimpl.h>
#include <assert.h>
#include "msgutils.h"
#include "destroyHandle.h"
#include "wlock.h"
#include "wombat/destroyHandle.h"
#include "wombat/wlock.h"
#include "msgimpl.h"
#include "inboximpl.h"
#include "publisherimpl.h"
Expand Down
2 changes: 1 addition & 1 deletion mama/c_cpp/src/c/log.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#include "mama/log.h"

#include "wombat/MRSWLock.h"
#include "property.h"
#include "wombat/property.h"
#include "mamainternal.h"

/* ******************************************************************* */
Expand Down
4 changes: 2 additions & 2 deletions mama/c_cpp/src/c/mama.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
#include <mama/version.h>
#include <bridge.h>
#include <payloadbridge.h>
#include <property.h>
#include <platform.h>
#include <wombat/property.h>
#include <wombat/platform.h>
#include <plugin.h>
#include <registerfunctions.h>

Expand Down
2 changes: 1 addition & 1 deletion mama/c_cpp/src/c/mama/integration/mama.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#define OPENMAMA_INTEGRATION_MAMA_H__

#include <wombat/wtable.h>
#include <property.h>
#include <wombat/property.h>
#include <mama/mama.h>
#include <mama/version.h>

Expand Down
Loading

0 comments on commit d9cf1ce

Please sign in to comment.