Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/elfmz/far2l.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/farlng
diff options
context:
space:
mode:
authorIgor Ingultsov <igor.ingultsov@gmail.com>2016-08-21 22:43:44 +0300
committerIgor Ingultsov <igor.ingultsov@gmail.com>2016-09-09 03:38:38 +0300
commit3a62b2e75d31ba52ea27656713b846cee2b14a31 (patch)
treede2d23e9ef3c9744c353c53486eed57dffc4351d /farlng
parent1b20881198657120230edeac3ff973f33c4f9d63 (diff)
cmake build system
cleanup in-source build garbage, binaries, codelite proejcts (use cmake generator instead)
Diffstat (limited to 'farlng')
-rw-r--r--farlng/CMakeLists.txt18
-rw-r--r--farlng/farlng.mk125
-rw-r--r--farlng/farlng.project129
-rw-r--r--farlng/farlng.txt1
4 files changed, 18 insertions, 255 deletions
diff --git a/farlng/CMakeLists.txt b/farlng/CMakeLists.txt
new file mode 100644
index 00000000..d66a8001
--- /dev/null
+++ b/farlng/CMakeLists.txt
@@ -0,0 +1,18 @@
+
+file(GLOB_RECURSE SOURCES "*.cpp")
+
+
+find_package(PkgConfig REQUIRED)
+find_package(wxWidgets REQUIRED net gl core base)
+
+pkg_check_modules(GLIB2 glib-2.0)
+
+include(${wxWidgets_USE_FILE})
+include_directories(${GLIB2_INCLUDE_DIRS})
+include_directories(wxWidgets_INCLUDE_DIRS)
+
+include_directories(../WinPort)
+
+add_executable (farlng ${SOURCES})
+
+target_link_libraries (farlng WinPort ${wxWidgets_LIBRARIES} ${GLIB2_LIBRARIES} dl)
diff --git a/farlng/farlng.mk b/farlng/farlng.mk
deleted file mode 100644
index 1c6811c6..00000000
--- a/farlng/farlng.mk
+++ /dev/null
@@ -1,125 +0,0 @@
-##
-## Auto Generated makefile by CodeLite IDE
-## any manual changes will be erased
-##
-## Debug
-ProjectName :=farlng
-ConfigurationName :=Debug
-WorkspacePath := ".."
-ProjectPath := "."
-IntermediateDirectory :=./Debug
-OutDir := $(IntermediateDirectory)
-CurrentFileName :=
-CurrentFilePath :=
-CurrentFileFullPath :=
-User :=user
-Date :=07/09/16
-CodeLitePath :="/home/user/.codelite"
-LinkerName :=/usr/bin/g++
-SharedObjectLinkerName :=/usr/bin/g++ -shared -fPIC
-ObjectSuffix :=.o
-DependSuffix :=.o.d
-PreprocessSuffix :=.i
-DebugSwitch :=-g
-IncludeSwitch :=-I
-LibrarySwitch :=-l
-OutputSwitch :=-o
-LibraryPathSwitch :=-L
-PreprocessorSwitch :=-D
-SourceSwitch :=-c
-OutputFile :=../tools/$(ProjectName)
-Preprocessors :=
-ObjectSwitch :=-o
-ArchiveOutputSwitch :=
-PreprocessOnlySwitch :=-E
-ObjectsFileList :="farlng.txt"
-PCHCompileFlags :=
-MakeDirCommand :=mkdir -p
-LinkOptions := $(shell wx-config --debug=yes --libs --unicode=yes)
-IncludePath := $(IncludeSwitch). $(IncludeSwitch). $(IncludeSwitch)src $(IncludeSwitch)../WinPort
-IncludePCH :=
-RcIncludePath :=
-Libs := $(LibrarySwitch)WinPort $(LibrarySwitch)dl $(LibrarySwitch)glib-2.0
-ArLibs := "WinPort" "dl" "glib-2.0"
-LibPath := $(LibraryPathSwitch). $(LibraryPathSwitch)../WinPort/Debug
-
-##
-## 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++
-CC := /usr/bin/gcc
-CXXFLAGS := -g -O2 -std=c++11 -Wall -Wno-unused-function $(Preprocessors)
-CFLAGS := -g -O2 -std=c99 -Wall -Wno-unused-function $(Preprocessors)
-ASFLAGS :=
-AS := /usr/bin/as
-
-
-##
-## User defined environment variables
-##
-CodeLiteDir:=/usr/share/codelite
-Objects0=$(IntermediateDirectory)/src_lng.generator.cpp$(ObjectSuffix) $(IntermediateDirectory)/src_farlng.cpp$(ObjectSuffix) $(IntermediateDirectory)/src_lng.convertor.cpp$(ObjectSuffix) $(IntermediateDirectory)/src_lng.common.cpp$(ObjectSuffix) $(IntermediateDirectory)/src_lng.inserter.cpp$(ObjectSuffix)
-
-
-
-Objects=$(Objects0)
-
-##
-## Main Build Targets
-##
-.PHONY: all clean PreBuild PrePreBuild PostBuild MakeIntermediateDirs
-all: $(OutputFile)
-
-$(OutputFile): $(IntermediateDirectory)/.d $(Objects)
- @$(MakeDirCommand) $(@D)
- @echo "" > $(IntermediateDirectory)/.d
- @echo $(Objects0) > $(ObjectsFileList)
- $(LinkerName) $(OutputSwitch)$(OutputFile) @$(ObjectsFileList) $(LibPath) $(Libs) $(LinkOptions)
-
-MakeIntermediateDirs:
- @test -d ./Debug || $(MakeDirCommand) ./Debug
-
-
-$(IntermediateDirectory)/.d:
- @test -d ./Debug || $(MakeDirCommand) ./Debug
-
-PreBuild:
-
-
-##
-## Objects
-##
-$(IntermediateDirectory)/src_lng.generator.cpp$(ObjectSuffix): src/lng.generator.cpp
- $(CXX) $(IncludePCH) $(SourceSwitch) "./src/lng.generator.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/src_lng.generator.cpp$(ObjectSuffix) $(IncludePath)
-$(IntermediateDirectory)/src_lng.generator.cpp$(PreprocessSuffix): src/lng.generator.cpp
- $(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/src_lng.generator.cpp$(PreprocessSuffix) "src/lng.generator.cpp"
-
-$(IntermediateDirectory)/src_farlng.cpp$(ObjectSuffix): src/farlng.cpp
- $(CXX) $(IncludePCH) $(SourceSwitch) "./src/farlng.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/src_farlng.cpp$(ObjectSuffix) $(IncludePath)
-$(IntermediateDirectory)/src_farlng.cpp$(PreprocessSuffix): src/farlng.cpp
- $(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/src_farlng.cpp$(PreprocessSuffix) "src/farlng.cpp"
-
-$(IntermediateDirectory)/src_lng.convertor.cpp$(ObjectSuffix): src/lng.convertor.cpp
- $(CXX) $(IncludePCH) $(SourceSwitch) "./src/lng.convertor.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/src_lng.convertor.cpp$(ObjectSuffix) $(IncludePath)
-$(IntermediateDirectory)/src_lng.convertor.cpp$(PreprocessSuffix): src/lng.convertor.cpp
- $(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/src_lng.convertor.cpp$(PreprocessSuffix) "src/lng.convertor.cpp"
-
-$(IntermediateDirectory)/src_lng.common.cpp$(ObjectSuffix): src/lng.common.cpp
- $(CXX) $(IncludePCH) $(SourceSwitch) "./src/lng.common.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/src_lng.common.cpp$(ObjectSuffix) $(IncludePath)
-$(IntermediateDirectory)/src_lng.common.cpp$(PreprocessSuffix): src/lng.common.cpp
- $(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/src_lng.common.cpp$(PreprocessSuffix) "src/lng.common.cpp"
-
-$(IntermediateDirectory)/src_lng.inserter.cpp$(ObjectSuffix): src/lng.inserter.cpp
- $(CXX) $(IncludePCH) $(SourceSwitch) "./src/lng.inserter.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/src_lng.inserter.cpp$(ObjectSuffix) $(IncludePath)
-$(IntermediateDirectory)/src_lng.inserter.cpp$(PreprocessSuffix): src/lng.inserter.cpp
- $(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/src_lng.inserter.cpp$(PreprocessSuffix) "src/lng.inserter.cpp"
-
-##
-## Clean
-##
-clean:
- $(RM) -r ./Debug/
-
-
diff --git a/farlng/farlng.project b/farlng/farlng.project
deleted file mode 100644
index 3ade9983..00000000
--- a/farlng/farlng.project
+++ /dev/null
@@ -1,129 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<CodeLite_Project Name="farlng" InternalType="Console">
- <Plugins>
- <Plugin Name="qmake">
- <![CDATA[00010001N0005Debug000000000000]]>
- </Plugin>
- <Plugin Name="CMakePlugin">
- <![CDATA[[{
- "name": "Debug",
- "enabled": false,
- "buildDirectory": "build",
- "sourceDirectory": "$(ProjectPath)",
- "generator": "",
- "buildType": "",
- "arguments": [],
- "parentProject": ""
- }]]]>
- </Plugin>
- </Plugins>
- <Description/>
- <Dependencies/>
- <VirtualDirectory Name="src">
- <File Name="src/lng.generator.cpp"/>
- <File Name="src/farlng.cpp"/>
- <File Name="src/lng.convertor.cpp"/>
- <File Name="src/lng.common.cpp"/>
- <File Name="src/lng.common.h"/>
- <File Name="src/lng.inserter.cpp"/>
- </VirtualDirectory>
- <Settings Type="Executable">
- <GlobalSettings>
- <Compiler Options="" C_Options="" Assembler="">
- <IncludePath Value="."/>
- </Compiler>
- <Linker Options="">
- <LibraryPath Value="."/>
- </Linker>
- <ResourceCompiler Options=""/>
- </GlobalSettings>
- <Configuration Name="Debug" CompilerType="GCC" DebuggerType="GNU gdb debugger" Type="Executable" BuildCmpWithGlobalSettings="append" BuildLnkWithGlobalSettings="append" BuildResWithGlobalSettings="append">
- <Compiler Options="-g;-O2;-std=c++11;-Wall;-Wno-unused-function" C_Options="-g;-O2;-std=c99;-Wall;-Wno-unused-function" Assembler="" Required="yes" PreCompiledHeader="" PCHInCommandLine="no" PCHFlags="" PCHFlagsPolicy="0">
- <IncludePath Value="."/>
- <IncludePath Value="src"/>
- <IncludePath Value="../WinPort"/>
- </Compiler>
- <Linker Options="$(shell wx-config --debug=yes --libs --unicode=yes)" Required="yes">
- <LibraryPath Value="../WinPort/Debug"/>
- <Library Value="WinPort"/>
- <Library Value="dl"/>
- <Library Value="glib-2.0"/>
- </Linker>
- <ResourceCompiler Options="" Required="no"/>
- <General OutputFile="../tools/$(ProjectName)" IntermediateDirectory="./Debug" Command="./$(ProjectName)" CommandArguments="" UseSeparateDebugArgs="no" DebugArguments="" WorkingDirectory="$(IntermediateDirectory)" PauseExecWhenProcTerminates="yes" IsGUIProgram="no" IsEnabled="yes"/>
- <Environment EnvVarSetName="&lt;Use Defaults&gt;" DbgSetName="&lt;Use Defaults&gt;">
- <![CDATA[]]>
- </Environment>
- <Debugger IsRemote="no" RemoteHostName="" RemoteHostPort="" DebuggerPath="" IsExtended="no">
- <DebuggerSearchPaths/>
- <PostConnectCommands/>
- <StartupCommands/>
- </Debugger>
- <PreBuild/>
- <PostBuild/>
- <CustomBuild Enabled="no">
- <RebuildCommand/>
- <CleanCommand/>
- <BuildCommand/>
- <PreprocessFileCommand/>
- <SingleFileCommand/>
- <MakefileGenerationCommand/>
- <ThirdPartyToolName>None</ThirdPartyToolName>
- <WorkingDirectory/>
- </CustomBuild>
- <AdditionalRules>
- <CustomPostBuild/>
- <CustomPreBuild/>
- </AdditionalRules>
- <Completion EnableCpp11="no" EnableCpp14="no">
- <ClangCmpFlagsC/>
- <ClangCmpFlags/>
- <ClangPP/>
- <SearchPaths/>
- </Completion>
- </Configuration>
- <Configuration Name="Release" CompilerType="GCC" DebuggerType="GNU gdb debugger" Type="Executable" BuildCmpWithGlobalSettings="append" BuildLnkWithGlobalSettings="append" BuildResWithGlobalSettings="append">
- <Compiler Options="-O2;-Wall" C_Options="-O2;-Wall" Assembler="" Required="yes" PreCompiledHeader="" PCHInCommandLine="no" PCHFlags="" PCHFlagsPolicy="0">
- <IncludePath Value="."/>
- <Preprocessor Value="NDEBUG"/>
- </Compiler>
- <Linker Options="" Required="yes"/>
- <ResourceCompiler Options="" Required="no"/>
- <General OutputFile="$(IntermediateDirectory)/$(ProjectName)" IntermediateDirectory="./Release" Command="./$(ProjectName)" CommandArguments="" UseSeparateDebugArgs="no" DebugArguments="" WorkingDirectory="$(IntermediateDirectory)" PauseExecWhenProcTerminates="yes" IsGUIProgram="no" IsEnabled="yes"/>
- <Environment EnvVarSetName="&lt;Use Defaults&gt;" DbgSetName="&lt;Use Defaults&gt;">
- <![CDATA[]]>
- </Environment>
- <Debugger IsRemote="no" RemoteHostName="" RemoteHostPort="" DebuggerPath="" IsExtended="no">
- <DebuggerSearchPaths/>
- <PostConnectCommands/>
- <StartupCommands/>
- </Debugger>
- <PreBuild/>
- <PostBuild/>
- <CustomBuild Enabled="no">
- <RebuildCommand/>
- <CleanCommand/>
- <BuildCommand/>
- <PreprocessFileCommand/>
- <SingleFileCommand/>
- <MakefileGenerationCommand/>
- <ThirdPartyToolName>None</ThirdPartyToolName>
- <WorkingDirectory/>
- </CustomBuild>
- <AdditionalRules>
- <CustomPostBuild/>
- <CustomPreBuild/>
- </AdditionalRules>
- <Completion EnableCpp11="no" EnableCpp14="no">
- <ClangCmpFlagsC/>
- <ClangCmpFlags/>
- <ClangPP/>
- <SearchPaths/>
- </Completion>
- </Configuration>
- </Settings>
- <Dependencies Name="Debug">
- <Project Name="WinPort"/>
- </Dependencies>
- <Dependencies Name="Release"/>
-</CodeLite_Project>
diff --git a/farlng/farlng.txt b/farlng/farlng.txt
deleted file mode 100644
index bedf2ef6..00000000
--- a/farlng/farlng.txt
+++ /dev/null
@@ -1 +0,0 @@
-./Debug/src_lng.generator.cpp.o ./Debug/src_farlng.cpp.o ./Debug/src_lng.convertor.cpp.o ./Debug/src_lng.common.cpp.o ./Debug/src_lng.inserter.cpp.o