include_directories(
"include"
+ "${PROJECT_SOURCE_DIR}/config"
+ "${PROJECT_SOURCE_DIR}/LayerManagerUtils/include"
"${CMAKE_SOURCE_DIR}/LayerManagerClient/ilmClient/include"
"${CMAKE_SOURCE_DIR}/LayerManagerPlugins/IpcModules/IpcModuleLoader/include"
)
# add_executable(IpcModuleLoader_Test tests/IlmCommandTest.cpp)
# target_link_libraries(IpcModuleLoader_Test IpcModuleLoader ${LIBS} gtest)
# add_test(IpcModuleLoader IpcModuleLoader_Test )
-endif(WITH_TESTS)
\ No newline at end of file
+endif(WITH_TESTS)
****************************************************************************/
#include "IpcModuleLoader.h"
#include "IpcModule.h"
+#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <dlfcn.h>
//=============================================================================
// global variables
//=============================================================================
-const char* gDefaultPluginLookupPath = "/usr/lib/layermanager";
+const char* gDefaultPluginLookupPath = CMAKE_INSTALL_PREFIX"/lib/layermanager";
const char* gCommunicatorPluginDirectory = "/ipcmodules";
{ "getUintArray", (void**)&ipcModule->getUintArray }
};
- const int apiFunctionCount = sizeof (ApiFunctionTable) / sizeof(struct ApiFunction);
- int symbolCount = 0;
+ const unsigned int apiFunctionCount = sizeof (ApiFunctionTable) / sizeof(struct ApiFunction);
+ unsigned int symbolCount = 0;
strcat(fullFilePath, path);
strcat(fullFilePath, "/");
const char* displayName = ":0";
-const char* gPluginLookupPath = "/usr/lib/layermanager";
+const char* gPluginLookupPath = CMAKE_INSTALL_PREFIX"/lib/layermanager";
int displayWidth = 1280; // default value, override with -w argument
int displayHeight = 480; // default value, override with -h argument