Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 643494 | Differences between
and this patch

Collapse All | Expand All

(-) (+39 lines)
Added Link Here
1
WXGTK_VER=IS_NOT_SET
2
3
WXGTK_CFLAGS=$(wx-config --version=$WXGTK_VER --cflags)
4
if [ $WXGTK_VER = 2.8 ]; then
5
     WXGTK_LIBS=$(wx-config --version=$WXGTK_VER --libs)
6
elif [ $WXGTK_VER = 3.0 ] || [ $WXGTK_VER = 3.0-gtk3 ]; then
7
    WXGTK_LIBS=$(wx-config --version=$WXGTK_VER --libs std,aui,propgrid,richtext)
8
fi
9
10
WXGTK_ENV="$WXGTK_CFLAGS $WXGTK_LIBS"
11
12
INCLUDES="-I../../../include -I../../../include/tinyxml -I../../../sdk/wxscintilla/include -I../FortranProject"
13
14
FILE_LIST="autoinsert bindto bindtonewtype bufferparserthread calledbydict calltree calltreeview 
15
ccsmartfilter changecase constrhighlighter docblock farrays fconstruct finfowindow formatindent 
16
formatindentdlg fortranfileext fortranproject fpimagelist fpoptionsdlg includedb indentestimator 
17
jumptracker keywordsparserf lineaddress makefiledlg makefilegen moduletokenf nativeparserf parserf 
18
parserthreadf projectdependencies tab2space textcutter tokenf tokenizerf usetokenf workspacebrowserbuilder 
19
workspacebrowserf workspaceparserthread"
20
21
mkdir ./.objs
22
for file in $FILE_LIST; do
23
    g++ -Wshadow -Wall -std=c++11 -fPIC -fexceptions -Winvalid-pch $WXGTK_ENV $INCLUDES -c ./$file.cpp -o ./.objs/$file.o
24
done
25
26
mkdir ./.libs
27
OBJ_LST=""
28
for file in $FILE_LIST; do
29
    OBJ_LST="$OBJ_LST ./.objs/$file.o"
30
done
31
32
if [ $WXGTK_VER = 2.8 ]; then
33
    g++ -shared -L../../../sdk/.libs $OBJ_LST -o ./.libs/FortranProject.so $WXGTK_LIBS -lcodeblocks
34
elif [ $WXGTK_VER = 3.0 ] || [ $WXGTK_VER = 3.0-gtk3 ]; then
35
    g++ -shared -L../../../sdk/.libs $OBJ_LST -o ./.libs/FortranProject.so $WXGTK_LIBS -lcodeblocks
36
fi
37
38
zip -j9 ./FortranProject.zip manifest.xml resources/workspacebrowserf.xrc resources/settings.xrc resources/fortranprojecttoolbar.xrc resources/changecase.xrc resources/tab2space.xrc
39
zip -r9 ./FortranProject.zip images

Return to bug 643494