* Bring .pro up to date

* Add libAthena.pc
* Make installable
This commit is contained in:
Phillip Stephens 2014-09-28 20:33:36 -07:00
parent 6976eda717
commit 30bda09849
22 changed files with 65 additions and 37 deletions

View File

@ -118,4 +118,3 @@ win32:HEADERS += \
OTHER_FILES += \
.travis.yml

View File

@ -8,7 +8,7 @@ DESTDIR = ./lib
contains(DEFINES, ATHENA_USE_QT){
QT += qt core
} else {
QT -= qt core
QT =
}
CONFIG(debug, debug|release){
@ -67,6 +67,11 @@ SOURCES += \
src/Athena/ZQuestFile.cpp \
src/Athena/ZQuestFileReader.cpp \
src/Athena/ZQuestFileWriter.cpp \
src/Athena/PHYSFSFileReader.cpp \
src/LZ77/LZBase.cpp \
src/LZ77/LZLookupTable.cpp \
src/LZ77/LZType10.cpp \
src/LZ77/LZType11.cpp \
src/bn.cpp \
src/ec.cpp \
src/md5.cpp \
@ -78,10 +83,10 @@ INCLUDEPATH += \
include
HEADERS += \
include/Athena/Global.hpp \
include/Athena/Stream.hpp \
include/Athena/Types.hpp \
include/Athena/Utility.hpp \
include/Athena/Global.hpp \
include/Athena/Exception.hpp \
include/Athena/FileNotFoundException.hpp \
include/Athena/IOException.hpp \
@ -89,19 +94,9 @@ HEADERS += \
include/Athena/InvalidOperationException.hpp \
include/Athena/FileReader.hpp \
include/Athena/FileWriter.hpp \
include/utf8.h \
include/utf8/checked.h \
include/utf8/core.h \
include/utf8/unchecked.h \
include/Athena/BinaryReader.hpp \
include/Athena/BinaryWriter.hpp \
include/Athena/NotImplementedException.hpp \
include/aes.h \
include/bn.h \
include/ec.h \
include/lzo.h \
include/md5.h \
include/sha1.h \
include/Athena/ALTTPEnums.hpp \
include/Athena/ALTTPFile.hpp \
include/Athena/ALTTPFileReader.hpp \
@ -131,7 +126,31 @@ HEADERS += \
include/Athena/WiiSaveWriter.hpp \
include/Athena/ZQuestFile.hpp \
include/Athena/ZQuestFileReader.hpp \
include/Athena/ZQuestFileWriter.hpp
include/Athena/ZQuestFileWriter.hpp \
include/Athena/PHYSFSFileReader.hpp \
include/LZ77/LZBase.hpp \
include/LZ77/LZLookupTable.hpp \
include/LZ77/LZType10.hpp \
include/LZ77/LZType11.hpp \
include/utf8.h \
include/utf8/checked.h \
include/utf8/core.h \
include/utf8/unchecked.h \
include/aes.h \
include/bn.h \
include/ec.h \
include/lzo.h \
include/md5.h \
include/sha1.h
OTHER_FILES += \
.travis.yml
unix {
target.path = /usr/lib
headerFiles.files = $$PWD/include/*
headerFiles.path = /usr/include/Athena
pkgconf.files = libAthena.pc
pkgconf.path = /usr/lib/pkgconfig
INSTALLS += target headerFiles pkgconf
}

View File

@ -18,9 +18,9 @@
#define __ALTTP_FILE_READER_HPP__
#include <string>
#include "Types.hpp"
#include "BinaryReader.hpp"
#include "ALTTPQuest.hpp"
#include "Athena/Types.hpp"
#include "Athena/BinaryReader.hpp"
#include "Athena/ALTTPQuest.hpp"
namespace Athena
{

View File

@ -20,8 +20,8 @@
#include "Types.hpp"
#include <string>
#include <vector>
#include "ALTTPStructs.hpp"
#include "ALTTPEnums.hpp"
#include "Athena/ALTTPStructs.hpp"
#include "Athena/ALTTPEnums.hpp"
namespace Athena
{

View File

@ -19,7 +19,7 @@
#ifndef __DOXYGEN_IGNORE__
#include <string>
#include "Types.hpp"
#include "Athena/Types.hpp"
namespace Athena
{

View File

@ -16,7 +16,7 @@
#ifndef __BINARYREADER_HPP__
#define __BINARYREADER_HPP__
#include "Stream.hpp"
#include "Athena/Stream.hpp"
#include <string>
#include <functional>

View File

@ -16,7 +16,7 @@
#ifndef __BINARYWRITER_HPP__
#define __BINARYWRITER_HPP__
#include "Stream.hpp"
#include "Athena/Stream.hpp"
#include <string>
#include <functional>

View File

@ -16,7 +16,7 @@
#ifndef __FILENOTFOUNDEXCEPTION_HPP__
#define __FILENOTFOUNDEXCEPTION_HPP__
#include "Exception.hpp"
#include "Athena/Exception.hpp"
namespace Athena
{

View File

@ -16,7 +16,7 @@
#ifndef FILESTREAM_HPP
#define FILESTREAM_HPP
#include "Stream.hpp"
#include "Athena/Stream.hpp"
#include <string>
#include <cstdio>

View File

@ -16,7 +16,7 @@
#ifndef __IOEXCEPTION_HPP__
#define __IOEXCEPTION_HPP__
#include "Exception.hpp"
#include "Athena/Exception.hpp"
namespace Athena

View File

@ -16,7 +16,7 @@
#ifndef INVALIDDATAEXCEPTION_HPP
#define INVALIDDATAEXCEPTION_HPP
#include "Exception.hpp"
#include "Athena/Exception.hpp"
#include <sstream>
namespace Athena

View File

@ -18,7 +18,7 @@
#include <string>
#include <stdarg.h>
#include "Exception.hpp"
#include "Athena/Exception.hpp"
namespace Athena
{

View File

@ -17,7 +17,7 @@
#ifndef __MCFILEREADER_HPP__
#define __MCFILEREADER_HPP__
#include "BinaryReader.hpp"
#include "Athena/BinaryReader.hpp"
namespace Athena
{

View File

@ -17,8 +17,8 @@
#ifndef __MCFILEWRITER_HPP__
#define __MCFILEWRITER_HPP__
#include "Types.hpp"
#include "BinaryWriter.hpp"
#include "Athena/Types.hpp"
#include "Athena/BinaryWriter.hpp"
namespace Athena
{

View File

@ -17,7 +17,7 @@
#ifndef __SSFILEREADER_HPP__
#define __SSFILEREADER_HPP__
#include "BinaryReader.hpp"
#include "Athena/BinaryReader.hpp"
namespace Athena
{

View File

@ -17,7 +17,7 @@
#ifndef __SSFILEWRITER_HPP__
#define __SSFILEWRITER_HPP__
#include "BinaryWriter.hpp"
#include "Athena/BinaryWriter.hpp"
namespace Athena
{

View File

@ -18,7 +18,7 @@
#define SKYWARDSWORDQUEST_HPP
#include "Athena/Global.hpp"
#include "ZQuestFile.hpp"
#include "Athena/ZQuestFile.hpp"
namespace Athena
{

View File

@ -20,7 +20,7 @@
#include <string>
#include <vector>
#include <stdarg.h>
#include "Types.hpp"
#include "Athena/Types.hpp"
namespace Athena
{

View File

@ -17,7 +17,7 @@
#ifndef __WIIIMAGE_HPP__
#define __WIIIMAGE_HPP__
#include "Types.hpp"
#include "Athena/Types.hpp"
namespace Athena
{

View File

@ -17,7 +17,7 @@
#ifndef __WII_SAVE_WRITER_HPP__
#define __WII_SAVE_WRITER_HPP__
#include "BinaryWriter.hpp"
#include "Athena/BinaryWriter.hpp"
namespace Athena
{

View File

@ -17,7 +17,7 @@
#ifndef __ZQUESTFILEREADER_HPP__
#define __ZQUESTFILEREADER_HPP__
#include "BinaryReader.hpp"
#include "Athena/BinaryReader.hpp"
namespace Athena
{

10
libAthena.pc Normal file
View File

@ -0,0 +1,10 @@
prefix=/usr
includedir=${prefix}/include
libdir=${prefix}/lib
Name: libAthena
Description: Basic cross platform IO library
Version: 1.0.0
Cflags: -I${includedir}/Athena
Libs: -L${libdir} -lAthena
Requires: zlib