Added translation to Russian. Fixed non-standard lamda in crossword generating. Added release builder script
This commit is contained in:
6
.gitignore
vendored
6
.gitignore
vendored
@@ -52,4 +52,8 @@ Debug
|
|||||||
#Release folder is NOT code!
|
#Release folder is NOT code!
|
||||||
Release
|
Release
|
||||||
big_cross_ru.txt
|
big_cross_ru.txt
|
||||||
big_cross_eng.txt
|
big_cross_eng.txt
|
||||||
|
cur_release
|
||||||
|
|
||||||
|
#Just statistics
|
||||||
|
crossgen_time.txt
|
||||||
122
CrossBench/CrossBench.mk
Normal file
122
CrossBench/CrossBench.mk
Normal file
@@ -0,0 +1,122 @@
|
|||||||
|
##
|
||||||
|
## Auto Generated makefile by CodeLite IDE
|
||||||
|
## any manual changes will be erased
|
||||||
|
##
|
||||||
|
## Release
|
||||||
|
ProjectName :=CrossBench
|
||||||
|
ConfigurationName :=Release
|
||||||
|
WorkspacePath := "/data/Sync/SyncProjects/CrossGen"
|
||||||
|
ProjectPath := "/data/Sync/SyncProjects/CrossGen/CrossBench"
|
||||||
|
IntermediateDirectory :=./Release
|
||||||
|
OutDir := $(IntermediateDirectory)
|
||||||
|
CurrentFileName :=
|
||||||
|
CurrentFilePath :=
|
||||||
|
CurrentFileFullPath :=
|
||||||
|
User :=Aleksey Lobanov
|
||||||
|
Date :=29/06/15
|
||||||
|
CodeLitePath :="/home/alex/.codelite"
|
||||||
|
LinkerName :=/usr/bin/g++-4.8
|
||||||
|
SharedObjectLinkerName :=/usr/bin/g++-4.8 -shared -fPIC
|
||||||
|
ObjectSuffix :=.o
|
||||||
|
DependSuffix :=.o.d
|
||||||
|
PreprocessSuffix :=.i
|
||||||
|
DebugSwitch :=-g
|
||||||
|
IncludeSwitch :=-I
|
||||||
|
LibrarySwitch :=-l
|
||||||
|
OutputSwitch :=-o
|
||||||
|
LibraryPathSwitch :=-L
|
||||||
|
PreprocessorSwitch :=-D
|
||||||
|
SourceSwitch :=-c
|
||||||
|
OutputFile :=$(IntermediateDirectory)/$(ProjectName)
|
||||||
|
Preprocessors :=$(PreprocessorSwitch)NDEBUG
|
||||||
|
ObjectSwitch :=-o
|
||||||
|
ArchiveOutputSwitch :=
|
||||||
|
PreprocessOnlySwitch :=-E
|
||||||
|
ObjectsFileList :="CrossBench.txt"
|
||||||
|
PCHCompileFlags :=
|
||||||
|
MakeDirCommand :=mkdir -p
|
||||||
|
LinkOptions := -s $(shell wx-config --debug=no --libs --unicode=yes)
|
||||||
|
IncludePath := $(IncludeSwitch). $(IncludeSwitch)../src
|
||||||
|
IncludePCH :=
|
||||||
|
RcIncludePath :=
|
||||||
|
Libs :=
|
||||||
|
ArLibs :=
|
||||||
|
LibPath := $(LibraryPathSwitch).
|
||||||
|
|
||||||
|
##
|
||||||
|
## Common variables
|
||||||
|
## AR, CXX, CC, AS, CXXFLAGS and CFLAGS can be overriden using an environment variables
|
||||||
|
##
|
||||||
|
AR := /usr/bin/ar rcu
|
||||||
|
CXX := /usr/bin/g++-4.8
|
||||||
|
CC := /usr/bin/gcc-4.8
|
||||||
|
CXXFLAGS := -std=c++11 -O2 -Wall $(shell wx-config --cxxflags --unicode=yes --debug=no) $(Preprocessors)
|
||||||
|
CFLAGS := -O2 -Wall $(shell wx-config --cxxflags --unicode=yes --debug=no) $(Preprocessors)
|
||||||
|
ASFLAGS :=
|
||||||
|
AS := /usr/bin/as
|
||||||
|
|
||||||
|
|
||||||
|
##
|
||||||
|
## User defined environment variables
|
||||||
|
##
|
||||||
|
CodeLiteDir:=/usr/share/codelite
|
||||||
|
Objects0=$(IntermediateDirectory)/main.cpp$(ObjectSuffix) $(IntermediateDirectory)/src_crossexport.cpp$(ObjectSuffix) $(IntermediateDirectory)/src_crossgen.cpp$(ObjectSuffix)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Objects=$(Objects0)
|
||||||
|
|
||||||
|
##
|
||||||
|
## Main Build Targets
|
||||||
|
##
|
||||||
|
.PHONY: all clean PreBuild PrePreBuild PostBuild
|
||||||
|
all: $(OutputFile)
|
||||||
|
|
||||||
|
$(OutputFile): $(IntermediateDirectory)/.d $(Objects)
|
||||||
|
@$(MakeDirCommand) $(@D)
|
||||||
|
@echo "" > $(IntermediateDirectory)/.d
|
||||||
|
@echo $(Objects0) > $(ObjectsFileList)
|
||||||
|
$(LinkerName) $(OutputSwitch)$(OutputFile) @$(ObjectsFileList) $(LibPath) $(Libs) $(LinkOptions)
|
||||||
|
|
||||||
|
$(IntermediateDirectory)/.d:
|
||||||
|
@test -d ./Release || $(MakeDirCommand) ./Release
|
||||||
|
|
||||||
|
PreBuild:
|
||||||
|
|
||||||
|
|
||||||
|
##
|
||||||
|
## Objects
|
||||||
|
##
|
||||||
|
$(IntermediateDirectory)/main.cpp$(ObjectSuffix): main.cpp $(IntermediateDirectory)/main.cpp$(DependSuffix)
|
||||||
|
$(CXX) $(IncludePCH) $(SourceSwitch) "/data/Sync/SyncProjects/CrossGen/CrossBench/main.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/main.cpp$(ObjectSuffix) $(IncludePath)
|
||||||
|
$(IntermediateDirectory)/main.cpp$(DependSuffix): main.cpp
|
||||||
|
@$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/main.cpp$(ObjectSuffix) -MF$(IntermediateDirectory)/main.cpp$(DependSuffix) -MM "main.cpp"
|
||||||
|
|
||||||
|
$(IntermediateDirectory)/main.cpp$(PreprocessSuffix): main.cpp
|
||||||
|
@$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/main.cpp$(PreprocessSuffix) "main.cpp"
|
||||||
|
|
||||||
|
$(IntermediateDirectory)/src_crossexport.cpp$(ObjectSuffix): ../src/crossexport.cpp $(IntermediateDirectory)/src_crossexport.cpp$(DependSuffix)
|
||||||
|
$(CXX) $(IncludePCH) $(SourceSwitch) "/data/Sync/SyncProjects/CrossGen/src/crossexport.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/src_crossexport.cpp$(ObjectSuffix) $(IncludePath)
|
||||||
|
$(IntermediateDirectory)/src_crossexport.cpp$(DependSuffix): ../src/crossexport.cpp
|
||||||
|
@$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/src_crossexport.cpp$(ObjectSuffix) -MF$(IntermediateDirectory)/src_crossexport.cpp$(DependSuffix) -MM "../src/crossexport.cpp"
|
||||||
|
|
||||||
|
$(IntermediateDirectory)/src_crossexport.cpp$(PreprocessSuffix): ../src/crossexport.cpp
|
||||||
|
@$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/src_crossexport.cpp$(PreprocessSuffix) "../src/crossexport.cpp"
|
||||||
|
|
||||||
|
$(IntermediateDirectory)/src_crossgen.cpp$(ObjectSuffix): ../src/crossgen.cpp $(IntermediateDirectory)/src_crossgen.cpp$(DependSuffix)
|
||||||
|
$(CXX) $(IncludePCH) $(SourceSwitch) "/data/Sync/SyncProjects/CrossGen/src/crossgen.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/src_crossgen.cpp$(ObjectSuffix) $(IncludePath)
|
||||||
|
$(IntermediateDirectory)/src_crossgen.cpp$(DependSuffix): ../src/crossgen.cpp
|
||||||
|
@$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/src_crossgen.cpp$(ObjectSuffix) -MF$(IntermediateDirectory)/src_crossgen.cpp$(DependSuffix) -MM "../src/crossgen.cpp"
|
||||||
|
|
||||||
|
$(IntermediateDirectory)/src_crossgen.cpp$(PreprocessSuffix): ../src/crossgen.cpp
|
||||||
|
@$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/src_crossgen.cpp$(PreprocessSuffix) "../src/crossgen.cpp"
|
||||||
|
|
||||||
|
|
||||||
|
-include $(IntermediateDirectory)/*$(DependSuffix)
|
||||||
|
##
|
||||||
|
## Clean
|
||||||
|
##
|
||||||
|
clean:
|
||||||
|
$(RM) -r ./Release/
|
||||||
|
|
||||||
|
|
||||||
8
Makefile
Normal file
8
Makefile
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
.PHONY: clean All
|
||||||
|
|
||||||
|
All:
|
||||||
|
@echo "----------Building project:[ wxCrossGen - Release ]----------"
|
||||||
|
@cd "wxCrossGen" && $(MAKE) -f "wxCrossGen.mk"
|
||||||
|
clean:
|
||||||
|
@echo "----------Cleaning project:[ wxCrossGen - Release ]----------"
|
||||||
|
@cd "wxCrossGen" && $(MAKE) -f "wxCrossGen.mk" clean
|
||||||
BIN
Translations/ru/CrossGen.mo
Normal file
BIN
Translations/ru/CrossGen.mo
Normal file
Binary file not shown.
157
Translations/ru/CrossGen.po
Normal file
157
Translations/ru/CrossGen.po
Normal file
@@ -0,0 +1,157 @@
|
|||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Project-Id-Version: CrossGen\n"
|
||||||
|
"POT-Creation-Date: 2015-07-23 22:23+0300\n"
|
||||||
|
"PO-Revision-Date: 2015-07-23 22:23+0300\n"
|
||||||
|
"Last-Translator: Aleksey Lobanov <alekseylobanov1@gmail.com>\n"
|
||||||
|
"Language-Team: Aleksey Lobanov <alekseylobanov1@gmail.com>\n"
|
||||||
|
"Language: Russian\n"
|
||||||
|
"MIME-Version: 1.0\n"
|
||||||
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
"X-Generator: Poedit 1.5.4\n"
|
||||||
|
"X-Poedit-KeywordsList: _;gettext;gettext_noop\n"
|
||||||
|
"X-Poedit-Basepath: ../../\n"
|
||||||
|
"X-Poedit-SourceCharset: UTF-8\n"
|
||||||
|
"X-Poedit-SearchPath-0: src\n"
|
||||||
|
"X-Poedit-SearchPath-1: wxCrossGen\n"
|
||||||
|
|
||||||
|
#: src/crossexport.cpp:43
|
||||||
|
msgid "Vertical words:"
|
||||||
|
msgstr "По вертикали:"
|
||||||
|
|
||||||
|
#: src/crossexport.cpp:51
|
||||||
|
msgid "Horisontal words:"
|
||||||
|
msgstr "По горизонтали:"
|
||||||
|
|
||||||
|
#: wxCrossGen/fmain.cpp:28
|
||||||
|
msgid "Open crossword file"
|
||||||
|
msgstr "Открыть файл кроссворда"
|
||||||
|
|
||||||
|
#: wxCrossGen/fmain.cpp:29
|
||||||
|
msgid "Files of crossword (*.cross)|*.cross"
|
||||||
|
msgstr "Файлы кроссворда (*.cross)|*.cross"
|
||||||
|
|
||||||
|
#: wxCrossGen/fmain.cpp:35
|
||||||
|
msgid "Cannot open file "
|
||||||
|
msgstr "Не могу открыть файл"
|
||||||
|
|
||||||
|
#: wxCrossGen/fmain.cpp:35 wxCrossGen/fmain.cpp:167
|
||||||
|
#: wxCrossGen/fsettings.cpp:12 wxCrossGen/fsettings.cpp:21
|
||||||
|
msgid "Error"
|
||||||
|
msgstr "Ошибка"
|
||||||
|
|
||||||
|
#: wxCrossGen/fmain.cpp:132
|
||||||
|
msgid "Crossword grid isn't loaded!"
|
||||||
|
msgstr "Сетка кроссврода ещё не загружена"
|
||||||
|
|
||||||
|
#: wxCrossGen/fmain.cpp:132
|
||||||
|
msgid "Warning"
|
||||||
|
msgstr "Предупреждение"
|
||||||
|
|
||||||
|
#: wxCrossGen/fmain.cpp:167
|
||||||
|
msgid "Cannot generate crossword"
|
||||||
|
msgstr "Невозможно сгенерировать кроссворд"
|
||||||
|
|
||||||
|
#: wxCrossGen/fmain.cpp:174
|
||||||
|
msgid "Grid isn't loaded now"
|
||||||
|
msgstr "Сетка ещё не загружена"
|
||||||
|
|
||||||
|
#: wxCrossGen/fmain.cpp:174
|
||||||
|
msgid "Info"
|
||||||
|
msgstr "Информация"
|
||||||
|
|
||||||
|
#: wxCrossGen/fmain.cpp:177
|
||||||
|
msgid "Exporting crossword"
|
||||||
|
msgstr "Экспорт кроссворда"
|
||||||
|
|
||||||
|
#: wxCrossGen/fmain.cpp:178
|
||||||
|
msgid "txt files (*.txt)|*.txt"
|
||||||
|
msgstr "Текстовые файлы (*.txt)|*.txt"
|
||||||
|
|
||||||
|
#: wxCrossGen/fmain.cpp:187
|
||||||
|
#, c-format
|
||||||
|
msgid "Cannot save current contents to file '%s'."
|
||||||
|
msgstr "Не могу сохранить текущие данные в '%s'."
|
||||||
|
|
||||||
|
#: wxCrossGen/fsettings.cpp:4
|
||||||
|
msgid "Open dictionary file"
|
||||||
|
msgstr "Открыть файл словаря"
|
||||||
|
|
||||||
|
#: wxCrossGen/fsettings.cpp:5
|
||||||
|
msgid "Files of dictionaries (*.txt)|*.txt"
|
||||||
|
msgstr "Файлы словаря (*.txt)|*.txt"
|
||||||
|
|
||||||
|
#: wxCrossGen/fsettings.cpp:12 wxCrossGen/fsettings.cpp:21
|
||||||
|
msgid "Cannot open dictionary file "
|
||||||
|
msgstr "Не могу открыть файл словаря"
|
||||||
|
|
||||||
|
#: wxCrossGen/fbgui/fbgui.cpp:19
|
||||||
|
msgid "&Open grid"
|
||||||
|
msgstr "Открыть сетку"
|
||||||
|
|
||||||
|
#: wxCrossGen/fbgui/fbgui.cpp:23
|
||||||
|
msgid "&Generate"
|
||||||
|
msgstr "Генерировать"
|
||||||
|
|
||||||
|
#: wxCrossGen/fbgui/fbgui.cpp:27
|
||||||
|
msgid "&Export"
|
||||||
|
msgstr "Экспорт"
|
||||||
|
|
||||||
|
#: wxCrossGen/fbgui/fbgui.cpp:31
|
||||||
|
msgid "&Settings"
|
||||||
|
msgstr "Настройки"
|
||||||
|
|
||||||
|
#: wxCrossGen/fbgui/fbgui.cpp:35
|
||||||
|
msgid "E&xit"
|
||||||
|
msgstr "Выход"
|
||||||
|
|
||||||
|
#: wxCrossGen/fbgui/fbgui.cpp:38
|
||||||
|
msgid "File"
|
||||||
|
msgstr "Файл"
|
||||||
|
|
||||||
|
#: wxCrossGen/fbgui/fbgui.cpp:42
|
||||||
|
msgid "&About"
|
||||||
|
msgstr "О программе"
|
||||||
|
|
||||||
|
#: wxCrossGen/fbgui/fbgui.cpp:45
|
||||||
|
msgid "Help"
|
||||||
|
msgstr "Помощь"
|
||||||
|
|
||||||
|
#: wxCrossGen/fbgui/fbgui.cpp:58 wxCrossGen/fbgui/fbgui.cpp:136
|
||||||
|
msgid "..."
|
||||||
|
msgstr "..."
|
||||||
|
|
||||||
|
#: wxCrossGen/fbgui/fbgui.cpp:82
|
||||||
|
msgid "Generate"
|
||||||
|
msgstr "Гененрировать"
|
||||||
|
|
||||||
|
#: wxCrossGen/fbgui/fbgui.cpp:126
|
||||||
|
msgid "Dict path:"
|
||||||
|
msgstr "Путь к словарю:"
|
||||||
|
|
||||||
|
#: wxCrossGen/fbgui/fbgui.cpp:150
|
||||||
|
msgid "Cancel"
|
||||||
|
msgstr "Отмена"
|
||||||
|
|
||||||
|
#: wxCrossGen/fbgui/fbgui.cpp:153
|
||||||
|
msgid "OK"
|
||||||
|
msgstr "OK"
|
||||||
|
|
||||||
|
#: wxCrossGen/fbgui/fbgui.h:65
|
||||||
|
msgid "CrossGen"
|
||||||
|
msgstr "CrossGen"
|
||||||
|
|
||||||
|
#: wxCrossGen/fbgui/fbgui.h:95
|
||||||
|
msgid "Settings"
|
||||||
|
msgstr "Настройки"
|
||||||
|
|
||||||
|
#: wxCrossGen/fmain.hpp:50
|
||||||
|
msgid "Aleksey Lobanov"
|
||||||
|
msgstr "Алексей Лобанов"
|
||||||
|
|
||||||
|
#: wxCrossGen/fmain.hpp:51
|
||||||
|
msgid "Simple GUI cross-generation application. Yet another bike"
|
||||||
|
msgstr ""
|
||||||
|
"Простое графическое приложение для генерации кроссворда по заданной сетке. "
|
||||||
|
"Ещё одно."
|
||||||
7
create_release.sh
Executable file
7
create_release.sh
Executable file
@@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
mkdir cur_release
|
||||||
|
cp Release/wxCrossGen.out cur_release/CrossGen
|
||||||
|
cp Release/big_cross_ru.txt cur_release/big_cross_ru.txt
|
||||||
|
cp Release/big_cross_eng.txt cur_release/big_cross_eng.txt
|
||||||
|
cd Translations
|
||||||
|
cp -r * ../cur_release
|
||||||
@@ -109,7 +109,7 @@ void generateAllWords(const DictType &dict, AllWordsType &words_out,
|
|||||||
// else return points for scoreng. More = better
|
// else return points for scoreng. More = better
|
||||||
// TODO: improve formula
|
// TODO: improve formula
|
||||||
std::function< int(const wxString& ) > getWordScore = [freqs, freqs_sorted, char_cnt]
|
std::function< int(const wxString& ) > getWordScore = [freqs, freqs_sorted, char_cnt]
|
||||||
(const wxString &s){
|
(const wxString &s) -> int{
|
||||||
double score = 1;
|
double score = 1;
|
||||||
for (auto ch: s)
|
for (auto ch: s)
|
||||||
score *= static_cast<double>(freqs.at(ch))/char_cnt;
|
score *= static_cast<double>(freqs.at(ch))/char_cnt;
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
#include "fsettings.hpp"
|
#include "fsettings.hpp"
|
||||||
|
|
||||||
#ifndef APP_CATALOG
|
#ifndef APP_CATALOG
|
||||||
#define APP_CATALOG "app" // replace with the appropriate catalog name
|
#define APP_CATALOG "CrossGen"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -46,6 +46,7 @@ public:
|
|||||||
void onExitClick( wxCommandEvent& event );
|
void onExitClick( wxCommandEvent& event );
|
||||||
void onAboutClick( wxCommandEvent& event ) {
|
void onAboutClick( wxCommandEvent& event ) {
|
||||||
wxAboutDialogInfo info;
|
wxAboutDialogInfo info;
|
||||||
|
info.SetVersion(wxT("1.0"));
|
||||||
info.AddDeveloper(_("Aleksey Lobanov"));
|
info.AddDeveloper(_("Aleksey Lobanov"));
|
||||||
info.SetDescription(_("Simple GUI cross-generation application. Yet another bike"));
|
info.SetDescription(_("Simple GUI cross-generation application. Yet another bike"));
|
||||||
info.SetName(wxTheApp->GetAppName());
|
info.SetName(wxTheApp->GetAppName());
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
void SettingsDialog::onDictPathClick(wxCommandEvent& event) {
|
void SettingsDialog::onDictPathClick(wxCommandEvent& event) {
|
||||||
wxFileDialog dlgOpen(this, _("Open dictionary file"), wxEmptyString, wxEmptyString,
|
wxFileDialog dlgOpen(this, _("Open dictionary file"), wxEmptyString, wxEmptyString,
|
||||||
_("Files of dictionaris (*.txt)|*.txt"), wxFD_OPEN|wxFD_FILE_MUST_EXIST);
|
_("Files of dictionaries (*.txt)|*.txt"), wxFD_OPEN|wxFD_FILE_MUST_EXIST);
|
||||||
|
|
||||||
if ( dlgOpen.ShowModal() == wxID_CANCEL )
|
if ( dlgOpen.ShowModal() == wxID_CANCEL )
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -16,13 +16,20 @@ IMPLEMENT_APP(MyApp)
|
|||||||
bool MyApp::OnInit()
|
bool MyApp::OnInit()
|
||||||
{
|
{
|
||||||
m_locale.Init();
|
m_locale.Init();
|
||||||
|
wxLocale::AddCatalogLookupPathPrefix(wxT("."));
|
||||||
#ifdef APP_LOCALE_DIR
|
#ifdef APP_LOCALE_DIR
|
||||||
m_locale.AddCatalogLookupPathPrefix(wxT(APP_LOCALE_DIR));
|
m_locale.AddCatalogLookupPathPrefix(wxT(APP_LOCALE_DIR));
|
||||||
#endif
|
#endif
|
||||||
m_locale.AddCatalog(wxT(APP_CATALOG));
|
m_locale.AddCatalog(wxT(APP_CATALOG));
|
||||||
|
#ifdef __LINUX__
|
||||||
|
{
|
||||||
|
wxLogNull noLog;
|
||||||
|
m_locale.AddCatalog(wxT("fileutils"));
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
SetAppName(wxT("CrossGen"));
|
SetAppName(wxT("CrossGen"));
|
||||||
|
|
||||||
wxInitAllImageHandlers();
|
wxInitAllImageHandlers();
|
||||||
wxConfigBase *config = new wxFileConfig;
|
wxConfigBase *config = new wxFileConfig;
|
||||||
wxConfigBase::Set(config);
|
wxConfigBase::Set(config);
|
||||||
|
|||||||
146
wxCrossGen/wxCrossGen.mk
Normal file
146
wxCrossGen/wxCrossGen.mk
Normal file
@@ -0,0 +1,146 @@
|
|||||||
|
##
|
||||||
|
## Auto Generated makefile by CodeLite IDE
|
||||||
|
## any manual changes will be erased
|
||||||
|
##
|
||||||
|
## Release
|
||||||
|
ProjectName :=wxCrossGen
|
||||||
|
ConfigurationName :=Release
|
||||||
|
WorkspacePath := "/data/Sync/SyncProjects/CrossGen"
|
||||||
|
ProjectPath := "/data/Sync/SyncProjects/CrossGen/wxCrossGen"
|
||||||
|
IntermediateDirectory :=../Release
|
||||||
|
OutDir := $(IntermediateDirectory)
|
||||||
|
CurrentFileName :=
|
||||||
|
CurrentFilePath :=
|
||||||
|
CurrentFileFullPath :=
|
||||||
|
User :=Aleksey Lobanov
|
||||||
|
Date :=23/07/15
|
||||||
|
CodeLitePath :="/home/alex/.codelite"
|
||||||
|
LinkerName :=/usr/bin/g++-4.8
|
||||||
|
SharedObjectLinkerName :=/usr/bin/g++-4.8 -shared -fPIC
|
||||||
|
ObjectSuffix :=.o
|
||||||
|
DependSuffix :=.o.d
|
||||||
|
PreprocessSuffix :=.i
|
||||||
|
DebugSwitch :=-g
|
||||||
|
IncludeSwitch :=-I
|
||||||
|
LibrarySwitch :=-l
|
||||||
|
OutputSwitch :=-o
|
||||||
|
LibraryPathSwitch :=-L
|
||||||
|
PreprocessorSwitch :=-D
|
||||||
|
SourceSwitch :=-c
|
||||||
|
OutputFile :=$(IntermediateDirectory)/$(ProjectName).out
|
||||||
|
Preprocessors :=$(PreprocessorSwitch)NDEBUG
|
||||||
|
ObjectSwitch :=-o
|
||||||
|
ArchiveOutputSwitch :=
|
||||||
|
PreprocessOnlySwitch :=-E
|
||||||
|
ObjectsFileList :="wxCrossGen.txt"
|
||||||
|
PCHCompileFlags :=
|
||||||
|
MakeDirCommand :=mkdir -p
|
||||||
|
LinkOptions := -s $(shell wx-config --debug=no --libs --unicode=yes)
|
||||||
|
IncludePath := $(IncludeSwitch). $(IncludeSwitch)../src
|
||||||
|
IncludePCH :=
|
||||||
|
RcIncludePath :=
|
||||||
|
Libs :=
|
||||||
|
ArLibs :=
|
||||||
|
LibPath := $(LibraryPathSwitch).
|
||||||
|
|
||||||
|
##
|
||||||
|
## Common variables
|
||||||
|
## AR, CXX, CC, AS, CXXFLAGS and CFLAGS can be overriden using an environment variables
|
||||||
|
##
|
||||||
|
AR := /usr/bin/ar rcu
|
||||||
|
CXX := /usr/bin/g++-4.8
|
||||||
|
CC := /usr/bin/gcc-4.8
|
||||||
|
CXXFLAGS := -std=c++11 -O2 -Wall $(shell wx-config --cxxflags --unicode=yes --debug=no) $(Preprocessors)
|
||||||
|
CFLAGS := -O2 -Wall $(shell wx-config --cxxflags --unicode=yes --debug=no) $(Preprocessors)
|
||||||
|
ASFLAGS :=
|
||||||
|
AS := /usr/bin/as
|
||||||
|
|
||||||
|
|
||||||
|
##
|
||||||
|
## User defined environment variables
|
||||||
|
##
|
||||||
|
CodeLiteDir:=/usr/share/codelite
|
||||||
|
Objects0=$(IntermediateDirectory)/main.cpp$(ObjectSuffix) $(IntermediateDirectory)/fmain.cpp$(ObjectSuffix) $(IntermediateDirectory)/fsettings.cpp$(ObjectSuffix) $(IntermediateDirectory)/src_crossexport.cpp$(ObjectSuffix) $(IntermediateDirectory)/src_crossgen.cpp$(ObjectSuffix) $(IntermediateDirectory)/fbgui_fbgui.cpp$(ObjectSuffix)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Objects=$(Objects0)
|
||||||
|
|
||||||
|
##
|
||||||
|
## Main Build Targets
|
||||||
|
##
|
||||||
|
.PHONY: all clean PreBuild PrePreBuild PostBuild
|
||||||
|
all: $(OutputFile)
|
||||||
|
|
||||||
|
$(OutputFile): $(IntermediateDirectory)/.d $(Objects)
|
||||||
|
@$(MakeDirCommand) $(@D)
|
||||||
|
@echo "" > $(IntermediateDirectory)/.d
|
||||||
|
@echo $(Objects0) > $(ObjectsFileList)
|
||||||
|
$(LinkerName) $(OutputSwitch)$(OutputFile) @$(ObjectsFileList) $(LibPath) $(Libs) $(LinkOptions)
|
||||||
|
|
||||||
|
$(IntermediateDirectory)/.d:
|
||||||
|
@test -d ../Release || $(MakeDirCommand) ../Release
|
||||||
|
|
||||||
|
PreBuild:
|
||||||
|
|
||||||
|
|
||||||
|
##
|
||||||
|
## Objects
|
||||||
|
##
|
||||||
|
$(IntermediateDirectory)/main.cpp$(ObjectSuffix): main.cpp $(IntermediateDirectory)/main.cpp$(DependSuffix)
|
||||||
|
$(CXX) $(IncludePCH) $(SourceSwitch) "/data/Sync/SyncProjects/CrossGen/wxCrossGen/main.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/main.cpp$(ObjectSuffix) $(IncludePath)
|
||||||
|
$(IntermediateDirectory)/main.cpp$(DependSuffix): main.cpp
|
||||||
|
@$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/main.cpp$(ObjectSuffix) -MF$(IntermediateDirectory)/main.cpp$(DependSuffix) -MM "main.cpp"
|
||||||
|
|
||||||
|
$(IntermediateDirectory)/main.cpp$(PreprocessSuffix): main.cpp
|
||||||
|
@$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/main.cpp$(PreprocessSuffix) "main.cpp"
|
||||||
|
|
||||||
|
$(IntermediateDirectory)/fmain.cpp$(ObjectSuffix): fmain.cpp $(IntermediateDirectory)/fmain.cpp$(DependSuffix)
|
||||||
|
$(CXX) $(IncludePCH) $(SourceSwitch) "/data/Sync/SyncProjects/CrossGen/wxCrossGen/fmain.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/fmain.cpp$(ObjectSuffix) $(IncludePath)
|
||||||
|
$(IntermediateDirectory)/fmain.cpp$(DependSuffix): fmain.cpp
|
||||||
|
@$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/fmain.cpp$(ObjectSuffix) -MF$(IntermediateDirectory)/fmain.cpp$(DependSuffix) -MM "fmain.cpp"
|
||||||
|
|
||||||
|
$(IntermediateDirectory)/fmain.cpp$(PreprocessSuffix): fmain.cpp
|
||||||
|
@$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/fmain.cpp$(PreprocessSuffix) "fmain.cpp"
|
||||||
|
|
||||||
|
$(IntermediateDirectory)/fsettings.cpp$(ObjectSuffix): fsettings.cpp $(IntermediateDirectory)/fsettings.cpp$(DependSuffix)
|
||||||
|
$(CXX) $(IncludePCH) $(SourceSwitch) "/data/Sync/SyncProjects/CrossGen/wxCrossGen/fsettings.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/fsettings.cpp$(ObjectSuffix) $(IncludePath)
|
||||||
|
$(IntermediateDirectory)/fsettings.cpp$(DependSuffix): fsettings.cpp
|
||||||
|
@$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/fsettings.cpp$(ObjectSuffix) -MF$(IntermediateDirectory)/fsettings.cpp$(DependSuffix) -MM "fsettings.cpp"
|
||||||
|
|
||||||
|
$(IntermediateDirectory)/fsettings.cpp$(PreprocessSuffix): fsettings.cpp
|
||||||
|
@$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/fsettings.cpp$(PreprocessSuffix) "fsettings.cpp"
|
||||||
|
|
||||||
|
$(IntermediateDirectory)/src_crossexport.cpp$(ObjectSuffix): ../src/crossexport.cpp $(IntermediateDirectory)/src_crossexport.cpp$(DependSuffix)
|
||||||
|
$(CXX) $(IncludePCH) $(SourceSwitch) "/data/Sync/SyncProjects/CrossGen/src/crossexport.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/src_crossexport.cpp$(ObjectSuffix) $(IncludePath)
|
||||||
|
$(IntermediateDirectory)/src_crossexport.cpp$(DependSuffix): ../src/crossexport.cpp
|
||||||
|
@$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/src_crossexport.cpp$(ObjectSuffix) -MF$(IntermediateDirectory)/src_crossexport.cpp$(DependSuffix) -MM "../src/crossexport.cpp"
|
||||||
|
|
||||||
|
$(IntermediateDirectory)/src_crossexport.cpp$(PreprocessSuffix): ../src/crossexport.cpp
|
||||||
|
@$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/src_crossexport.cpp$(PreprocessSuffix) "../src/crossexport.cpp"
|
||||||
|
|
||||||
|
$(IntermediateDirectory)/src_crossgen.cpp$(ObjectSuffix): ../src/crossgen.cpp $(IntermediateDirectory)/src_crossgen.cpp$(DependSuffix)
|
||||||
|
$(CXX) $(IncludePCH) $(SourceSwitch) "/data/Sync/SyncProjects/CrossGen/src/crossgen.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/src_crossgen.cpp$(ObjectSuffix) $(IncludePath)
|
||||||
|
$(IntermediateDirectory)/src_crossgen.cpp$(DependSuffix): ../src/crossgen.cpp
|
||||||
|
@$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/src_crossgen.cpp$(ObjectSuffix) -MF$(IntermediateDirectory)/src_crossgen.cpp$(DependSuffix) -MM "../src/crossgen.cpp"
|
||||||
|
|
||||||
|
$(IntermediateDirectory)/src_crossgen.cpp$(PreprocessSuffix): ../src/crossgen.cpp
|
||||||
|
@$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/src_crossgen.cpp$(PreprocessSuffix) "../src/crossgen.cpp"
|
||||||
|
|
||||||
|
$(IntermediateDirectory)/fbgui_fbgui.cpp$(ObjectSuffix): fbgui/fbgui.cpp $(IntermediateDirectory)/fbgui_fbgui.cpp$(DependSuffix)
|
||||||
|
$(CXX) $(IncludePCH) $(SourceSwitch) "/data/Sync/SyncProjects/CrossGen/wxCrossGen/fbgui/fbgui.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/fbgui_fbgui.cpp$(ObjectSuffix) $(IncludePath)
|
||||||
|
$(IntermediateDirectory)/fbgui_fbgui.cpp$(DependSuffix): fbgui/fbgui.cpp
|
||||||
|
@$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/fbgui_fbgui.cpp$(ObjectSuffix) -MF$(IntermediateDirectory)/fbgui_fbgui.cpp$(DependSuffix) -MM "fbgui/fbgui.cpp"
|
||||||
|
|
||||||
|
$(IntermediateDirectory)/fbgui_fbgui.cpp$(PreprocessSuffix): fbgui/fbgui.cpp
|
||||||
|
@$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/fbgui_fbgui.cpp$(PreprocessSuffix) "fbgui/fbgui.cpp"
|
||||||
|
|
||||||
|
|
||||||
|
-include $(IntermediateDirectory)/*$(DependSuffix)
|
||||||
|
##
|
||||||
|
## Clean
|
||||||
|
##
|
||||||
|
clean:
|
||||||
|
$(RM) -r ../Release/
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user