-
Notifications
You must be signed in to change notification settings - Fork 14
/
Rakefile
65 lines (60 loc) · 2.66 KB
/
Rakefile
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
require 'rake/builder'
Rake::Builder.new do | builder |
builder.task_namespace = :i386
builder.target = 'libactive_record_sqlite_i386.a'
builder.architecture = 'i386'
builder.source_search_paths = [ 'src' ]
builder.installable_headers = [ 'include/**/*.h' ]
builder.objects_path = 'objects_i386'
builder.include_paths = [ 'include' ]
builder.library_dependencies = [ 'sqlite3' ]
end
Rake::Builder.new do | builder |
builder.task_namespace = :x86_64
builder.target = 'libactive_record_sqlite_x86_64.a'
builder.architecture = 'x86_64'
builder.source_search_paths = [ 'src' ]
builder.installable_headers = [ 'include/**/*.h' ]
builder.objects_path = 'objects_x86_64'
builder.include_paths = [ 'include' ]
builder.library_dependencies = [ 'sqlite3' ]
end
Rake::Builder.new do | builder |
builder.task_namespace = :x86_64_profiled
builder.target = 'libactive_record_sqlite_x86_64_profiled.a'
builder.architecture = 'x86_64'
builder.source_search_paths = [ 'src' ]
builder.installable_headers = [ 'include/**/*.h' ]
builder.compilation_options = [ '-pg' ]
builder.objects_path = 'objects_x86_64_profiled'
builder.include_paths = [ 'include' ]
builder.library_dependencies = [ 'sqlite3' ]
end
Rake::Builder.new do | builder |
builder.task_namespace = :test
builder.target = 'active_record_test'
builder.architecture = 'x86_64'
builder.source_search_paths = [ 'test' ]
builder.installable_headers = [ 'test' ]
builder.objects_path = 'test/objects_test'
builder.include_paths = [ 'include', 'test' ]
builder.library_dependencies = [ 'gtest', 'active_record_sqlite_x86_64', 'sqlite3' ]
builder.library_paths = [ 'objects_x86_64' ]
builder.linker_options = [ '-L.' ]
builder.target_prerequisites = [ :'rake:x86_64' ]
builder.default_task = :run
end
Rake::Builder.new do | builder |
builder.task_namespace = :single_test
builder.target = 'single_test'
builder.architecture = 'x86_64'
builder.source_search_paths = [ 'test/base_test.cpp', 'test/test_helper.cpp', 'test/main.cpp' ]
builder.installable_headers = [ 'test' ]
builder.objects_path = 'test/objects_single_test'
builder.include_paths = [ 'include', 'test' ]
builder.library_dependencies = [ 'gtest', 'active_record_sqlite_x86_64', 'sqlite3' ]
builder.library_paths = [ 'objects_x86_64' ]
builder.linker_options = [ '-L.' ]
builder.target_prerequisites = [ :'rake:x86_64' ]
builder.default_task = [ :run ]
end