Flatten source tree a bit
This commit is contained in:
parent
68d25d195d
commit
2d4bc24dd6
6
Makefile
6
Makefile
@ -1,4 +1,4 @@
|
|||||||
SOURCES = $(wildcard include/**/*.cpp include/*.cpp src/base/**/*.cpp)
|
SOURCES = $(wildcard include/**/*.cpp include/*.cpp src/base/*.cpp)
|
||||||
OBJECTS = $(patsubst %.cpp,%.o, $(SOURCES))
|
OBJECTS = $(patsubst %.cpp,%.o, $(SOURCES))
|
||||||
BASE_LIB = build/base.a
|
BASE_LIB = build/base.a
|
||||||
|
|
||||||
@ -11,7 +11,7 @@ CONFIG_SRC = $(wildcard src/settings/*.cpp)
|
|||||||
CONFIG_OBJ = $(patsubst %.cpp,%.o, $(CONFIG_SRC))
|
CONFIG_OBJ = $(patsubst %.cpp,%.o, $(CONFIG_SRC))
|
||||||
CONFIG_LIB = build/config.a
|
CONFIG_LIB = build/config.a
|
||||||
|
|
||||||
WIDGET_SRC = $(wildcard src/settings/*.cpp src/widgets/*.cpp)
|
WIDGET_SRC = $(wildcard src/settings/*.cpp src/widgets/*.cpp src/base/widget/*.cpp)
|
||||||
WIDGET_OBJ = $(patsubst %.cpp,%.o, $(WIDGET_SRC))
|
WIDGET_OBJ = $(patsubst %.cpp,%.o, $(WIDGET_SRC))
|
||||||
WIDGET_LIB = build/widget.a
|
WIDGET_LIB = build/widget.a
|
||||||
|
|
||||||
@ -24,6 +24,7 @@ CXXFLAGS += -Os -pipe -DNDEBUG $(INC_FLAGS)
|
|||||||
|
|
||||||
TEST_SRC = $(wildcard tests/*Test.cpp)
|
TEST_SRC = $(wildcard tests/*Test.cpp)
|
||||||
TESTS = $(patsubst %.cpp,%.o,$(TEST_SRC))
|
TESTS = $(patsubst %.cpp,%.o,$(TEST_SRC))
|
||||||
|
TEST_RUNNER = tests/runner
|
||||||
|
|
||||||
LDLIBS =
|
LDLIBS =
|
||||||
|
|
||||||
@ -175,3 +176,4 @@ clean:
|
|||||||
rm -f tests/runner
|
rm -f tests/runner
|
||||||
find . -name "*.gc*" -exec rm {} \;
|
find . -name "*.gc*" -exec rm {} \;
|
||||||
rm -rf `find . -name "*.dSYM" -print`
|
rm -rf `find . -name "*.dSYM" -print`
|
||||||
|
mkdir -p build
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
#ifndef SFTP_H
|
#ifndef SFTP_H
|
||||||
#define SFTP_H
|
#define SFTP_H
|
||||||
|
|
||||||
#include "../../common.h"
|
#include "../common.h"
|
||||||
|
|
||||||
// Socket includes
|
// Socket includes
|
||||||
#include <cstring>
|
#include <cstring>
|
@ -1,7 +1,7 @@
|
|||||||
#ifndef TYRO_CONFIG_H
|
#ifndef TYRO_CONFIG_H
|
||||||
#define TYRO_CONFIG_H
|
#define TYRO_CONFIG_H
|
||||||
|
|
||||||
#include "../../common.h"
|
#include "../common.h"
|
||||||
|
|
||||||
class TyroConfig {
|
class TyroConfig {
|
||||||
public:
|
public:
|
@ -2,7 +2,7 @@
|
|||||||
#define TYRO_LANG_CONFIG_H
|
#define TYRO_LANG_CONFIG_H
|
||||||
|
|
||||||
#include "../wx_common.h"
|
#include "../wx_common.h"
|
||||||
#include "../base/settings/Config.h"
|
#include "Config.h"
|
||||||
|
|
||||||
class LangConfig : TyroConfig {
|
class LangConfig : TyroConfig {
|
||||||
public:
|
public:
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
#define TYRO_THEME_CONFIG_H
|
#define TYRO_THEME_CONFIG_H
|
||||||
|
|
||||||
#include "../wx_common.h"
|
#include "../wx_common.h"
|
||||||
#include "../base/settings/Config.h"
|
#include "Config.h"
|
||||||
|
|
||||||
class ThemeConfig : TyroConfig {
|
class ThemeConfig : TyroConfig {
|
||||||
public:
|
public:
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#include "catch.hpp"
|
#include "catch.hpp"
|
||||||
#include "../src/base/settings/Config.h"
|
#include "../src/settings/Config.h"
|
||||||
|
|
||||||
TEST_CASE ("Base config class load json")
|
TEST_CASE ("Base config class load json")
|
||||||
{
|
{
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#include "catch.hpp"
|
#include "catch.hpp"
|
||||||
#include "../src/base/network/SFTP.h"
|
#include "../src/base/SFTP.h"
|
||||||
|
|
||||||
TEST_CASE("SFTP Library")
|
TEST_CASE("SFTP Library")
|
||||||
{
|
{
|
Loading…
Reference in New Issue
Block a user