From 44ee54d5a2e8edc6b4aaf47a9c3f8d10c9a69052 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 18 Jun 2017 18:09:35 +0200 Subject: csv: link static --- csv/CMakeLists.txt | 2 +- csv/csv.cpp | 6 +++--- csv/csv.h | 4 +--- csv/export.hpp | 11 ----------- 4 files changed, 5 insertions(+), 18 deletions(-) delete mode 100644 csv/export.hpp (limited to 'csv') diff --git a/csv/CMakeLists.txt b/csv/CMakeLists.txt index 177db52e..697b147f 100644 --- a/csv/CMakeLists.txt +++ b/csv/CMakeLists.txt @@ -1 +1 @@ -otr_module(csv) +otr_module(csv STATIC) diff --git a/csv/csv.cpp b/csv/csv.cpp index 0f9072a7..66850d7f 100644 --- a/csv/csv.cpp +++ b/csv/csv.cpp @@ -99,8 +99,7 @@ bool CSV::getGameData(int id, unsigned char* table, QString& gamename) QString id_str(QString::number(id)); static const QString csv_path(OPENTRACK_BASE_PATH + - OPENTRACK_DOC_PATH + - QString("settings/facetracknoir supported games.csv")); + OPENTRACK_DOC_PATH "settings/facetracknoir supported games.csv"); QFile file(csv_path); @@ -178,7 +177,8 @@ bool CSV::getGameData(int id, unsigned char* table, QString& gamename) } } - qDebug() << "unknown game connected" << id; + if (id) + qDebug() << "unknown game connected" << id; return false; } diff --git a/csv/csv.h b/csv/csv.h index b8c40e27..34fa75d8 100644 --- a/csv/csv.h +++ b/csv/csv.h @@ -7,9 +7,7 @@ #include #include -#include "export.hpp" - -class OTR_CSV_EXPORT CSV +class CSV { public: QString readLine(); diff --git a/csv/export.hpp b/csv/export.hpp deleted file mode 100644 index 7d7dbe29..00000000 --- a/csv/export.hpp +++ /dev/null @@ -1,11 +0,0 @@ -// generates export.hpp for each module from compat/linkage.hpp - -#pragma once - -#include "compat/linkage-macros.hpp" - -#ifdef BUILD_CSV -# define OTR_CSV_EXPORT OTR_GENERIC_EXPORT -#else -# define OTR_CSV_EXPORT OTR_GENERIC_IMPORT -#endif -- cgit v1.2.3