forked from alpha0010/ClangLib
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathclanglib-unix.cbp
119 lines (119 loc) · 4.17 KB
/
clanglib-unix.cbp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_project_file>
<FileVersion major="1" minor="6" />
<Project>
<Option title="clanglib wx2.8.x (Unix)" />
<Option pch_mode="2" />
<Option default_target="ClangLib" />
<Option compiler="gcc" />
<Build>
<Target title="release">
<Option output="$(TARGET_NAME)/clanglib" prefix_auto="0" extension_auto="1" />
<Option object_output=".objs/plugins/clanglib" />
<Option type="3" />
<Option compiler="gcc" />
<Option parameters="--debug-log --multiple-instance -ns -ni -v -p debug" />
<Option host_application="./codeblocks" />
<Option run_host_application_in_terminal="0" />
<Option projectCompilerOptionsRelation="2" />
<Compiler>
<Add option="-O3" />
<Add option="-DBUILDING_PLUGIN" />
<Add option="-DCB_PRECOMP" />
<Add directory="." />
</Compiler>
<ExtraCommands>
<Add after="zip -j9 clanglib.zip resources/manifest.xml resources/ccsettings.xrc" />
<Add after="zip -j9 clanglib.cbplugin $(TARGET_NAME)/clanglib.so clanglib.zip" />
<Mode after="always" />
</ExtraCommands>
</Target>
<Target title="debug">
<Option output="$(TARGET_NAME)/clanglib" prefix_auto="0" extension_auto="1" />
<Option object_output=".objs/plugins/clanglib" />
<Option type="3" />
<Option compiler="gcc" />
<Option parameters="--debug-log --multiple-instance -ns -ni -v -p debug" />
<Option host_application="./codeblocks" />
<Option run_host_application_in_terminal="0" />
<Option projectCompilerOptionsRelation="2" />
<Compiler>
<Add option="-DBUILDING_PLUGIN" />
<Add option="-DNOPCH" />
<Add directory="." />
</Compiler>
<ExtraCommands>
<Add after="zip -j9 clanglib.zip resources/manifest.xml resources/ccsettings.xrc" />
<Add after="zip -j9 clanglib.cbplugin $(TARGET_NAME)/clanglib.so clanglib.zip" />
<Mode after="always" />
</ExtraCommands>
</Target>
<Environment>
<Variable name="WX_CONFIG" value="wx-config --version=2.8" />
</Environment>
</Build>
<VirtualTargets>
<Add alias="All" targets="release;" />
</VirtualTargets>
<Compiler>
<Add option="-Wextra" />
<Add option="-Wall" />
<Add option="-ansi" />
<Add option="-fPIC" />
<Add option="$(#CB_RELEASE_TYPE)" />
<Add option="`$(WX_CONFIG) --cflags`" />
<Add option="-I`llvm-config --includedir`" />
<Add option="-fmessage-length=0" />
<Add option="-fexceptions" />
<Add option="-Winvalid-pch" />
<Add option="-pthread" />
<Add option="`pkg-config --cflags codeblocks`" />
<Add option="-std=c++11" />
<Add option="-DcbDEBUG" />
</Compiler>
<Linker>
<Add option="`$(WX_CONFIG) --libs`" />
<Add option="-L`llvm-config --libdir`" />
<Add option="-Wl,--no-undefined" />
<Add option="`pkg-config --libs codeblocks`" />
<Add library="codeblocks" />
<Add library="clang" />
</Linker>
<ExtraCommands>
<Add before="echo libs: `pkg-config --libs codeblocks`" />
<Add before="echo cflags: `pkg-config --cflags codeblocks`" />
</ExtraCommands>
<Unit filename="README.md">
<Option target="<{~None~}>" />
</Unit>
<Unit filename="cclogger.cpp" />
<Unit filename="cclogger.h" />
<Unit filename="clangcc.cpp" />
<Unit filename="clangcc.h" />
<Unit filename="clangccsettingsdlg.cpp" />
<Unit filename="clangccsettingsdlg.h" />
<Unit filename="clangdiagnostics.cpp" />
<Unit filename="clangdiagnostics.h" />
<Unit filename="clangplugin.cpp" />
<Unit filename="clangplugin.h" />
<Unit filename="clangpluginapi.h" />
<Unit filename="clangproxy.cpp" />
<Unit filename="clangproxy.h" />
<Unit filename="clangtoolbar.cpp" />
<Unit filename="clangtoolbar.h" />
<Unit filename="resources/ccsettings.xrc" />
<Unit filename="resources/clangcodecompletion_toolbar.xrc" />
<Unit filename="resources/manifest.xml" />
<Unit filename="tokendatabase.cpp" />
<Unit filename="tokendatabase.h" />
<Unit filename="translationunit.cpp" />
<Unit filename="translationunit.h" />
<Unit filename="treemap.cpp" />
<Unit filename="treemap.h" />
<Extensions>
<code_completion />
<envvars />
<debugger />
</Extensions>
</Project>
</CodeBlocks_project_file>