]> Devoid-pointer.net GitWeb - anyanka.git/commitdiff
Remove libHPCS from the source tree and link dynamically against
authorMichal Malý <madcatxster@devoid-pointer.net>
Tue, 10 Mar 2015 23:11:28 +0000 (00:11 +0100)
committerMichal Malý <madcatxster@devoid-pointer.net>
Tue, 10 Mar 2015 23:11:28 +0000 (00:11 +0100)
libHPCS.so (Unix)

Anyanka.pro
datafilesloader.h

index 0b98519a57224421d12f9cf384ba40d3a19f920e..5d55a14b987e3a60b5af8d41e44b1a132c42aebf 100644 (file)
@@ -12,6 +12,9 @@ TEMPLATE = app
 
 unix {
         QMAKE_CXXFLAGS += -std=c++11 -Wall -Wextra
+        # You may want to adjust these paths based on the location of libHPCS on your system
+        INCLUDEPATH += $$PWD/libHPCS/include
+        LIBS += -L$$PWD/libHPCS/build -lHPCS
 }
 win32 {
         # Add project root directory to work around VC11 include path scheme
@@ -19,8 +22,6 @@ win32 {
         INCLUDEPATH += "./libHPCS"
 }
 
-DEFINES += _HPCS_LITTLE_ENDIAN
-
 CONFIG(debug, debug|release) {
     DEFINES += ANYANKA_DEBUG
     message("Debug build")
@@ -58,7 +59,6 @@ SOURCES += main.cpp\
     imagedrawer.cpp \
     signaldrawer.cpp \
     jsonserializable.cpp \
-    libHPCS/libhpcs.c \
     gui/failedfilesdialog.cpp \
     helpers.cpp \
     usersettings.cpp
@@ -95,7 +95,6 @@ HEADERS  += \
     enumflags.h \
     jsonserializable.h \
     helpers.h \
-    libHPCS/libhpcs.h \
     gui/failedfilesdialog.h \
     usersettings.h
 
index 1bc4a7174af0941322c089f0e31fedbb98dd9813..f38f60465693d03ea95c484c56985ba26c20be2c 100644 (file)
@@ -24,7 +24,7 @@
 #ifndef DATAFILESLOADER_H
 #define DATAFILESLOADER_H
 
-#include "libHPCS/libhpcs.h"
+#include "libhpcs.h"
 #include <QtCore/QDir>
 #include <QtCore/QObject>
 #include <vector>