Skip to content

Commit

Permalink
add liteidex
Browse files Browse the repository at this point in the history
  • Loading branch information
visualfc committed Nov 20, 2012
1 parent 95a1930 commit 477838b
Show file tree
Hide file tree
Showing 885 changed files with 91,654 additions and 22 deletions.
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,12 @@ moc_*.cpp
qrc_*.cpp
Makefile
*-build-*

# hg
.hg*

#liteide
*.exe
build
liteidex/liteide

51 changes: 29 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,32 +1,39 @@
LiteIDE
=========

###Introduction
### Introduction
LiteIDE is a simple, open source, cross-platform Go IDE.

###Base Features
* Mime type basis system
* System environment manage
* Build system manage
* Debug system simple and open
* Kate syntax and style scheme
* WordApi complete helper
### Base Features
* Mime type basis system
* System environment manage
* Build system manage
* Debug system simple and open
* Kate syntax and style scheme
* WordApi complete helper

### Golang Support
* Go Package Browser
* Golang Ast View
* Godoc Browser
* Gocode Helper
* Goapi Index
* Jump to Declaration
* Code Expression info
* Go Playground
* Go Package Browser
* Golang Ast View
* Godoc Browser
* Gocode Helper
* Goapi Index
* Jump to Declaration
* Code Expression info
* Go Playground

### System
Windows
Linux 32 Linux 64
MacOS X10.6
* Windows
* Linux 32 Linux 64
* MacOS X10.6

### Website
* Home <https://github.com/visualfc/liteide>
* Group <https://groups.google.com/group/liteide-dev>
### GitHub
* GitHub <https://github.com/visualfc/liteide>

### GoogleCode
* Source <http://code.google.com/p/liteide>
* Downloads <http://code.google.com/p/golangide>
* Group <https://groups.google.com/group/liteide-dev>

### Developer
* [visualfc](mail:[email protected])
85 changes: 85 additions & 0 deletions build/build_linux.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
#!/bin/sh

export BUILD_ROOT=$PWD

if [ -z $LITEIDE_ROOT ]; then
export LITEIDE_ROOT=$PWD/../liteidex
fi

echo build liteide
echo QTDIR=$QTDIR
echo GOROOT=$GOROOT
echo BUILD_ROOT=$BUILD_ROOT
echo LITEIDE_ROOT=$LITEIDE_ROOT
echo .

if [ -z $QTDIR ]; then
echo 'error, QTDIR is null'
exit 1
fi

export PATH=$QTDIR/bin:$PATH

echo qmake liteide ...
echo .
qmake $LITEIDE_ROOT -spec linux-g++ "CONFIG+=release"

if [ $? -ge 1 ]; then
echo 'error, qmake fail'
exit 1
fi

echo make liteide ...
echo .
make

if [ $? -ge 1 ]; then
echo 'error, make fail'
exit 1
fi

go version
if [ $? -ge 1 ]; then
echo 'error, not find go in PATH'
exit 1
fi

echo build liteide tools ...
cd $LITEIDE_ROOT
export GOPATH=$PWD

go install -ldflags "-s -r ." -v liteidex
go install -ldflags "-s" -v tools/goastview
go install -ldflags "-s" -v tools/godocview
go install -ldflags "-s" -v tools/goexec
go install -ldflags "-s" -v tools/goapi

if [ $? -ge 1 ]; then
echo 'error, go install fail'
exit 1
fi

echo deploy ...

cd $BUILD_ROOT

rm -r liteide
mkdir -p liteide
mkdir -p liteide/bin
mkdir -p liteide/share/liteide
mkdir -p liteide/lib/liteide/plugins

cp -v $LITEIDE_ROOT/LICENSE.LGPL liteide
cp -v $LITEIDE_ROOT/LGPL_EXCEPTION.TXT liteide
cp -v $LITEIDE_ROOT/README.TXT liteide

cp $LITEIDE_ROOT/liteide/bin/* liteide/bin
cp $LITEIDE_ROOT/bin/* liteide/bin
cp $LITEIDE_ROOT/liteide/lib/liteide/plugins/*.so liteide/lib/liteide/plugins

cp -r -v $LITEIDE_ROOT/deploy/* liteide/share/liteide/
cp -r -v $LITEIDE_ROOT/os_deploy/linux/* liteide/share/liteide/

cp -a -v $QTDIR/lib/libQtCore.so* liteide/lib/liteide
cp -a -v $QTDIR/lib/libQtGui.so* liteide/lib/liteide
cp -a -v $QTDIR/lib/libQtXml.so* liteide/lib/liteide
104 changes: 104 additions & 0 deletions build/build_mingw.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
@echo off

set BUILD_ROOT=%CD%
if x%LITEIDE_ROOT%==x set LITEIDE_ROOT=%CD%\..\liteidex

echo build liteide
echo QTDIR=%QTDIR%
echo GOROOT=%GOROOT%
echo BUILD_ROOT=%BUILD_ROOT%
echo LITEIDE_ROOT=%LITEIDE_ROOT%
echo MINGWDIR=%MINGWDIR%
echo .

if x%QTDIR%==x goto qtdir_fail
if x%MINGWDIR%==x goto mwdir_fail

set PATH=%QTDIR%/bin;%MINGWDIR%/bin;%PATH%

echo qmake liteide ...
echo .
qmake %LITEIDE_ROOT% -r -spec win32-g++ "CONFIG+=release"

if ERRORLEVEL 1 goto qmake_fail

echo make liteide ...
echo .
mingw32-make

if ERRORLEVEL 1 goto make_fail

go version

if ERRORLEVEL 1 goto go_fail

echo build liteide tools
echo .

cd %LITEIDE_ROOT%
set GOPATH=%CD%;%GOPATH%

cd src\liteidex
windres -o liteide-res.syso liteide.rc
go install -ldflags "-s -H windowgui" -v liteidex
del liteide-res.syso
cd ..\..

go install -ldflags "-s" -v tools/goastview
go install -ldflags "-s" -v tools/godocview
go install -ldflags "-s" -v tools/goexec
go install -ldflags "-s" -v tools/goapi

cd %BUILD_ROOT%

echo deploy liteide ...
echo .

rmdir /q /s liteide

if not exist liteide mkdir liteide
if not exist liteide\bin mkdir liteide\bin
if not exist liteide\lib mkdir liteide\lib
if not exist liteide\lib\liteide mkdir liteide\lib\liteide
if not exist liteide\lib\liteide\plugins mkdir liteide\lib\liteide\plugins

xcopy %LITEIDE_ROOT%\LICENSE.LGPL liteide /y
xcopy %LITEIDE_ROOT%\LGPL_EXCEPTION.TXT liteide /y
xcopy %LITEIDE_ROOT%\README.TXT liteide /y

xcopy %LITEIDE_ROOT%\liteide\bin\* liteide\bin /y
xcopy %LITEIDE_ROOT%\bin\* liteide\bin /y
xcopy %LITEIDE_ROOT%\liteide\lib\liteide\plugins\*.dll liteide\lib\liteide\plugins /y

xcopy %LITEIDE_ROOT%\deploy liteide\share\liteide /e /y /i
xcopy %LITEIDE_ROOT%\os_deploy\windows liteide\share\liteide /e /y /i

xcopy %QTDIR%\bin\QtCore4.dll liteide\bin /y
xcopy %QTDIR%\bin\QtGui4.dll liteide\bin /y
xcopy %QTDIR%\bin\QtXml4.dll liteide\bin /y
xcopy %MINGWDIR%\bin\mingwm10.dll liteide\bin /y
xcopy %MINGWDIR%\bin\libgcc_s_dw2-1.dll liteide\bin /y

goto end

:qtdir_fail
echo error, QTDIR is null
goto end

:mwdir_fail
echo error, MINGWDIR is null
goto end

:qmake_fail
echo error, qmake fail
goto end

:make_fail
echo error, make fail
goto end

:go_fail
echo error, go fail
goto end

:end
Loading

0 comments on commit 477838b

Please sign in to comment.