File: wxsqlite3.bkl

package info (click to toggle)
wxsqlite3 3.4.1~dfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 6,008 kB
  • ctags: 1,248
  • sloc: cpp: 7,915; sh: 5,507; makefile: 365; ansic: 229; php: 9
file content (216 lines) | stat: -rw-r--r-- 7,996 bytes parent folder | download | duplicates (5)
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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
<?xml version="1.0" ?>
<makefile>

  <set var="USE_UNSTABLE_VERSION">1</set>
  <set var="WX_UNICODE">1</set>
<!--
  <set var="WX_MONOLITHIC">0</set>
-->
  <set var="WX_VERSION_DEFAULT">30</set>
<!--  <set var="WX_UNICODE_DEFAULT">1</set>-->
  <include file="presets/wxcode.bkl"/>

  <!-- The wxSQLite3 settings -->
  <!-- ====================== -->

  <set-comp-name>wxsqlite3</set-comp-name>

  <!-- COMP_SRC lists the component's sources with path relative to ../src -->
  <set var="COMP_SRC">
    src/wxsqlite3.cpp
  </set>

  <!-- COMP_HDR lists the component's headers with path relative to ../include -->
  <set var="COMP_HDR">
    include/wx/wxsqlite3def.h
	include/wx/wxsqlite3.h
	include/wx/wxsqlite3dyn.h
	include/wx/wxsqlite3opt.h
  </set>
  
  <set var="USE_DYNAMIC_SQLITE3_LOAD_DEFAULT">0</set>
  <set var="HAVE_METADATA_DEFAULT">0</set>
  <set var="HAVE_CODEC_DEFAULT">0</set>
  <set var="HAVE_LOAD_EXTENSION_DEFAULT">0</set>

  <if cond="TARGETING_IDE=='0'">
    <option name="USE_DYNAMIC_SQLITE3_LOAD">
      <values>1,0</values>
      <default-value>$(USE_DYNAMIC_SQLITE3_LOAD_DEFAULT)</default-value>
      <description>If 1 then the SQLite library will be loaded dynamically at run time</description>
    </option>
    <option name="HAVE_METADATA">
      <values>1,0</values>
      <default-value>$(HAVE_METADATA_DEFAULT)</default-value>
      <description>If 1 then the SQLite library has to be compiled with meta data support</description>
    </option>
    <option name="HAVE_CODEC">
      <values>1,0</values>
      <default-value>$(HAVE_CODEC_DEFAULT)</default-value>
      <description>If 1 then the SQLite library has to be compiled with codec support</description>
    </option>
    <option name="HAVE_LOAD_EXTENSION">
      <values>1,0</values>
      <default-value>$(HAVE_LOAD_EXTENSION_DEFAULT)</default-value>
      <description>If 1 then the SQLite library has to be compiled with loadable extension support</description>
    </option>
  </if>
  <if cond="TARGETING_IDE=='1'">
    <set var="USE_DYNAMIC_SQLITE3_LOAD">$(USE_DYNAMIC_SQLITE3_LOAD_DEFAULT)</set>
    <set var="HAVE_METADATA">$(HAVE_METADATA_DEFAULT)</set>
    <set var="HAVE_CODEC">$(HAVE_CODEC_DEFAULT)</set>
    <set var="HAVE_LOAD_EXTENSION">$(HAVE_LOAD_EXTENSION_DEFAULT)</set>
  </if>

  <if cond="TARGETING_WIN32=='1'">
    <option name="SQLITE3_DIR" category="path">
        <default-value>$(SRCDIR)$(DIRSEP)sqlite3</default-value>
        <description>Folder where the SQLite3 link library is located</description>
    </option>
  </if>
  <if cond="TARGETING_WIN32=='0'">
      <option name="SQLITE3_DIR" category="path"/>
  </if>

  <set var="SQLITE3_DEP">
    <if cond="USE_DYNAMIC_SQLITE3_LOAD=='0'">sqlite3</if>
  </set>

  <set var="SQLITE3_DYNAMICLOAD_DEF">
    <if cond="USE_DYNAMIC_SQLITE3_LOAD=='0'">wxUSE_DYNAMIC_SQLITE3_LOAD=0</if>
    <if cond="USE_DYNAMIC_SQLITE3_LOAD=='1'">wxUSE_DYNAMIC_SQLITE3_LOAD=1</if>
  </set>

  <set var="SQLITE3_HAVE_METADATA_DEF">
    <if cond="HAVE_METADATA=='0'">WXSQLITE3_HAVE_METADATA=0</if>
    <if cond="HAVE_METADATA=='1'">WXSQLITE3_HAVE_METADATA=1</if>
  </set>
  <set var="SQLITE3_HAVE_CODEC_DEF">
    <if cond="HAVE_CODEC=='0'">WXSQLITE3_HAVE_CODEC=0</if>
    <if cond="HAVE_CODEC=='1'">WXSQLITE3_HAVE_CODEC=1</if>
  </set>
  <set var="SQLITE3_HAVE_LOAD_EXTENSION_DEF">
    <if cond="HAVE_LOAD_EXTENSION=='0'">WXSQLITE3_HAVE_LOAD_EXTENSION=0</if>
    <if cond="HAVE_LOAD_EXTENSION=='1'">WXSQLITE3_HAVE_LOAD_EXTENSION=1</if>
  </set>

  <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
  <!-- Library settings                                                  -->
  <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->

  <lib id="wxsqlite3_lib" template="wxcode-lib" cond="SHARED=='0'">
    <define>$(SQLITE3_DYNAMICLOAD_DEF)</define>
    <define>$(SQLITE3_HAVE_METADATA_DEF)</define>
    <define>$(SQLITE3_HAVE_CODEC_DEF)</define>
    <define>$(SQLITE3_HAVE_LOAD_EXTENSION_DEF)</define>
    <stdlib>$(SQLITE3_DIR)</stdlib>
  </lib>

  <dll id="wxsqlite3_dll" template="wxcode-dll" cond="SHARED=='1'">
    <define>$(SQLITE3_DYNAMICLOAD_DEF)</define>
    <define>$(SQLITE3_HAVE_METADATA_DEF)</define>
    <define>$(SQLITE3_HAVE_CODEC_DEF)</define>
    <define>$(SQLITE3_HAVE_LOAD_EXTENSION_DEF)</define>
    <stdlib>$(SQLITE3_DIR)</stdlib>
    <sys-lib>$(SQLITE3_DEP)</sys-lib>
    <wx-lib>core</wx-lib>
    <wx-lib>base</wx-lib>
  </dll>

  <set var="MSVC6PRJ_MERGED_TARGETS">
    wxsqlite3=wxsqlite3_lib+wxsqlite3_dll
  </set>

  <set var="COMPONENT_LIB">
    <if cond="FORMAT_SUPPORTS_CONDITIONS=='1' and SHARED=='0'">wxsqlite3_lib</if>
    <if cond="FORMAT_SUPPORTS_CONDITIONS=='1' and SHARED=='1'">wxsqlite3_dll</if>
    <if cond="FORMAT_SUPPORTS_CONDITIONS=='0'">wxsqlite3_lib</if>
  </set>

  <!-- =============================================================== -->
  <!--                    Misc platform specialities:                  -->
  <!-- =============================================================== -->

  <if cond="FORMAT=='autoconf'">
    <include file="mac_bundles.bkl"/>
  </if>

  <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
  <!-- Sample(s) settings                                                -->
  <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->

  <template id="wxsqlite3_sample">
    <app-type>console</app-type>
    <sources>$(fileList('samples/*.cpp'))</sources>
    <headers>$(fileList('samples/*.h'))</headers>
    <include>$(SRCDIR)/samples</include>
    <dirname>$(SRCDIR)/samples</dirname>
    <library>$(COMPONENT_LIB)</library>
    <stdlib>$(SQLITE3_DIR)</stdlib>
    <sys-lib>$(SQLITE3_DEP)</sys-lib>
    <wx-lib>core</wx-lib>
    <wx-lib>base</wx-lib>
  </template>

  <!-- The sample of the component: as for the LIB target, this exe derives from a 
       template contained in wxcode.bkl which can be modified here -->
  <wxcode-sample id="minimal" template="wxsqlite3_sample">
    <exename>minimal</exename>
    <win32-res>samples/minimal.rc</win32-res>
  </wxcode-sample>

  <template id="wxsqlite3_treeview">
    <app-type>gui</app-type>
    <sources>$(fileList('samples/treeview/*.cpp'))</sources>
    <headers>$(fileList('samples/treeview/*.h'))</headers>
    <include>$(SRCDIR)/samples/treeview</include>
    <dirname>$(SRCDIR)/samples/treeview</dirname>
    <library>$(COMPONENT_LIB)</library>
    <stdlib>$(SQLITE3_DIR)</stdlib>
    <sys-lib>$(SQLITE3_DEP)</sys-lib>
    <wx-lib>adv</wx-lib>
    <wx-lib>xml</wx-lib>
    <wx-lib>core</wx-lib>
    <wx-lib>base</wx-lib>
  </template>

  <wxcode-sample id="treeview" template="wxsqlite3_treeview">
    <exename>treeview</exename>
    <win32-res>samples/treeview/treeview.rc</win32-res>
    <if cond="FORMAT=='autoconf'">
      <wx-mac-app-bundle/>
    </if>
  </wxcode-sample>

<!--
  <template id="wxsqlite3_dbadmin">
    <app-type>gui</app-type>
    <sources>$(fileList('dbadmin/*.cpp'))</sources>
    <headers>$(fileList('dbadmin/*.h'))</headers>
    <include>$(SRCDIR)/dbadmin</include>
    <dirname>$(SRCDIR)/dbadmin</dirname>
    <library>$(COMPONENT_LIB)</library>
    <stdlib>$(SQLITE3_DIR)</stdlib>
    <sys-lib>$(SQLITE3_DEP)</sys-lib>
    <if cond="WX_VERSION_DEFAULT=='28'">
      <include>$(WX_DIR)/contrib/include</include>
    </if>
    <wx-lib>stc</wx-lib>
    <wx-lib>richtext</wx-lib>
    <wx-lib>aui</wx-lib>
    <wx-lib>adv</wx-lib>
    <wx-lib>net</wx-lib>
    <wx-lib>xml</wx-lib>
    <wx-lib>core</wx-lib>
    <wx-lib>base</wx-lib>
  </template>

  <wxcode-sample id="dbadmin" template="wxsqlite3_dbadmin">
    <exename>dbadmin</exename>
    <win32-res>dbadmin/wxsqliteplus.rc</win32-res>
    <if cond="FORMAT=='autoconf'">
      <wx-mac-app-bundle/>
    </if>
  </wxcode-sample>
-->
</makefile>