spun off atdna into separate repo

This commit is contained in:
Jack Andersen 2015-06-22 14:26:43 -10:00
parent 071d91a671
commit 0bb90ff2e0
5 changed files with 2 additions and 1252 deletions

View File

@ -1,11 +1,11 @@
# PKGBUILD for libAthena # PKGBUILD for libAthena
_pkgname=libathena _pkgname=libathena
pkgname=$_pkgname-git pkgname=$_pkgname-git
pkgver=1.1.0.43.g490c6d5 pkgver=1.1.0.44.g071d91a
pkgrel=1 pkgrel=1
pkgdesc="Basic cross platform IO library" pkgdesc="Basic cross platform IO library"
arch=('i686' 'x86_64') arch=('i686' 'x86_64')
source=("${pkgname%-*}::git+https://github.com/Antidote/Athena.git") source=("${pkgname%-*}::git+https://github.com/libAthena/Athena.git")
options=(staticlibs) options=(staticlibs)
license="MIT" license="MIT"
makedepends=('git qt5-base sed') makedepends=('git qt5-base sed')

View File

@ -1,30 +0,0 @@
# PKGBUILD for atdna
_pkgname=atdna
pkgname=$_pkgname-git
pkgver=1.1.0.43.g490c6d5
pkgrel=1
pkgdesc="Companion DNA utility for libAthena"
arch=('i686' 'x86_64')
source=("${pkgname%-*}::git+https://github.com/Antidote/Athena.git")
options=(staticlibs)
license="MIT"
makedepends=('git qt5-base sed clang libathena-git')
depends=('libathena-git')
md5sums=('SKIP')
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/$_pkgname"
git describe --tags | sed 's|-|.|g'
}
build() {
cd "$srcdir/$_pkgname/atdna"
qmake PREFIX="$pkgdir/usr" INSTALL_PREFIX="/usr" && make
}
package() {
cd "$srcdir/$_pkgname/atdna"
qmake PREFIX="$pkgdir/usr" INSTALL_PREFIX="/usr" && make install
}

View File

@ -1,66 +0,0 @@
TEMPLATE = app
CONFIG += console c++11
CONFIG -= app_bundle
CONFIG -= qt
QT =
DEFINES += __STDC_LIMIT_MACROS=1 __STDC_CONSTANT_MACROS=1
QMAKE_CXXFLAGS += -fno-rtti
QMAKE_CXXFLAGS_WARN_ON = -Wno-unused-parameter
isEmpty(LLVM_CONFIG) {
LLVM_CONFIG = llvm-config
}
INCLUDEPATH += ../include
INCLUDEPATH += $$system($$LLVM_CONFIG --includedir)
LIBS += -L$$system($$LLVM_CONFIG --libdir)
CONFIG(debug, debug|release) {
# FOR FULL DEBUGGING, PLEASE UNCOMMENT THESE AND POINT THEM TO
# THE INSTALL PREFIX OF YOUR OWN DEBUG BUILD OF LLVM/CLANG!!
#INCLUDEPATH += /home/jacko/llvm-build/usr/include
#LIBS += -L/home/jacko/llvm-build/usr/lib
LIBS += -g
} else {
LIBS += -flto
}
SOURCES += \
main.cpp
LIBS += -lclangFrontend -lclangTooling -lclangDriver \
-lclangSerialization -lclangParse -lclangSema \
-lclangAnalysis -lclangEdit \
-lclangAST -lclangLex -lclangBasic \
-lLLVMOption -lLLVMMCParser -lLLVMBitReader \
-lLLVMMC -lLLVMSupport -lz -lpthread -lcurses -ldl
HEADERS += \
test.hpp
unix {
isEmpty(PREFIX) {
PREFIX = /usr/local
}
isEmpty(INSTALL_PREFIX) {
INSTALL_PREFIX = /usr/local
}
utilFiles.path = $$PREFIX/bin
utilFiles.files = $$OUT_PWD/atdna
INSTALLS += utilFiles
}
win32 {
isEmpty(PREFIX) {
PREFIX = $$PWD/pkg
}
isEmpty(INSTALL_PREFIX) {
INSTALL_PREFIX = $$PWD/pkg
}
utilFiles.path = $$PREFIX/bin
utilFiles.files = $$OUT_PWD/atdna
INSTALLS += utilFiles
}
DEFINES += INSTALL_PREFIX="$$INSTALL_PREFIX"

File diff suppressed because it is too large Load Diff

View File

@ -1,69 +0,0 @@
#include <Athena/DNA.hpp>
using namespace Athena;
typedef io::DNA<BigEndian> BigDNA;
struct TESTSubFile : public BigDNA
{
DECL_DNA
Value<atUint32> sub1;
Value<atUint32> sub2;
};
struct TESTSubClassFile : public TESTSubFile
{
DECL_DNA
Value<atUint32> sub3;
Value<atUint32> sub4;
};
struct TESTSubSubClassFile : public TESTSubClassFile
{
DECL_DNA
Value<atUint32> sub5;
Value<atUint32> sub6;
};
struct TESTFile : public BigDNA
{
DECL_DNA
Value<bool> varBool;
Value<atUint32> var32;
Value<atUint16> var16;
Value<atVec3f> vec3;
Value<atVec4f> vec4;
struct TESTNestedSubFile : public BigDNA
{
DECL_DNA
Value<atUint32> nestSub1;
Value<atUint32> nestSub2;
} nestedSubFile;
TESTSubFile subFile;
Align<4> align;
struct TESTExplicitSubFile : public BigDNA
{
DECL_EXPLICIT_DNA
Value<atUint32> explSub1;
Value<atUint32> explSub2;
} explSubFile;
Value<atUint32> arrCount[2];
Vector<atUint32, DNA_COUNT(arrCount[0])> array;
Seek<21, Current> seek;
Value<atUint32> arrCount2;
Vector<TESTSubFile, DNA_COUNT(arrCount[1] + arrCount2)> array2;
Value<atUint32> bufSz;
Buffer<DNA_COUNT(bufSz)> buf;
String<32> str;
WString<64> wstr;
UTF8<> utf8str[5];
};