mirror of
https://github.com/mangosfour/server.git
synced 2025-12-17 07:37:03 +00:00
[7098] Changed build system of contrib/extractor to CMake
This commit is contained in:
parent
a9476381bc
commit
cfde5746cb
7 changed files with 38 additions and 66 deletions
|
|
@ -1,23 +0,0 @@
|
|||
# Copyright (C) 2005-2009 MaNGOS <http://getmangos.com/>
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
|
||||
## Process this file with automake to produce Makefile.in
|
||||
|
||||
## Sub-directories to parse
|
||||
SUBDIRS = extractor
|
||||
|
||||
## Additional files to include when running 'make dist'
|
||||
# Nothing yet.
|
||||
21
contrib/extractor/CMakeLists.txt
Normal file
21
contrib/extractor/CMakeLists.txt
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
# Copyright (C) 2005-2009 MaNGOS project <http://getmangos.com/>
|
||||
#
|
||||
# This file is free software; as a special exception the author gives
|
||||
# unlimited permission to copy and/or distribute it, with or without
|
||||
# modifications, as long as this notice is preserved.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful, but
|
||||
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
|
||||
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
|
||||
cmake_minimum_required (VERSION 2.6)
|
||||
project (MANGOS_MAP_EXTRACTOR)
|
||||
|
||||
add_subdirectory (libmpq)
|
||||
|
||||
include_directories (${MANGOS_MAP_EXTRACTOR_SOURCE_DIR}/libmpq)
|
||||
link_directories (${MANGOS_MAP_EXTRACTOR_SOURCE_DIR}/libmpq)
|
||||
|
||||
add_executable (ad adt.cpp dbcfile.cpp mpq_libmpq.cpp System.cpp)
|
||||
|
||||
target_link_libraries (ad libmpq)
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
# The top-level input Makefile for mpq-tools
|
||||
|
||||
# Any directories which should be built and installed.
|
||||
SUBDIRS = libmpq
|
||||
|
||||
# The directories which are part of the distribution.
|
||||
DIST_SUBDIRS = $(SUBDIRS)
|
||||
|
||||
EXTRA_DIST = \
|
||||
README.linux
|
||||
|
|
@ -1,13 +1,7 @@
|
|||
Linux instructions
|
||||
------------------
|
||||
|
||||
1. Configure and build MaNGOS.
|
||||
2. cd contrib/map_extractor/libmpq/
|
||||
1. install cmake
|
||||
2. cmake -i
|
||||
3. make
|
||||
4. cd ..
|
||||
5. make
|
||||
6. run ad
|
||||
|
||||
if there are any problems create folder named .deps in contrib/map_extractor/
|
||||
it is old bug from first extractor and i am too lasy to fix it :)
|
||||
|
||||
4. ./ad
|
||||
|
|
|
|||
13
contrib/extractor/libmpq/CMakeLists.txt
Normal file
13
contrib/extractor/libmpq/CMakeLists.txt
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
# Copyright (C) 2005-2009 MaNGOS project <http://getmangos.com/>
|
||||
#
|
||||
# This file is free software; as a special exception the author gives
|
||||
# unlimited permission to copy and/or distribute it, with or without
|
||||
# modifications, as long as this notice is preserved.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful, but
|
||||
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
|
||||
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
|
||||
add_library (libmpq common.cpp explode.cpp extract.cpp huffman.cpp mpq.cpp parser.cpp wave.cpp )
|
||||
# link libmpq with zlib
|
||||
target_link_libraries (libmpq z)
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
# The input Makefile for the main mpq-tools
|
||||
|
||||
lib_LTLIBRARIES = libmpq.la
|
||||
noinst_HEADERS = explode.h huffman.h wave.h common.h
|
||||
|
||||
# The directory where the include files will be installed.
|
||||
libmpq_includedir = $(includedir)/libmpq
|
||||
|
||||
# Which header files to install.
|
||||
libmpq_include_HEADERS = mpq.h
|
||||
|
||||
libmpq_la_SOURCES = $(GENERAL_SRCS)
|
||||
libmpq_la_LDFLAGS = -release $(LIBMPQ_VERSION)
|
||||
libmpq_la_LIBADD = @Z_LIBS@
|
||||
|
||||
GENERAL_SRCS = \
|
||||
common.c \
|
||||
huffman.c \
|
||||
extract.c \
|
||||
explode.c \
|
||||
mpq.c \
|
||||
parser.c \
|
||||
wave.c
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "7097"
|
||||
#define REVISION_NR "7098"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue