-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rebol-SQLite.nest
127 lines (119 loc) · 2.87 KB
/
Rebol-SQLite.nest
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
;- .-.
;- /'v'\ SISKIN-Builder project file
;- (/uOu\) https://github.com/Siskin-framework/Builder/
;-===="="=======================================================================
compiler: clang
version: 3.46.0
;define: USE_TRACES
#if Windows? [ define: TO_WINDOWS define: _CRT_SECURE_NO_WARNINGS upx: on]
#if macOS? [ define: TO_OSX define: HAS_BOOL]
#if Linux? [ define: TO_LINUX ]
target-x86: [
arch: x86
#if Windows? [ defines: [ TO_WIN32 _WIN32 ] ]
#if Linux? [ defines: [ TO_LINUX_X86 ] ]
]
target-x64: [
arch: x64
defines: [
_FILE_OFFSET_BITS=64
__LP64__ ; has long (integer) 64 bits
]
#if Windows? [ defines: [ TO_WIN32_X64 _WIN32 ] ]
#if Linux? [ defines: [ TO_LINUX_X64 ] ]
#if macOS? [ defines: [ TO_OSX_X64 ] flags: ["-arch x86_64"] ]
]
target-arm64: [
arch: arm64
;flags: ["-arch arm64"]
flags: "-target arm64-apple-darwin"
define: _FILE_OFFSET_BITS=64
define: __LP64__ ; has long (integer) 64 bits
define: __arm64__
define: TO_OSX_X64
]
r3-extension: [
clean: %src/sqlite-rebol-extension.c
files: only [
%sqlite/sqlite3.c
%src/sqlite-rebol-extension.c
%src/sqlite-commands-table.c
%src/sqlite-command.c
%src/sqlite-command-info.c
%src/sqlite-command-open.c
%src/sqlite-command-close.c
%src/sqlite-command-eval.c
%src/sqlite-command-exec.c
%src/sqlite-command-finalize.c
%src/sqlite-command-prepare.c
%src/sqlite-command-reset.c
%src/sqlite-command-step.c
%src/sqlite-command-trace.c
%src/sqlite-command-columns.c
%src/sqlite-command-initialize.c
%src/sqlite-command-shutdown.c
%src/sqlite-command-last-insert-id.c
]
include: [
%src/
%sqlite/
]
defines: [ENDIAN_LITTLE]
cflags: [-fpermissive]
flags: [-O2 shared]
#if Posix? [
cflags: [-fPIC -pthread ]
;libraries: [%pthread]
]
do %src/sqlite-rebol-extension.r3
]
eggs: only [
#if Windows? [
"Rebol sqlite extension: win32_x86" [
name: %sqlite-windows-x86
:r3-extension
:target-x86
]
"Rebol sqlite extension: win32_x64" [
name: %sqlite-windows-x64
:r3-extension
:target-x64
]
]
#if macOS? [
"Rebol sqlite extension: osx_x64" [
name: %sqlite-macos-x64
:r3-extension
:target-x64
]
"Rebol sqlite extension: osx_arm64" [
name: %sqlite-macos-arm64
:r3-extension
:target-arm64
]
]
#if Linux? [
"Rebol sqlite extension: linux_x86" [
name: %sqlite-linux-x86
:r3-extension
:target-x86
]
"Rebol sqlite extension: linux_x64" [
name: %sqlite-linux-x64
:r3-extension
:target-x64
]
]
#if (system/platform = 'Haiku) [
"Rebol sqlite extension: haiku_x86" [
name: %sqlite-haiku-x86.rebx
:r3-extension
:target-x86
]
"Rebol sqlite extension: haiku_x64" [
name: %sqlite-haiku-x64.rebx
:r3-extension
:target-x64
]
]
]