Refactoring the console matafile Tester

This commit is contained in:
Kirill Polyakov
2023-09-20 12:26:56 +03:00
parent 0e83957554
commit 46af1f43f7
3 changed files with 22 additions and 31 deletions

View File

@ -1,27 +0,0 @@
QT -= core
QT -= gui
TARGET = metafile
CONFIG += console
CONFIG -= app_bundle
TEMPLATE = app
CONFIG += c++14 cmdline
CORE_ROOT_DIR = $$PWD/../../../../..
PWD_ROOT_DIR = $$PWD
include($$CORE_ROOT_DIR/Common/base.pri)
ADD_DEPENDENCY(kernel, graphics, UnicodeConverter)
core_linux:include($$CORE_ROOT_DIR/Common/3dParty/icu/icu.pri)
core_windows:LIBS += -lgdi32 -ladvapi32 -luser32 -lshell32
core_linux:LIBS += -lz
SOURCES += \
main.cpp
DESTDIR = $$PWD_ROOT_DIR/build/$$CORE_BUILDS_PLATFORM_PREFIX/$$CORE_BUILDS_CONFIGURATION_PREFIX

View File

@ -0,0 +1,18 @@
TEMPLATE = app
CONFIG += console c++11
CONFIG -= app_bundle
CONFIG -= qt
TARGET = metafiletester
CORE_ROOT_DIR = $$PWD/../../../
PWD_ROOT_DIR = $$PWD
include($$CORE_ROOT_DIR/Common/base.pri)
include($$CORE_ROOT_DIR/Common/3dParty/icu/icu.pri)
ADD_DEPENDENCY(kernel, graphics, UnicodeConverter)
SOURCES += main.cpp
DESTDIR = $$CORE_BUILDS_BINARY_PATH

View File

@ -2,10 +2,10 @@
#include <iostream>
#include <string>
#include "../../../../graphics/pro/Fonts.h"
#include "../../../../graphics/pro/Graphics.h"
#include "../../../../fontengine/ApplicationFontsWorker.h"
#include "../../../../common/Directory.h"
#include "../../../DesktopEditor/graphics/pro/Fonts.h"
#include "../../../DesktopEditor/graphics/pro/Graphics.h"
#include "../../../DesktopEditor/fontengine/ApplicationFontsWorker.h"
#include "../../../DesktopEditor/common/Directory.h"
#define METAFILE_SUCCESSFUL_CONVERSION 0
#define METAFILE_UNSUCCESSFUL_CONVERSION -1