Created aistatemachine library and moved files.

This commit is contained in:
Aleric Inglewood
2012-07-25 03:27:02 +02:00
parent fe38f59bbb
commit cd93aba002
23 changed files with 66 additions and 21 deletions

View File

@@ -46,6 +46,7 @@ endif(NOT STANDALONE)
add_custom_target(prepare DEPENDS ${prepare_depends}) add_custom_target(prepare DEPENDS ${prepare_depends})
add_subdirectory(cmake) add_subdirectory(cmake)
add_subdirectory(${LIBS_OPEN_PREFIX}aistatemachine)
add_subdirectory(${LIBS_OPEN_PREFIX}cwdebug) add_subdirectory(${LIBS_OPEN_PREFIX}cwdebug)
add_subdirectory(${LIBS_OPEN_PREFIX}llaudio) add_subdirectory(${LIBS_OPEN_PREFIX}llaudio)
add_subdirectory(${LIBS_OPEN_PREFIX}llcharacter) add_subdirectory(${LIBS_OPEN_PREFIX}llcharacter)

View File

@@ -0,0 +1,46 @@
# -*- cmake -*-
project(aistatemachine)
include(00-Common)
include(LLCommon)
include(LLMessage)
include(LLMath)
include(LLXML)
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
include_directories(
${LLCOMMON_INCLUDE_DIRS}
${LLMESSAGE_INCLUDE_DIRS}
${LLMATH_INCLUDE_DIRS}
${LLXML_INCLUDE_DIRS}
)
set(aistatemachine_SOURCE_FILES
aistatemachine.cpp
aitimer.cpp
aicurl.cpp
aicurlthread.cpp
aicurleasyrequeststatemachine.cpp
)
set(aistatemachine_HEADER_FILES
CMakeLists.txt
aistatemachine.h
aitimer.h
aicurlprivate.h
aicurl.h
aicurlthread.h
aicurleasyrequeststatemachine.h
)
set_source_files_properties(${aistatemachine_HEADER_FILES}
PROPERTIES HEADER_FILE_ONLY TRUE)
list(APPEND aistatemachine_SOURCE_FILES ${aistatemachine_HEADER_FILES})
add_library (aistatemachine ${aistatemachine_SOURCE_FILES})
add_dependencies(aistatemachine prepare)

View File

@@ -1,4 +1,4 @@
# -*- cmake -*- # -*- cmake -*-
set(AISTATEMACHINE_INCLUDE_DIRS statemachine) set(AISTATEMACHINE_INCLUDE_DIRS ${LIBS_OPEN_DIR}/aistatemachine)
set(AISTATEMACHINE_LIBRARIES statemachine) set(AISTATEMACHINE_LIBRARIES aistatemachine)

View File

@@ -4,12 +4,14 @@ include(CARes)
include(CURL) include(CURL)
include(OpenSSL) include(OpenSSL)
include(XmlRpcEpi) include(XmlRpcEpi)
include(AIStateMachine)
set(LLMESSAGE_INCLUDE_DIRS set(LLMESSAGE_INCLUDE_DIRS
${LIBS_OPEN_DIR}/llmessage ${LIBS_OPEN_DIR}/llmessage
${CARES_INCLUDE_DIRS} ${CARES_INCLUDE_DIRS}
${CURL_INCLUDE_DIRS} ${CURL_INCLUDE_DIRS}
${OPENSSL_INCLUDE_DIRS} ${OPENSSL_INCLUDE_DIRS}
${AISTATEMACHINE_INCLUDE_DIRS}
) )
set(LLMESSAGE_LIBRARIES llmessage) set(LLMESSAGE_LIBRARIES llmessage aistatemachine)

View File

@@ -0,0 +1,4 @@
# -*- cmake -*-
set(STATEMACHINE_INCLUDE_DIRS statemachine)
set(STATEMACHINE_LIBRARIES statemachine)

View File

@@ -4,6 +4,7 @@ project(llmessage)
include(00-Common) include(00-Common)
include(LLCommon) include(LLCommon)
include(AIStateMachine)
include(LLMath) include(LLMath)
include(LLMessage) include(LLMessage)
include(LLVFS) include(LLVFS)
@@ -12,6 +13,7 @@ include_directories (${CMAKE_CURRENT_SOURCE_DIR})
include_directories( include_directories(
${LLCOMMON_INCLUDE_DIRS} ${LLCOMMON_INCLUDE_DIRS}
${AISTATEMACHINE_INCLUDE_DIRS}
${LLMATH_INCLUDE_DIRS} ${LLMATH_INCLUDE_DIRS}
${LLMESSAGE_INCLUDE_DIRS} ${LLMESSAGE_INCLUDE_DIRS}
${LLVFS_INCLUDE_DIRS} ${LLVFS_INCLUDE_DIRS}
@@ -29,8 +31,7 @@ set(llmessage_SOURCE_FILES
llchainio.cpp llchainio.cpp
llcircuit.cpp llcircuit.cpp
llclassifiedflags.cpp llclassifiedflags.cpp
aicurl.cpp llcurlrequest.cpp
aicurlthread.cpp
lldatapacker.cpp lldatapacker.cpp
lldispatcher.cpp lldispatcher.cpp
llfiltersd2xmlrpc.cpp llfiltersd2xmlrpc.cpp
@@ -116,9 +117,7 @@ set(llmessage_HEADER_FILES
llcircuit.h llcircuit.h
llclassifiedflags.h llclassifiedflags.h
llcurl.h llcurl.h
aicurl.h llcurlrequest.h
aicurlprivate.h
aicurlthread.h
lldatapacker.h lldatapacker.h
lldbstrings.h lldbstrings.h
lldispatcher.h lldispatcher.h

View File

@@ -41,7 +41,7 @@
#include "llsdserialize.h" #include "llsdserialize.h"
#include "llcurlrequest.h" #include "llcurlrequest.h"
#include "statemachine/aicurleasyrequeststatemachine.h" #include "aicurleasyrequeststatemachine.h"
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
// class Request // class Request

View File

@@ -30,7 +30,7 @@ include(LLInventory)
include(LLMath) include(LLMath)
include(LLMessage) include(LLMessage)
include(LLPlugin) include(LLPlugin)
include(AIStateMachine) include(StateMachine)
include(LLPrimitive) include(LLPrimitive)
include(LLRender) include(LLRender)
include(LLUI) include(LLUI)
@@ -54,6 +54,7 @@ endif (WINDOWS)
include_directories( include_directories(
${CMAKE_SOURCE_DIR}/newview ${CMAKE_SOURCE_DIR}/newview
${STATEMACHINE_INCLUDE_DIRS}
${DBUSGLIB_INCLUDE_DIRS} ${DBUSGLIB_INCLUDE_DIRS}
${HUNSPELL_INCLUDE_DIR} ${HUNSPELL_INCLUDE_DIR}
${ELFIO_INCLUDE_DIR} ${ELFIO_INCLUDE_DIR}
@@ -152,7 +153,6 @@ set(viewer_SOURCE_FILES
llconfirmationmanager.cpp llconfirmationmanager.cpp
llconsole.cpp llconsole.cpp
llcontainerview.cpp llcontainerview.cpp
llcurlrequest.cpp
llcurrencyuimanager.cpp llcurrencyuimanager.cpp
llcylinder.cpp llcylinder.cpp
lldebugmessagebox.cpp lldebugmessagebox.cpp
@@ -650,7 +650,6 @@ set(viewer_HEADER_FILES
llconfirmationmanager.h llconfirmationmanager.h
llconsole.h llconsole.h
llcontainerview.h llcontainerview.h
llcurlrequest.h
llcurrencyuimanager.h llcurrencyuimanager.h
llcylinder.h llcylinder.h
lldebugmessagebox.h lldebugmessagebox.h
@@ -1541,7 +1540,7 @@ target_link_libraries(${VIEWER_BINARY_NAME}
${LLINVENTORY_LIBRARIES} ${LLINVENTORY_LIBRARIES}
${LLMESSAGE_LIBRARIES} ${LLMESSAGE_LIBRARIES}
${LLPLUGIN_LIBRARIES} ${LLPLUGIN_LIBRARIES}
${AISTATEMACHINE_LIBRARIES} ${STATEMACHINE_LIBRARIES}
${LLPRIMITIVE_LIBRARIES} ${LLPRIMITIVE_LIBRARIES}
${LLRENDER_LIBRARIES} ${LLRENDER_LIBRARIES}
${FREETYPE_LIBRARIES} ${FREETYPE_LIBRARIES}

View File

@@ -78,7 +78,7 @@
#include "llnetmap.h" #include "llnetmap.h"
#include "llrender.h" #include "llrender.h"
#include "llfloaterchat.h" #include "llfloaterchat.h"
#include "statemachine/aistatemachine.h" #include "aistatemachine.h"
#include "aithreadsafe.h" #include "aithreadsafe.h"
#include "lldrawpoolbump.h" #include "lldrawpoolbump.h"
#include "emeraldboobutils.h" #include "emeraldboobutils.h"

View File

@@ -43,7 +43,7 @@
#include "llappviewer.h" #include "llappviewer.h"
#include "hippogridmanager.h" #include "hippogridmanager.h"
#include "statemachine/aicurleasyrequeststatemachine.h" #include "aicurleasyrequeststatemachine.h"
#ifdef CWDEBUG #ifdef CWDEBUG
#include <libcwd/buf2str.h> #include <libcwd/buf2str.h>

View File

@@ -37,23 +37,17 @@ include_directories(
) )
set(statemachine_SOURCE_FILES set(statemachine_SOURCE_FILES
aistatemachine.cpp
aicurleasyrequeststatemachine.cpp
aifilepicker.cpp aifilepicker.cpp
aifetchinventoryfolder.cpp aifetchinventoryfolder.cpp
aievent.cpp aievent.cpp
aitimer.cpp
) )
set(statemachine_HEADER_FILES set(statemachine_HEADER_FILES
CMakeLists.txt CMakeLists.txt
aistatemachine.h
aicurleasyrequeststatemachine.h
aifilepicker.h aifilepicker.h
aidirpicker.h aidirpicker.h
aifetchinventoryfolder.h aifetchinventoryfolder.h
aievent.h aievent.h
aitimer.h
) )
set_source_files_properties(${statemachine_HEADER_FILES} set_source_files_properties(${statemachine_HEADER_FILES}