Kill off the issues with the map/dbcextractors - and a thanks to imbecile@lavabit for the comment about loadlib.h

Just now the intent was to get it sorted out, as we might merge the tools into one "datatool" for all of this stuff.

--HG--
branch : trunk
rename : src/tools/map_extractor/loadlib/adt.cpp => src/tools/map_extractor/adt.cpp
rename : src/tools/map_extractor/loadlib/adt.h => src/tools/map_extractor/adt.h
rename : src/tools/map_extractor/loadlib/loadlib.cpp => src/tools/map_extractor/loadlib.cpp
rename : src/tools/map_extractor/loadlib/wdt.cpp => src/tools/map_extractor/wdt.cpp
rename : src/tools/map_extractor/loadlib/wdt.h => src/tools/map_extractor/wdt.h
This commit is contained in:
click
2010-06-23 10:16:40 +02:00
parent 30a59b7b69
commit 7bf807aee4
8 changed files with 19 additions and 49 deletions

View File

@@ -10,41 +10,11 @@
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
file(GLOB sources *.cpp)
file(GLOB loadlib_sources loadlib/*.cpp)
include_directories (
${CMAKE_SOURCE_DIR}/src/server/shared
${CMAKE_SOURCE_DIR}/externals/libmpq
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_SOURCE_DIR}/loadlib
)
link_directories(
${CMAKE_SOURCE_DIR}/externals/libmpq/libmpq
${CMAKE_CURRENT_SOURCE_DIR}}/loadlib
)
add_library(loadlib
${loadlib_sources}
)
if(NOT UNIX)
target_link_libraries(loadlib
zlib
)
else()
target_link_libraries(loadlib
${ZLIB_LIBRARIES}
)
endif()
add_library(libmpq
${CMAKE_SOURCE_DIR}/externals/libmpq/libmpq/common.c
${CMAKE_SOURCE_DIR}/externals/libmpq/libmpq/explode.c
${CMAKE_SOURCE_DIR}/externals/libmpq/libmpq/extract.c
${CMAKE_SOURCE_DIR}/externals/libmpq/libmpq/huffman.c
${CMAKE_SOURCE_DIR}/externals/libmpq/libmpq/mpq.c
${CMAKE_SOURCE_DIR}/externals/libmpq/libmpq/wave.c
${CMAKE_CURRENT_SOURCE_DIR}/loadlib
)
add_executable(mapextractor
@@ -53,14 +23,12 @@ add_executable(mapextractor
if(WIN32)
target_link_libraries(mapextractor
libmpq
loadlib
mpq
bzip2
)
else()
target_link_libraries(mapextractor
libmpq
loadlib
mpq
${BZIP2_LIBRARIES}
)
endif()

4
src/tools/map_extractor/System.cpp Normal file → Executable file
View File

@@ -14,8 +14,8 @@
#include "dbcfile.h"
#include "mpq_libmpq04.h"
#include "loadlib/adt.h"
#include "loadlib/wdt.h"
#include "adt.h"
#include "wdt.h"
#include <fcntl.h>
#if defined( __GNUC__ )

View File

@@ -3,26 +3,28 @@
#ifdef _WIN32
typedef __int64 int64;
typedef long int32;
typedef short int16;
typedef char int8;
typedef __int32 int32;
typedef __int16 int16;
typedef __int8 int8;
typedef unsigned __int64 uint64;
typedef unsigned long uint32;
typedef unsigned short uint16;
typedef unsigned char uint8;
typedef unsigned __int32 uint32;
typedef unsigned __int16 uint16;
typedef unsigned __int8 uint8;
#else
#include <stdint.h>
#ifndef uint64_t
#ifdef __linux__
#include <linux/types.h>
#endif
#endif
typedef int64_t int64;
typedef long int32;
typedef short int16;
typedef char int8;
typedef int32_t int32;
typedef int16_t int16;
typedef int8_t int8;
typedef uint64_t uint64;
typedef unsigned long uint32;
typedef unsigned short uint16;
typedef unsigned char uint8;
typedef uint32_t uint32;
typedef uint16_t uint16;
typedef uint8_t uint8;
#endif
#define FILE_FORMAT_VERSION 18