diff options
author | georgehazan <ghazan@miranda.im> | 2022-05-10 13:42:55 +0300 |
---|---|---|
committer | georgehazan <ghazan@miranda.im> | 2022-05-10 13:59:15 +0300 |
commit | 3f63549751e03b378801fe3e69c0017d81edc7bb (patch) | |
tree | 76efc88017ad5ba2c664f2f064a427c98a2e3eea | |
parent | e2d5e7a3da31049495e2e43a6856d68709827ccd (diff) |
fix for MFilePath under Linux
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | codelite/Makefile | 4 | ||||
-rw-r--r-- | codelite/Miranda.workspace | 12 | ||||
-rw-r--r-- | include/m_utils.h | 9 | ||||
-rw-r--r-- | src/mir_app/mir_app.mk | 123 | ||||
-rw-r--r-- | src/mir_core/mir_core.mk | 268 | ||||
-rw-r--r-- | src/mir_core/src/Linux/fileutil.cpp | 60 |
7 files changed, 240 insertions, 240 deletions
diff --git a/.gitignore b/.gitignore index c477f3e715..20c57e09e7 100644 --- a/.gitignore +++ b/.gitignore @@ -16,6 +16,10 @@ ipch/ *.map *.log +#codelite files +codelite/obj/ +compile_flags.txt + # Keep predefined Miranda solutions !/bin*/*.sln /bin*/my.sln diff --git a/codelite/Makefile b/codelite/Makefile index 14c2eb4b35..6592977f9f 100644 --- a/codelite/Makefile +++ b/codelite/Makefile @@ -2,7 +2,7 @@ All: @echo "----------Building project:[ mir_core - Debug ]----------" - @cd "/var/www/miranda-ng/src/mir_core" && "$(MAKE)" -f "mir_core.mk" + @cd "/home/ghazan/miranda-ng/src/mir_core" && "$(MAKE)" -f "mir_core.mk" clean: @echo "----------Cleaning project:[ mir_core - Debug ]----------" - @cd "/var/www/miranda-ng/src/mir_core" && "$(MAKE)" -f "mir_core.mk" clean + @cd "/home/ghazan/miranda-ng/src/mir_core" && "$(MAKE)" -f "mir_core.mk" clean diff --git a/codelite/Miranda.workspace b/codelite/Miranda.workspace index 4f121248b2..699277bb96 100644 --- a/codelite/Miranda.workspace +++ b/codelite/Miranda.workspace @@ -1,19 +1,23 @@ <?xml version="1.0" encoding="UTF-8"?> <CodeLite_Workspace Name="Miranda" Database="" Version="10000"> <VirtualDirectory Name="Core"> - <Project Name="mir_core" Path="../../../../var/www/miranda-ng/src/mir_core/mir_core.project" Active="No"/> - <Project Name="mir_app" Path="../../../../var/www/miranda-ng/src/mir_app/mir_app.project" Active="Yes"/> + <Project Name="mir_core" Path="../src/mir_core/mir_core.project" Active="Yes"/> + <Project Name="mir_app" Path="../src/mir_app/mir_app.project"/> </VirtualDirectory> <BuildMatrix> - <WorkspaceConfiguration Name="Debug" Selected="yes"> + <WorkspaceConfiguration Name="Debug"> <Environment/> <Project Name="mir_core" ConfigName="Debug"/> <Project Name="mir_app" ConfigName="Debug"/> + <Project Name="mir_core" ConfigName="Debug"/> + <Project Name="mir_app" ConfigName="Debug"/> </WorkspaceConfiguration> - <WorkspaceConfiguration Name="Release" Selected="no"> + <WorkspaceConfiguration Name="Release"> <Environment/> <Project Name="mir_core" ConfigName="Release"/> <Project Name="mir_app" ConfigName="Release"/> + <Project Name="mir_core" ConfigName="Release"/> + <Project Name="mir_app" ConfigName="Release"/> </WorkspaceConfiguration> </BuildMatrix> </CodeLite_Workspace> diff --git a/include/m_utils.h b/include/m_utils.h index fc9ede2ecd..fbd10166ab 100644 --- a/include/m_utils.h +++ b/include/m_utils.h @@ -254,6 +254,9 @@ class MIR_CORE_EXPORT MFilePath : public CMStringW #ifdef _WINDOWS
WIN32_FIND_DATAW m_data;
HANDLE m_hFind = INVALID_HANDLE_VALUE;
+ #else
+ wchar_t m_path[MAX_PATH];
+ int m_flags;
#endif
class iterator
@@ -271,7 +274,11 @@ class MIR_CORE_EXPORT MFilePath : public CMStringW MFileIterator(const wchar_t*);
~MFileIterator();
- __inline const wchar_t* getPath() const { return m_data.cFileName; }
+ #ifdef _WINDOWS
+ __inline const wchar_t* getPath() const { return m_data.cFileName; }
+ #else
+ __inline const wchar_t* getPath() const { return m_path; }
+ #endif
bool isDir() const;
diff --git a/src/mir_app/mir_app.mk b/src/mir_app/mir_app.mk index 3a0088b7a6..fa8afdc03a 100644 --- a/src/mir_app/mir_app.mk +++ b/src/mir_app/mir_app.mk @@ -5,17 +5,18 @@ ## Debug ProjectName :=mir_app ConfigurationName :=Debug -WorkspaceConfiguration := $(ConfigurationName) -WorkspacePath :=/var/www/miranda-ng/codelite -ProjectPath :=/var/www/miranda-ng/src/mir_app -IntermediateDirectory :=../../codelite/build-$(ConfigurationName)/__/src/mir_app -OutDir :=../../codelite/build-$(ConfigurationName)/__/src/mir_app +WorkspaceConfiguration :=Debug +WorkspacePath :=/home/ghazan/miranda-ng/codelite +ProjectPath :=/home/ghazan/miranda-ng/src/mir_app +IntermediateDirectory :=../../codelite/obj/debug/$(ProjectName) +OutDir :=$(IntermediateDirectory) CurrentFileName := CurrentFilePath := CurrentFileFullPath := User :=George Hazan -Date :=15/03/22 +Date :=10/05/22 CodeLitePath :=/home/ghazan/.codelite +MakeDirCommand :=mkdir -p LinkerName :=g++ SharedObjectLinkerName :=g++ -shared -fPIC ObjectSuffix :=.o @@ -28,7 +29,8 @@ OutputSwitch :=-o LibraryPathSwitch :=-L PreprocessorSwitch :=-D SourceSwitch :=-c -OutputFile :=../../codelite/build-$(ConfigurationName)/lib/$(ProjectName) +OutputDirectory :=/home/ghazan/miranda-ng/codelite/build-$(WorkspaceConfiguration)/lib +OutputFile :=../../codelite/build-$(WorkspaceConfiguration)/lib/$(ProjectName) Preprocessors := ObjectSwitch :=-o ArchiveOutputSwitch := @@ -45,7 +47,7 @@ LibPath := $(LibraryPathSwitch). ## ## Common variables -## AR, CXX, CC, AS, CXXFLAGS and CFLAGS can be overriden using an environment variables +## AR, CXX, CC, AS, CXXFLAGS and CFLAGS can be overridden using an environment variable ## AR := ar rcus CXX := g++ @@ -60,7 +62,7 @@ AS := as ## User defined environment variables ## CodeLiteDir:=/usr/share/codelite -Objects0=../../codelite/build-$(ConfigurationName)/__/src/mir_app/src_db_intf.cpp$(ObjectSuffix) ../../codelite/build-$(ConfigurationName)/__/src/mir_app/src_db_events.cpp$(ObjectSuffix) ../../codelite/build-$(ConfigurationName)/__/src/mir_app/src_addcontact.cpp$(ObjectSuffix) ../../codelite/build-$(ConfigurationName)/__/src/mir_app/src_contact.cpp$(ObjectSuffix) ../../codelite/build-$(ConfigurationName)/__/src/mir_app/src_stdafx.cxx$(ObjectSuffix) ../../codelite/build-$(ConfigurationName)/__/src/mir_app/src_database.cpp$(ObjectSuffix) ../../codelite/build-$(ConfigurationName)/__/src/mir_app/src_CMPluginBase.cpp$(ObjectSuffix) +Objects0=$(IntermediateDirectory)/src_database.cpp$(ObjectSuffix) $(IntermediateDirectory)/src_db_intf.cpp$(ObjectSuffix) $(IntermediateDirectory)/src_db_events.cpp$(ObjectSuffix) $(IntermediateDirectory)/src_contact.cpp$(ObjectSuffix) $(IntermediateDirectory)/src_CMPluginBase.cpp$(ObjectSuffix) $(IntermediateDirectory)/src_addcontact.cpp$(ObjectSuffix) $(IntermediateDirectory)/src_stdafx.cxx$(ObjectSuffix) @@ -72,19 +74,19 @@ Objects=$(Objects0) .PHONY: all clean PreBuild PrePreBuild PostBuild MakeIntermediateDirs all: MakeIntermediateDirs $(OutputFile) -$(OutputFile): ../../codelite/build-$(ConfigurationName)/__/src/mir_app/.d $(Objects) - @mkdir -p "../../codelite/build-$(ConfigurationName)/__/src/mir_app" +$(OutputFile): $(IntermediateDirectory)/.d $(Objects) + @$(MakeDirCommand) "$(IntermediateDirectory)" @echo "" > $(IntermediateDirectory)/.d @echo $(Objects0) > $(ObjectsFileList) $(SharedObjectLinkerName) $(OutputSwitch)$(OutputFile) @$(ObjectsFileList) $(LibPath) $(Libs) $(LinkOptions) @echo rebuilt > $(IntermediateDirectory)/mir_app.relink MakeIntermediateDirs: - @mkdir -p "../../codelite/build-$(ConfigurationName)/__/src/mir_app" - @mkdir -p ""../../codelite/build-$(ConfigurationName)/lib"" + @$(MakeDirCommand) "$(IntermediateDirectory)" + @$(MakeDirCommand) "$(OutputDirectory)" -../../codelite/build-$(ConfigurationName)/__/src/mir_app/.d: - @mkdir -p "../../codelite/build-$(ConfigurationName)/__/src/mir_app" +$(IntermediateDirectory)/.d: + @$(MakeDirCommand) "$(IntermediateDirectory)" PreBuild: @@ -92,64 +94,41 @@ PreBuild: ## ## Objects ## -../../codelite/build-$(ConfigurationName)/__/src/mir_app/src_db_intf.cpp$(ObjectSuffix): src/db_intf.cpp ../../codelite/build-$(ConfigurationName)/__/src/mir_app/src_db_intf.cpp$(DependSuffix) - $(CXX) $(IncludePCH) $(SourceSwitch) "/var/www/miranda-ng/src/mir_app/src/db_intf.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/src_db_intf.cpp$(ObjectSuffix) $(IncludePath) -../../codelite/build-$(ConfigurationName)/__/src/mir_app/src_db_intf.cpp$(DependSuffix): src/db_intf.cpp - @$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT../../codelite/build-$(ConfigurationName)/__/src/mir_app/src_db_intf.cpp$(ObjectSuffix) -MF../../codelite/build-$(ConfigurationName)/__/src/mir_app/src_db_intf.cpp$(DependSuffix) -MM src/db_intf.cpp +$(IntermediateDirectory)/src_database.cpp$(ObjectSuffix): src/database.cpp + $(CXX) $(IncludePCH) $(SourceSwitch) "/home/ghazan/miranda-ng/src/mir_app/src/database.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/src_database.cpp$(ObjectSuffix) $(IncludePath) +$(IntermediateDirectory)/src_database.cpp$(PreprocessSuffix): src/database.cpp + $(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/src_database.cpp$(PreprocessSuffix) src/database.cpp + +$(IntermediateDirectory)/src_db_intf.cpp$(ObjectSuffix): src/db_intf.cpp + $(CXX) $(IncludePCH) $(SourceSwitch) "/home/ghazan/miranda-ng/src/mir_app/src/db_intf.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/src_db_intf.cpp$(ObjectSuffix) $(IncludePath) +$(IntermediateDirectory)/src_db_intf.cpp$(PreprocessSuffix): src/db_intf.cpp + $(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/src_db_intf.cpp$(PreprocessSuffix) src/db_intf.cpp + +$(IntermediateDirectory)/src_db_events.cpp$(ObjectSuffix): src/db_events.cpp + $(CXX) $(IncludePCH) $(SourceSwitch) "/home/ghazan/miranda-ng/src/mir_app/src/db_events.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/src_db_events.cpp$(ObjectSuffix) $(IncludePath) +$(IntermediateDirectory)/src_db_events.cpp$(PreprocessSuffix): src/db_events.cpp + $(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/src_db_events.cpp$(PreprocessSuffix) src/db_events.cpp + +$(IntermediateDirectory)/src_contact.cpp$(ObjectSuffix): src/contact.cpp + $(CXX) $(IncludePCH) $(SourceSwitch) "/home/ghazan/miranda-ng/src/mir_app/src/contact.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/src_contact.cpp$(ObjectSuffix) $(IncludePath) +$(IntermediateDirectory)/src_contact.cpp$(PreprocessSuffix): src/contact.cpp + $(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/src_contact.cpp$(PreprocessSuffix) src/contact.cpp + +$(IntermediateDirectory)/src_CMPluginBase.cpp$(ObjectSuffix): src/CMPluginBase.cpp + $(CXX) $(IncludePCH) $(SourceSwitch) "/home/ghazan/miranda-ng/src/mir_app/src/CMPluginBase.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/src_CMPluginBase.cpp$(ObjectSuffix) $(IncludePath) +$(IntermediateDirectory)/src_CMPluginBase.cpp$(PreprocessSuffix): src/CMPluginBase.cpp + $(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/src_CMPluginBase.cpp$(PreprocessSuffix) src/CMPluginBase.cpp + +$(IntermediateDirectory)/src_addcontact.cpp$(ObjectSuffix): src/addcontact.cpp + $(CXX) $(IncludePCH) $(SourceSwitch) "/home/ghazan/miranda-ng/src/mir_app/src/addcontact.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/src_addcontact.cpp$(ObjectSuffix) $(IncludePath) +$(IntermediateDirectory)/src_addcontact.cpp$(PreprocessSuffix): src/addcontact.cpp + $(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/src_addcontact.cpp$(PreprocessSuffix) src/addcontact.cpp + +$(IntermediateDirectory)/src_stdafx.cxx$(ObjectSuffix): src/stdafx.cxx + $(CXX) $(IncludePCH) $(SourceSwitch) "/home/ghazan/miranda-ng/src/mir_app/src/stdafx.cxx" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/src_stdafx.cxx$(ObjectSuffix) $(IncludePath) +$(IntermediateDirectory)/src_stdafx.cxx$(PreprocessSuffix): src/stdafx.cxx + $(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/src_stdafx.cxx$(PreprocessSuffix) src/stdafx.cxx -../../codelite/build-$(ConfigurationName)/__/src/mir_app/src_db_intf.cpp$(PreprocessSuffix): src/db_intf.cpp - $(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) ../../codelite/build-$(ConfigurationName)/__/src/mir_app/src_db_intf.cpp$(PreprocessSuffix) src/db_intf.cpp - -../../codelite/build-$(ConfigurationName)/__/src/mir_app/src_db_events.cpp$(ObjectSuffix): src/db_events.cpp ../../codelite/build-$(ConfigurationName)/__/src/mir_app/src_db_events.cpp$(DependSuffix) - $(CXX) $(IncludePCH) $(SourceSwitch) "/var/www/miranda-ng/src/mir_app/src/db_events.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/src_db_events.cpp$(ObjectSuffix) $(IncludePath) -../../codelite/build-$(ConfigurationName)/__/src/mir_app/src_db_events.cpp$(DependSuffix): src/db_events.cpp - @$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT../../codelite/build-$(ConfigurationName)/__/src/mir_app/src_db_events.cpp$(ObjectSuffix) -MF../../codelite/build-$(ConfigurationName)/__/src/mir_app/src_db_events.cpp$(DependSuffix) -MM src/db_events.cpp - -../../codelite/build-$(ConfigurationName)/__/src/mir_app/src_db_events.cpp$(PreprocessSuffix): src/db_events.cpp - $(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) ../../codelite/build-$(ConfigurationName)/__/src/mir_app/src_db_events.cpp$(PreprocessSuffix) src/db_events.cpp - -../../codelite/build-$(ConfigurationName)/__/src/mir_app/src_addcontact.cpp$(ObjectSuffix): src/addcontact.cpp ../../codelite/build-$(ConfigurationName)/__/src/mir_app/src_addcontact.cpp$(DependSuffix) - $(CXX) $(IncludePCH) $(SourceSwitch) "/var/www/miranda-ng/src/mir_app/src/addcontact.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/src_addcontact.cpp$(ObjectSuffix) $(IncludePath) -../../codelite/build-$(ConfigurationName)/__/src/mir_app/src_addcontact.cpp$(DependSuffix): src/addcontact.cpp - @$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT../../codelite/build-$(ConfigurationName)/__/src/mir_app/src_addcontact.cpp$(ObjectSuffix) -MF../../codelite/build-$(ConfigurationName)/__/src/mir_app/src_addcontact.cpp$(DependSuffix) -MM src/addcontact.cpp - -../../codelite/build-$(ConfigurationName)/__/src/mir_app/src_addcontact.cpp$(PreprocessSuffix): src/addcontact.cpp - $(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) ../../codelite/build-$(ConfigurationName)/__/src/mir_app/src_addcontact.cpp$(PreprocessSuffix) src/addcontact.cpp - -../../codelite/build-$(ConfigurationName)/__/src/mir_app/src_contact.cpp$(ObjectSuffix): src/contact.cpp ../../codelite/build-$(ConfigurationName)/__/src/mir_app/src_contact.cpp$(DependSuffix) - $(CXX) $(IncludePCH) $(SourceSwitch) "/var/www/miranda-ng/src/mir_app/src/contact.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/src_contact.cpp$(ObjectSuffix) $(IncludePath) -../../codelite/build-$(ConfigurationName)/__/src/mir_app/src_contact.cpp$(DependSuffix): src/contact.cpp - @$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT../../codelite/build-$(ConfigurationName)/__/src/mir_app/src_contact.cpp$(ObjectSuffix) -MF../../codelite/build-$(ConfigurationName)/__/src/mir_app/src_contact.cpp$(DependSuffix) -MM src/contact.cpp - -../../codelite/build-$(ConfigurationName)/__/src/mir_app/src_contact.cpp$(PreprocessSuffix): src/contact.cpp - $(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) ../../codelite/build-$(ConfigurationName)/__/src/mir_app/src_contact.cpp$(PreprocessSuffix) src/contact.cpp - -../../codelite/build-$(ConfigurationName)/__/src/mir_app/src_stdafx.cxx$(ObjectSuffix): src/stdafx.cxx ../../codelite/build-$(ConfigurationName)/__/src/mir_app/src_stdafx.cxx$(DependSuffix) - $(CXX) $(IncludePCH) $(SourceSwitch) "/var/www/miranda-ng/src/mir_app/src/stdafx.cxx" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/src_stdafx.cxx$(ObjectSuffix) $(IncludePath) -../../codelite/build-$(ConfigurationName)/__/src/mir_app/src_stdafx.cxx$(DependSuffix): src/stdafx.cxx - @$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT../../codelite/build-$(ConfigurationName)/__/src/mir_app/src_stdafx.cxx$(ObjectSuffix) -MF../../codelite/build-$(ConfigurationName)/__/src/mir_app/src_stdafx.cxx$(DependSuffix) -MM src/stdafx.cxx - -../../codelite/build-$(ConfigurationName)/__/src/mir_app/src_stdafx.cxx$(PreprocessSuffix): src/stdafx.cxx - $(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) ../../codelite/build-$(ConfigurationName)/__/src/mir_app/src_stdafx.cxx$(PreprocessSuffix) src/stdafx.cxx - -../../codelite/build-$(ConfigurationName)/__/src/mir_app/src_database.cpp$(ObjectSuffix): src/database.cpp ../../codelite/build-$(ConfigurationName)/__/src/mir_app/src_database.cpp$(DependSuffix) - $(CXX) $(IncludePCH) $(SourceSwitch) "/var/www/miranda-ng/src/mir_app/src/database.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/src_database.cpp$(ObjectSuffix) $(IncludePath) -../../codelite/build-$(ConfigurationName)/__/src/mir_app/src_database.cpp$(DependSuffix): src/database.cpp - @$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT../../codelite/build-$(ConfigurationName)/__/src/mir_app/src_database.cpp$(ObjectSuffix) -MF../../codelite/build-$(ConfigurationName)/__/src/mir_app/src_database.cpp$(DependSuffix) -MM src/database.cpp - -../../codelite/build-$(ConfigurationName)/__/src/mir_app/src_database.cpp$(PreprocessSuffix): src/database.cpp - $(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) ../../codelite/build-$(ConfigurationName)/__/src/mir_app/src_database.cpp$(PreprocessSuffix) src/database.cpp - -../../codelite/build-$(ConfigurationName)/__/src/mir_app/src_CMPluginBase.cpp$(ObjectSuffix): src/CMPluginBase.cpp ../../codelite/build-$(ConfigurationName)/__/src/mir_app/src_CMPluginBase.cpp$(DependSuffix) - $(CXX) $(IncludePCH) $(SourceSwitch) "/var/www/miranda-ng/src/mir_app/src/CMPluginBase.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/src_CMPluginBase.cpp$(ObjectSuffix) $(IncludePath) -../../codelite/build-$(ConfigurationName)/__/src/mir_app/src_CMPluginBase.cpp$(DependSuffix): src/CMPluginBase.cpp - @$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT../../codelite/build-$(ConfigurationName)/__/src/mir_app/src_CMPluginBase.cpp$(ObjectSuffix) -MF../../codelite/build-$(ConfigurationName)/__/src/mir_app/src_CMPluginBase.cpp$(DependSuffix) -MM src/CMPluginBase.cpp - -../../codelite/build-$(ConfigurationName)/__/src/mir_app/src_CMPluginBase.cpp$(PreprocessSuffix): src/CMPluginBase.cpp - $(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) ../../codelite/build-$(ConfigurationName)/__/src/mir_app/src_CMPluginBase.cpp$(PreprocessSuffix) src/CMPluginBase.cpp - - --include ../../codelite/build-$(ConfigurationName)/__/src/mir_app//*$(DependSuffix) ## ## Clean ## diff --git a/src/mir_core/mir_core.mk b/src/mir_core/mir_core.mk index fa5605cfaf..1b9f3e372d 100644 --- a/src/mir_core/mir_core.mk +++ b/src/mir_core/mir_core.mk @@ -5,17 +5,18 @@ ## Debug ProjectName :=mir_core ConfigurationName :=Debug -WorkspaceConfiguration := $(ConfigurationName) -WorkspacePath :=/var/www/miranda-ng/codelite -ProjectPath :=/var/www/miranda-ng/src/mir_core -IntermediateDirectory :=../../codelite/build-$(ConfigurationName)/__/src/mir_core -OutDir :=../../codelite/build-$(ConfigurationName)/__/src/mir_core +WorkspaceConfiguration :=Debug +WorkspacePath :=/home/ghazan/miranda-ng/codelite +ProjectPath :=/home/ghazan/miranda-ng/src/mir_core +IntermediateDirectory :=../../codelite/obj/debug/$(ProjectName) +OutDir :=$(IntermediateDirectory) CurrentFileName := CurrentFilePath := CurrentFileFullPath := User :=George Hazan -Date :=15/03/22 +Date :=10/05/22 CodeLitePath :=/home/ghazan/.codelite +MakeDirCommand :=mkdir -p LinkerName :=g++ SharedObjectLinkerName :=g++ -shared -fPIC ObjectSuffix :=.o @@ -28,7 +29,8 @@ OutputSwitch :=-o LibraryPathSwitch :=-L PreprocessorSwitch :=-D SourceSwitch :=-c -OutputFile :=../../codelite/build-$(ConfigurationName)/lib/$(ProjectName) +OutputDirectory :=/home/ghazan/miranda-ng/codelite/build-$(WorkspaceConfiguration)/lib +OutputFile :=../../codelite/build-$(WorkspaceConfiguration)/lib/$(ProjectName) Preprocessors := ObjectSwitch :=-o ArchiveOutputSwitch := @@ -45,7 +47,7 @@ LibPath := $(LibraryPathSwitch). ## ## Common variables -## AR, CXX, CC, AS, CXXFLAGS and CFLAGS can be overriden using an environment variables +## AR, CXX, CC, AS, CXXFLAGS and CFLAGS can be overridden using an environment variable ## AR := ar rcus CXX := g++ @@ -60,8 +62,8 @@ AS := as ## User defined environment variables ## CodeLiteDir:=/usr/share/codelite -Objects0=../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_db.cpp$(ObjectSuffix) ../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_http.cpp$(ObjectSuffix) ../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_Linux_strutil.cpp$(ObjectSuffix) ../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_bitmaps.cpp$(ObjectSuffix) ../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_Linux_fileutil.cpp$(ObjectSuffix) ../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_tinyxml2_utils.cpp$(ObjectSuffix) ../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_utils.cpp$(ObjectSuffix) ../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_utf.cpp$(ObjectSuffix) ../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_sha256.cpp$(ObjectSuffix) ../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_mstring.cpp$(ObjectSuffix) \ - ../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_sha1.cpp$(ObjectSuffix) ../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_stdafx.cxx$(ObjectSuffix) ../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_lists.cpp$(ObjectSuffix) ../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_tinyxml2.cpp$(ObjectSuffix) ../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_memory.cpp$(ObjectSuffix) ../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_md5.cpp$(ObjectSuffix) ../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_binbuffer.cpp$(ObjectSuffix) ../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_logger.cpp$(ObjectSuffix) +Objects0=$(IntermediateDirectory)/src_binbuffer.cpp$(ObjectSuffix) $(IntermediateDirectory)/src_bitmaps.cpp$(ObjectSuffix) $(IntermediateDirectory)/src_lists.cpp$(ObjectSuffix) $(IntermediateDirectory)/src_Linux_fileutil.cpp$(ObjectSuffix) $(IntermediateDirectory)/src_memory.cpp$(ObjectSuffix) $(IntermediateDirectory)/src_utils.cpp$(ObjectSuffix) $(IntermediateDirectory)/src_Linux_strutil.cpp$(ObjectSuffix) $(IntermediateDirectory)/src_tinyxml2_utils.cpp$(ObjectSuffix) $(IntermediateDirectory)/src_utf.cpp$(ObjectSuffix) $(IntermediateDirectory)/src_tinyxml2.cpp$(ObjectSuffix) \ + $(IntermediateDirectory)/src_http.cpp$(ObjectSuffix) $(IntermediateDirectory)/src_stdafx.cxx$(ObjectSuffix) $(IntermediateDirectory)/src_sha256.cpp$(ObjectSuffix) $(IntermediateDirectory)/src_db.cpp$(ObjectSuffix) $(IntermediateDirectory)/src_sha1.cpp$(ObjectSuffix) $(IntermediateDirectory)/src_mstring.cpp$(ObjectSuffix) $(IntermediateDirectory)/src_md5.cpp$(ObjectSuffix) $(IntermediateDirectory)/src_logger.cpp$(ObjectSuffix) @@ -73,19 +75,19 @@ Objects=$(Objects0) .PHONY: all clean PreBuild PrePreBuild PostBuild MakeIntermediateDirs all: MakeIntermediateDirs $(OutputFile) -$(OutputFile): ../../codelite/build-$(ConfigurationName)/__/src/mir_core/.d $(Objects) - @mkdir -p "../../codelite/build-$(ConfigurationName)/__/src/mir_core" +$(OutputFile): $(IntermediateDirectory)/.d $(Objects) + @$(MakeDirCommand) "$(IntermediateDirectory)" @echo "" > $(IntermediateDirectory)/.d @echo $(Objects0) > $(ObjectsFileList) $(SharedObjectLinkerName) $(OutputSwitch)$(OutputFile) @$(ObjectsFileList) $(LibPath) $(Libs) $(LinkOptions) @echo rebuilt > $(IntermediateDirectory)/mir_core.relink MakeIntermediateDirs: - @mkdir -p "../../codelite/build-$(ConfigurationName)/__/src/mir_core" - @mkdir -p ""../../codelite/build-$(ConfigurationName)/lib"" + @$(MakeDirCommand) "$(IntermediateDirectory)" + @$(MakeDirCommand) "$(OutputDirectory)" -../../codelite/build-$(ConfigurationName)/__/src/mir_core/.d: - @mkdir -p "../../codelite/build-$(ConfigurationName)/__/src/mir_core" +$(IntermediateDirectory)/.d: + @$(MakeDirCommand) "$(IntermediateDirectory)" PreBuild: @@ -93,152 +95,96 @@ PreBuild: ## ## Objects ## -../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_db.cpp$(ObjectSuffix): src/db.cpp ../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_db.cpp$(DependSuffix) - $(CXX) $(IncludePCH) $(SourceSwitch) "/var/www/miranda-ng/src/mir_core/src/db.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/src_db.cpp$(ObjectSuffix) $(IncludePath) -../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_db.cpp$(DependSuffix): src/db.cpp - @$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_db.cpp$(ObjectSuffix) -MF../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_db.cpp$(DependSuffix) -MM src/db.cpp +$(IntermediateDirectory)/src_binbuffer.cpp$(ObjectSuffix): src/binbuffer.cpp + $(CXX) $(IncludePCH) $(SourceSwitch) "/home/ghazan/miranda-ng/src/mir_core/src/binbuffer.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/src_binbuffer.cpp$(ObjectSuffix) $(IncludePath) +$(IntermediateDirectory)/src_binbuffer.cpp$(PreprocessSuffix): src/binbuffer.cpp + $(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/src_binbuffer.cpp$(PreprocessSuffix) src/binbuffer.cpp + +$(IntermediateDirectory)/src_bitmaps.cpp$(ObjectSuffix): src/bitmaps.cpp + $(CXX) $(IncludePCH) $(SourceSwitch) "/home/ghazan/miranda-ng/src/mir_core/src/bitmaps.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/src_bitmaps.cpp$(ObjectSuffix) $(IncludePath) +$(IntermediateDirectory)/src_bitmaps.cpp$(PreprocessSuffix): src/bitmaps.cpp + $(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/src_bitmaps.cpp$(PreprocessSuffix) src/bitmaps.cpp + +$(IntermediateDirectory)/src_lists.cpp$(ObjectSuffix): src/lists.cpp + $(CXX) $(IncludePCH) $(SourceSwitch) "/home/ghazan/miranda-ng/src/mir_core/src/lists.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/src_lists.cpp$(ObjectSuffix) $(IncludePath) +$(IntermediateDirectory)/src_lists.cpp$(PreprocessSuffix): src/lists.cpp + $(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/src_lists.cpp$(PreprocessSuffix) src/lists.cpp + +$(IntermediateDirectory)/src_Linux_fileutil.cpp$(ObjectSuffix): src/Linux/fileutil.cpp + $(CXX) $(IncludePCH) $(SourceSwitch) "/home/ghazan/miranda-ng/src/mir_core/src/Linux/fileutil.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/src_Linux_fileutil.cpp$(ObjectSuffix) $(IncludePath) +$(IntermediateDirectory)/src_Linux_fileutil.cpp$(PreprocessSuffix): src/Linux/fileutil.cpp + $(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/src_Linux_fileutil.cpp$(PreprocessSuffix) src/Linux/fileutil.cpp + +$(IntermediateDirectory)/src_memory.cpp$(ObjectSuffix): src/memory.cpp + $(CXX) $(IncludePCH) $(SourceSwitch) "/home/ghazan/miranda-ng/src/mir_core/src/memory.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/src_memory.cpp$(ObjectSuffix) $(IncludePath) +$(IntermediateDirectory)/src_memory.cpp$(PreprocessSuffix): src/memory.cpp + $(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/src_memory.cpp$(PreprocessSuffix) src/memory.cpp + +$(IntermediateDirectory)/src_utils.cpp$(ObjectSuffix): src/utils.cpp + $(CXX) $(IncludePCH) $(SourceSwitch) "/home/ghazan/miranda-ng/src/mir_core/src/utils.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/src_utils.cpp$(ObjectSuffix) $(IncludePath) +$(IntermediateDirectory)/src_utils.cpp$(PreprocessSuffix): src/utils.cpp + $(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/src_utils.cpp$(PreprocessSuffix) src/utils.cpp + +$(IntermediateDirectory)/src_Linux_strutil.cpp$(ObjectSuffix): src/Linux/strutil.cpp + $(CXX) $(IncludePCH) $(SourceSwitch) "/home/ghazan/miranda-ng/src/mir_core/src/Linux/strutil.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/src_Linux_strutil.cpp$(ObjectSuffix) $(IncludePath) +$(IntermediateDirectory)/src_Linux_strutil.cpp$(PreprocessSuffix): src/Linux/strutil.cpp + $(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/src_Linux_strutil.cpp$(PreprocessSuffix) src/Linux/strutil.cpp + +$(IntermediateDirectory)/src_tinyxml2_utils.cpp$(ObjectSuffix): src/tinyxml2_utils.cpp + $(CXX) $(IncludePCH) $(SourceSwitch) "/home/ghazan/miranda-ng/src/mir_core/src/tinyxml2_utils.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/src_tinyxml2_utils.cpp$(ObjectSuffix) $(IncludePath) +$(IntermediateDirectory)/src_tinyxml2_utils.cpp$(PreprocessSuffix): src/tinyxml2_utils.cpp + $(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/src_tinyxml2_utils.cpp$(PreprocessSuffix) src/tinyxml2_utils.cpp + +$(IntermediateDirectory)/src_utf.cpp$(ObjectSuffix): src/utf.cpp + $(CXX) $(IncludePCH) $(SourceSwitch) "/home/ghazan/miranda-ng/src/mir_core/src/utf.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/src_utf.cpp$(ObjectSuffix) $(IncludePath) +$(IntermediateDirectory)/src_utf.cpp$(PreprocessSuffix): src/utf.cpp + $(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/src_utf.cpp$(PreprocessSuffix) src/utf.cpp + +$(IntermediateDirectory)/src_tinyxml2.cpp$(ObjectSuffix): src/tinyxml2.cpp + $(CXX) $(IncludePCH) $(SourceSwitch) "/home/ghazan/miranda-ng/src/mir_core/src/tinyxml2.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/src_tinyxml2.cpp$(ObjectSuffix) $(IncludePath) +$(IntermediateDirectory)/src_tinyxml2.cpp$(PreprocessSuffix): src/tinyxml2.cpp + $(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/src_tinyxml2.cpp$(PreprocessSuffix) src/tinyxml2.cpp + +$(IntermediateDirectory)/src_http.cpp$(ObjectSuffix): src/http.cpp + $(CXX) $(IncludePCH) $(SourceSwitch) "/home/ghazan/miranda-ng/src/mir_core/src/http.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/src_http.cpp$(ObjectSuffix) $(IncludePath) +$(IntermediateDirectory)/src_http.cpp$(PreprocessSuffix): src/http.cpp + $(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/src_http.cpp$(PreprocessSuffix) src/http.cpp + +$(IntermediateDirectory)/src_stdafx.cxx$(ObjectSuffix): src/stdafx.cxx + $(CXX) $(IncludePCH) $(SourceSwitch) "/home/ghazan/miranda-ng/src/mir_core/src/stdafx.cxx" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/src_stdafx.cxx$(ObjectSuffix) $(IncludePath) +$(IntermediateDirectory)/src_stdafx.cxx$(PreprocessSuffix): src/stdafx.cxx + $(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/src_stdafx.cxx$(PreprocessSuffix) src/stdafx.cxx + +$(IntermediateDirectory)/src_sha256.cpp$(ObjectSuffix): src/sha256.cpp + $(CXX) $(IncludePCH) $(SourceSwitch) "/home/ghazan/miranda-ng/src/mir_core/src/sha256.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/src_sha256.cpp$(ObjectSuffix) $(IncludePath) +$(IntermediateDirectory)/src_sha256.cpp$(PreprocessSuffix): src/sha256.cpp + $(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/src_sha256.cpp$(PreprocessSuffix) src/sha256.cpp + +$(IntermediateDirectory)/src_db.cpp$(ObjectSuffix): src/db.cpp + $(CXX) $(IncludePCH) $(SourceSwitch) "/home/ghazan/miranda-ng/src/mir_core/src/db.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/src_db.cpp$(ObjectSuffix) $(IncludePath) +$(IntermediateDirectory)/src_db.cpp$(PreprocessSuffix): src/db.cpp + $(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/src_db.cpp$(PreprocessSuffix) src/db.cpp + +$(IntermediateDirectory)/src_sha1.cpp$(ObjectSuffix): src/sha1.cpp + $(CXX) $(IncludePCH) $(SourceSwitch) "/home/ghazan/miranda-ng/src/mir_core/src/sha1.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/src_sha1.cpp$(ObjectSuffix) $(IncludePath) +$(IntermediateDirectory)/src_sha1.cpp$(PreprocessSuffix): src/sha1.cpp + $(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/src_sha1.cpp$(PreprocessSuffix) src/sha1.cpp + +$(IntermediateDirectory)/src_mstring.cpp$(ObjectSuffix): src/mstring.cpp + $(CXX) $(IncludePCH) $(SourceSwitch) "/home/ghazan/miranda-ng/src/mir_core/src/mstring.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/src_mstring.cpp$(ObjectSuffix) $(IncludePath) +$(IntermediateDirectory)/src_mstring.cpp$(PreprocessSuffix): src/mstring.cpp + $(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/src_mstring.cpp$(PreprocessSuffix) src/mstring.cpp + +$(IntermediateDirectory)/src_md5.cpp$(ObjectSuffix): src/md5.cpp + $(CXX) $(IncludePCH) $(SourceSwitch) "/home/ghazan/miranda-ng/src/mir_core/src/md5.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/src_md5.cpp$(ObjectSuffix) $(IncludePath) +$(IntermediateDirectory)/src_md5.cpp$(PreprocessSuffix): src/md5.cpp + $(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/src_md5.cpp$(PreprocessSuffix) src/md5.cpp + +$(IntermediateDirectory)/src_logger.cpp$(ObjectSuffix): src/logger.cpp + $(CXX) $(IncludePCH) $(SourceSwitch) "/home/ghazan/miranda-ng/src/mir_core/src/logger.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/src_logger.cpp$(ObjectSuffix) $(IncludePath) +$(IntermediateDirectory)/src_logger.cpp$(PreprocessSuffix): src/logger.cpp + $(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/src_logger.cpp$(PreprocessSuffix) src/logger.cpp -../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_db.cpp$(PreprocessSuffix): src/db.cpp - $(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) ../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_db.cpp$(PreprocessSuffix) src/db.cpp - -../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_http.cpp$(ObjectSuffix): src/http.cpp ../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_http.cpp$(DependSuffix) - $(CXX) $(IncludePCH) $(SourceSwitch) "/var/www/miranda-ng/src/mir_core/src/http.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/src_http.cpp$(ObjectSuffix) $(IncludePath) -../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_http.cpp$(DependSuffix): src/http.cpp - @$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_http.cpp$(ObjectSuffix) -MF../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_http.cpp$(DependSuffix) -MM src/http.cpp - -../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_http.cpp$(PreprocessSuffix): src/http.cpp - $(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) ../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_http.cpp$(PreprocessSuffix) src/http.cpp - -../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_Linux_strutil.cpp$(ObjectSuffix): src/Linux/strutil.cpp ../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_Linux_strutil.cpp$(DependSuffix) - $(CXX) $(IncludePCH) $(SourceSwitch) "/var/www/miranda-ng/src/mir_core/src/Linux/strutil.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/src_Linux_strutil.cpp$(ObjectSuffix) $(IncludePath) -../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_Linux_strutil.cpp$(DependSuffix): src/Linux/strutil.cpp - @$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_Linux_strutil.cpp$(ObjectSuffix) -MF../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_Linux_strutil.cpp$(DependSuffix) -MM src/Linux/strutil.cpp - -../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_Linux_strutil.cpp$(PreprocessSuffix): src/Linux/strutil.cpp - $(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) ../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_Linux_strutil.cpp$(PreprocessSuffix) src/Linux/strutil.cpp - -../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_bitmaps.cpp$(ObjectSuffix): src/bitmaps.cpp ../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_bitmaps.cpp$(DependSuffix) - $(CXX) $(IncludePCH) $(SourceSwitch) "/var/www/miranda-ng/src/mir_core/src/bitmaps.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/src_bitmaps.cpp$(ObjectSuffix) $(IncludePath) -../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_bitmaps.cpp$(DependSuffix): src/bitmaps.cpp - @$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_bitmaps.cpp$(ObjectSuffix) -MF../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_bitmaps.cpp$(DependSuffix) -MM src/bitmaps.cpp - -../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_bitmaps.cpp$(PreprocessSuffix): src/bitmaps.cpp - $(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) ../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_bitmaps.cpp$(PreprocessSuffix) src/bitmaps.cpp - -../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_Linux_fileutil.cpp$(ObjectSuffix): src/Linux/fileutil.cpp ../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_Linux_fileutil.cpp$(DependSuffix) - $(CXX) $(IncludePCH) $(SourceSwitch) "/var/www/miranda-ng/src/mir_core/src/Linux/fileutil.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/src_Linux_fileutil.cpp$(ObjectSuffix) $(IncludePath) -../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_Linux_fileutil.cpp$(DependSuffix): src/Linux/fileutil.cpp - @$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_Linux_fileutil.cpp$(ObjectSuffix) -MF../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_Linux_fileutil.cpp$(DependSuffix) -MM src/Linux/fileutil.cpp - -../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_Linux_fileutil.cpp$(PreprocessSuffix): src/Linux/fileutil.cpp - $(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) ../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_Linux_fileutil.cpp$(PreprocessSuffix) src/Linux/fileutil.cpp - -../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_tinyxml2_utils.cpp$(ObjectSuffix): src/tinyxml2_utils.cpp ../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_tinyxml2_utils.cpp$(DependSuffix) - $(CXX) $(IncludePCH) $(SourceSwitch) "/var/www/miranda-ng/src/mir_core/src/tinyxml2_utils.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/src_tinyxml2_utils.cpp$(ObjectSuffix) $(IncludePath) -../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_tinyxml2_utils.cpp$(DependSuffix): src/tinyxml2_utils.cpp - @$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_tinyxml2_utils.cpp$(ObjectSuffix) -MF../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_tinyxml2_utils.cpp$(DependSuffix) -MM src/tinyxml2_utils.cpp - -../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_tinyxml2_utils.cpp$(PreprocessSuffix): src/tinyxml2_utils.cpp - $(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) ../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_tinyxml2_utils.cpp$(PreprocessSuffix) src/tinyxml2_utils.cpp - -../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_utils.cpp$(ObjectSuffix): src/utils.cpp ../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_utils.cpp$(DependSuffix) - $(CXX) $(IncludePCH) $(SourceSwitch) "/var/www/miranda-ng/src/mir_core/src/utils.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/src_utils.cpp$(ObjectSuffix) $(IncludePath) -../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_utils.cpp$(DependSuffix): src/utils.cpp - @$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_utils.cpp$(ObjectSuffix) -MF../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_utils.cpp$(DependSuffix) -MM src/utils.cpp - -../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_utils.cpp$(PreprocessSuffix): src/utils.cpp - $(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) ../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_utils.cpp$(PreprocessSuffix) src/utils.cpp - -../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_utf.cpp$(ObjectSuffix): src/utf.cpp ../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_utf.cpp$(DependSuffix) - $(CXX) $(IncludePCH) $(SourceSwitch) "/var/www/miranda-ng/src/mir_core/src/utf.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/src_utf.cpp$(ObjectSuffix) $(IncludePath) -../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_utf.cpp$(DependSuffix): src/utf.cpp - @$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_utf.cpp$(ObjectSuffix) -MF../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_utf.cpp$(DependSuffix) -MM src/utf.cpp - -../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_utf.cpp$(PreprocessSuffix): src/utf.cpp - $(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) ../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_utf.cpp$(PreprocessSuffix) src/utf.cpp - -../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_sha256.cpp$(ObjectSuffix): src/sha256.cpp ../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_sha256.cpp$(DependSuffix) - $(CXX) $(IncludePCH) $(SourceSwitch) "/var/www/miranda-ng/src/mir_core/src/sha256.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/src_sha256.cpp$(ObjectSuffix) $(IncludePath) -../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_sha256.cpp$(DependSuffix): src/sha256.cpp - @$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_sha256.cpp$(ObjectSuffix) -MF../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_sha256.cpp$(DependSuffix) -MM src/sha256.cpp - -../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_sha256.cpp$(PreprocessSuffix): src/sha256.cpp - $(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) ../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_sha256.cpp$(PreprocessSuffix) src/sha256.cpp - -../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_mstring.cpp$(ObjectSuffix): src/mstring.cpp ../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_mstring.cpp$(DependSuffix) - $(CXX) $(IncludePCH) $(SourceSwitch) "/var/www/miranda-ng/src/mir_core/src/mstring.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/src_mstring.cpp$(ObjectSuffix) $(IncludePath) -../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_mstring.cpp$(DependSuffix): src/mstring.cpp - @$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_mstring.cpp$(ObjectSuffix) -MF../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_mstring.cpp$(DependSuffix) -MM src/mstring.cpp - -../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_mstring.cpp$(PreprocessSuffix): src/mstring.cpp - $(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) ../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_mstring.cpp$(PreprocessSuffix) src/mstring.cpp - -../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_sha1.cpp$(ObjectSuffix): src/sha1.cpp ../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_sha1.cpp$(DependSuffix) - $(CXX) $(IncludePCH) $(SourceSwitch) "/var/www/miranda-ng/src/mir_core/src/sha1.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/src_sha1.cpp$(ObjectSuffix) $(IncludePath) -../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_sha1.cpp$(DependSuffix): src/sha1.cpp - @$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_sha1.cpp$(ObjectSuffix) -MF../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_sha1.cpp$(DependSuffix) -MM src/sha1.cpp - -../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_sha1.cpp$(PreprocessSuffix): src/sha1.cpp - $(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) ../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_sha1.cpp$(PreprocessSuffix) src/sha1.cpp - -../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_stdafx.cxx$(ObjectSuffix): src/stdafx.cxx ../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_stdafx.cxx$(DependSuffix) - $(CXX) $(IncludePCH) $(SourceSwitch) "/var/www/miranda-ng/src/mir_core/src/stdafx.cxx" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/src_stdafx.cxx$(ObjectSuffix) $(IncludePath) -../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_stdafx.cxx$(DependSuffix): src/stdafx.cxx - @$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_stdafx.cxx$(ObjectSuffix) -MF../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_stdafx.cxx$(DependSuffix) -MM src/stdafx.cxx - -../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_stdafx.cxx$(PreprocessSuffix): src/stdafx.cxx - $(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) ../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_stdafx.cxx$(PreprocessSuffix) src/stdafx.cxx - -../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_lists.cpp$(ObjectSuffix): src/lists.cpp ../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_lists.cpp$(DependSuffix) - $(CXX) $(IncludePCH) $(SourceSwitch) "/var/www/miranda-ng/src/mir_core/src/lists.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/src_lists.cpp$(ObjectSuffix) $(IncludePath) -../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_lists.cpp$(DependSuffix): src/lists.cpp - @$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_lists.cpp$(ObjectSuffix) -MF../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_lists.cpp$(DependSuffix) -MM src/lists.cpp - -../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_lists.cpp$(PreprocessSuffix): src/lists.cpp - $(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) ../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_lists.cpp$(PreprocessSuffix) src/lists.cpp - -../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_tinyxml2.cpp$(ObjectSuffix): src/tinyxml2.cpp ../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_tinyxml2.cpp$(DependSuffix) - $(CXX) $(IncludePCH) $(SourceSwitch) "/var/www/miranda-ng/src/mir_core/src/tinyxml2.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/src_tinyxml2.cpp$(ObjectSuffix) $(IncludePath) -../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_tinyxml2.cpp$(DependSuffix): src/tinyxml2.cpp - @$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_tinyxml2.cpp$(ObjectSuffix) -MF../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_tinyxml2.cpp$(DependSuffix) -MM src/tinyxml2.cpp - -../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_tinyxml2.cpp$(PreprocessSuffix): src/tinyxml2.cpp - $(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) ../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_tinyxml2.cpp$(PreprocessSuffix) src/tinyxml2.cpp - -../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_memory.cpp$(ObjectSuffix): src/memory.cpp ../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_memory.cpp$(DependSuffix) - $(CXX) $(IncludePCH) $(SourceSwitch) "/var/www/miranda-ng/src/mir_core/src/memory.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/src_memory.cpp$(ObjectSuffix) $(IncludePath) -../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_memory.cpp$(DependSuffix): src/memory.cpp - @$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_memory.cpp$(ObjectSuffix) -MF../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_memory.cpp$(DependSuffix) -MM src/memory.cpp - -../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_memory.cpp$(PreprocessSuffix): src/memory.cpp - $(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) ../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_memory.cpp$(PreprocessSuffix) src/memory.cpp - -../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_md5.cpp$(ObjectSuffix): src/md5.cpp ../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_md5.cpp$(DependSuffix) - $(CXX) $(IncludePCH) $(SourceSwitch) "/var/www/miranda-ng/src/mir_core/src/md5.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/src_md5.cpp$(ObjectSuffix) $(IncludePath) -../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_md5.cpp$(DependSuffix): src/md5.cpp - @$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_md5.cpp$(ObjectSuffix) -MF../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_md5.cpp$(DependSuffix) -MM src/md5.cpp - -../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_md5.cpp$(PreprocessSuffix): src/md5.cpp - $(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) ../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_md5.cpp$(PreprocessSuffix) src/md5.cpp - -../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_binbuffer.cpp$(ObjectSuffix): src/binbuffer.cpp ../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_binbuffer.cpp$(DependSuffix) - $(CXX) $(IncludePCH) $(SourceSwitch) "/var/www/miranda-ng/src/mir_core/src/binbuffer.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/src_binbuffer.cpp$(ObjectSuffix) $(IncludePath) -../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_binbuffer.cpp$(DependSuffix): src/binbuffer.cpp - @$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_binbuffer.cpp$(ObjectSuffix) -MF../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_binbuffer.cpp$(DependSuffix) -MM src/binbuffer.cpp - -../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_binbuffer.cpp$(PreprocessSuffix): src/binbuffer.cpp - $(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) ../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_binbuffer.cpp$(PreprocessSuffix) src/binbuffer.cpp - -../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_logger.cpp$(ObjectSuffix): src/logger.cpp ../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_logger.cpp$(DependSuffix) - $(CXX) $(IncludePCH) $(SourceSwitch) "/var/www/miranda-ng/src/mir_core/src/logger.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/src_logger.cpp$(ObjectSuffix) $(IncludePath) -../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_logger.cpp$(DependSuffix): src/logger.cpp - @$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_logger.cpp$(ObjectSuffix) -MF../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_logger.cpp$(DependSuffix) -MM src/logger.cpp - -../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_logger.cpp$(PreprocessSuffix): src/logger.cpp - $(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) ../../codelite/build-$(ConfigurationName)/__/src/mir_core/src_logger.cpp$(PreprocessSuffix) src/logger.cpp - - --include ../../codelite/build-$(ConfigurationName)/__/src/mir_core//*$(DependSuffix) ## ## Clean ## diff --git a/src/mir_core/src/Linux/fileutil.cpp b/src/mir_core/src/Linux/fileutil.cpp index 2277a4fa67..a5002f0a66 100644 --- a/src/mir_core/src/Linux/fileutil.cpp +++ b/src/mir_core/src/Linux/fileutil.cpp @@ -27,3 +27,63 @@ MIR_CORE_DLL(int) _wchdir(const wchar_t *pwszPath) { return chdir(T2Utf(pwszPath)); } + +///////////////////////////////////////////////////////////////////////////////////////// + +MFilePath::MFileIterator::iterator MFilePath::MFileIterator::iterator::operator++() +{ + // if (ptr != nullptr) { + // if (::FindNextFileW(ptr->m_hFind, &ptr->m_data) == 0) { + // ::FindClose(ptr->m_hFind); ptr->m_hFind = INVALID_HANDLE_VALUE; + // ptr = nullptr; + // } + // } + return *this; +} + +///////////////////////////////////////////////////////////////////////////////////////// + +MFilePath::MFileIterator::MFileIterator(const wchar_t *pwszPath) +{ + // if (pwszPath != nullptr) + // m_hFind = ::FindFirstFileW(pwszPath, &m_data); +} + +MFilePath::MFileIterator::~MFileIterator() +{ + // if (m_hFind != INVALID_HANDLE_VALUE) + // ::FindClose(m_hFind); +} + +MFilePath::MFileIterator::iterator MFilePath::MFileIterator::begin() +{ + // if (m_hFind == INVALID_HANDLE_VALUE) + // return MFilePath::MFileIterator::iterator(nullptr); + + return MFilePath::MFileIterator::iterator(this); +} + +bool MFilePath::MFileIterator::isDir() const +{ + //if (m_hFind == INVALID_HANDLE_VALUE) + // return false; + + return (m_flags & 1) != 0; +} + +///////////////////////////////////////////////////////////////////////////////////////// + +bool MFilePath::isExist() const +{ + return ::access(T2Utf(c_str()), 0) == 0; +} + +bool MFilePath::move(const wchar_t *pwszDest) +{ + return ::rename(T2Utf(c_str()), T2Utf(pwszDest)) != 0; +} + +MFilePath::MFileIterator MFilePath::search() +{ + return MFileIterator(c_str()); +} |