Browse Source

Move plCmdParser to CoreLib.

Darryl Pogue 10 years ago
parent
commit
6ba5822117
  1. 2
      Sources/Plasma/Apps/plClient/winmain.cpp
  2. 2
      Sources/Plasma/Apps/plUruLauncher/plClientLauncher.cpp
  3. 2
      Sources/Plasma/CoreLib/CMakeLists.txt
  4. 0
      Sources/Plasma/CoreLib/plCmdParser.cpp
  5. 0
      Sources/Plasma/CoreLib/plCmdParser.h
  6. 4
      Sources/Plasma/NucleusLib/pnUtils/CMakeLists.txt
  7. 1
      Sources/Tests/CoreTests/CMakeLists.txt
  8. 2
      Sources/Tests/CoreTests/test_plCmdParser.cpp
  9. 1
      Sources/Tests/NucleusTests/CMakeLists.txt
  10. 16
      Sources/Tests/NucleusTests/pnUtilsTest/CMakeLists.txt

2
Sources/Plasma/Apps/plClient/winmain.cpp

@ -50,6 +50,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include <curl/curl.h>
#include "hsStream.h"
#include "plCmdParser.h"
#include "plClient.h"
#include "plClientResMgr/plClientResMgr.h"
#include "pfCrashHandler/plCrashCli.h"
@ -66,7 +67,6 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "plProduct.h"
#include "plNetGameLib/plNetGameLib.h"
#include "plPhysX/plSimulationMgr.h"
#include "pnUtils/plCmdParser.h"
#include "res/resource.h"

2
Sources/Plasma/Apps/plUruLauncher/plClientLauncher.cpp

@ -46,9 +46,9 @@ Mead, WA 99021
#include "plProduct.h"
#include "hsThread.h"
#include "hsTimer.h"
#include "plCmdParser.h"
#include "pnUtils/pnUtils.h"
#include "pnUtils/plCmdParser.h"
#include "pnAsyncCore/pnAsyncCore.h"
#include "plNetGameLib/plNetGameLib.h"
#include "plStatusLog/plStatusLog.h"

2
Sources/Plasma/CoreLib/CMakeLists.txt

@ -28,6 +28,7 @@ set(CoreLib_SOURCES
hsTemplates.cpp
hsWide.cpp
pcSmallRect.cpp
plCmdParser.cpp
plFileSystem.cpp
plFormat.cpp
plGeneric.cpp
@ -74,6 +75,7 @@ set(CoreLib_HEADERS
hsWide.h
hsWindows.h
pcSmallRect.h
plCmdParser.h
plFileSystem.h
plFormat.h
plGeneric.h

0
Sources/Plasma/NucleusLib/pnUtils/plCmdParser.cpp → Sources/Plasma/CoreLib/plCmdParser.cpp

0
Sources/Plasma/NucleusLib/pnUtils/plCmdParser.h → Sources/Plasma/CoreLib/plCmdParser.h

4
Sources/Plasma/NucleusLib/pnUtils/CMakeLists.txt

@ -15,8 +15,6 @@ set(pnUtils_HEADERS
pnUtSort.h
pnUtStr.h
pnUtTime.h
plCmdParser.h
)
set(pnUtils_SOURCES
@ -26,8 +24,6 @@ set(pnUtils_SOURCES
pnUtList.cpp
pnUtStr.cpp
pnUtTime.cpp
plCmdParser.cpp
)
add_library(pnUtils STATIC ${pnUtils_HEADERS} ${pnUtils_SOURCES})

1
Sources/Tests/CoreTests/CMakeLists.txt

@ -4,6 +4,7 @@ include_directories(../../Plasma/CoreLib)
SET(CoreLibTest_SOURCES
test_plString.cpp
test_plCmdParser.cpp
)
add_executable(test_CoreLib ${CoreLibTest_SOURCES})

2
Sources/Tests/NucleusTests/pnUtilsTest/test_plCmdParser.cpp → Sources/Tests/CoreTests/test_plCmdParser.cpp

@ -42,7 +42,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include <cstring>
#include <gtest/gtest.h>
#include "pnUtils/plCmdParser.h"
#include "plCmdParser.h"
TEST(plCmdParser, basic_parsing)
{

1
Sources/Tests/NucleusTests/CMakeLists.txt

@ -1,2 +1 @@
add_subdirectory(pnEncryptionTest)
add_subdirectory(pnUtilsTest)

16
Sources/Tests/NucleusTests/pnUtilsTest/CMakeLists.txt

@ -1,16 +0,0 @@
include_directories(${GTEST_INCLUDE_DIR})
include_directories(${gtest_SOURCE_DIR}/include ${gtest_SOURCE_DIR})
include_directories(../../../Plasma/CoreLib)
include_directories(../../../Plasma/NucleusLib)
set(pnUtilsTest_SOURCES
test_plCmdParser.cpp
)
add_executable(test_pnUtils ${pnUtilsTest_SOURCES})
target_link_libraries(test_pnUtils gtest gtest_main)
target_link_libraries(test_pnUtils pnUtils)
add_test(NAME test_pnUtils COMMAND test_pnUtils)
add_dependencies(check test_pnUtils)
Loading…
Cancel
Save