-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFoxMakefile
More file actions
95 lines (71 loc) · 1.78 KB
/
FoxMakefile
File metadata and controls
95 lines (71 loc) · 1.78 KB
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
##
Atenção: Para copiar os includes e a lib do xutest para esse projeto, é necessário
que o xutest esteja na pasta "../xutest". Para tanto, é necessário clonar o xutest
em ".."
##
$version=1.3
$arch=x64
$xutest_version=1.0
IF os == "windows"
$so=windows
ENDIF
IF os != "windows"
$so=linux
ENDIF
compiler=g++
IF os == "windows"
output.file.name=foxmake.exe
ENDIF
IF os != "windows"
output.file.name=foxmake
ENDIF
src.dir=src
test.dir=test
build.dir=build/foxmake-$(version)-$(so)-$(arch)
build.files=
$debug_bin_dir=bin/Debug
$debug_obj_dir=obj/Debug
$debug_compiler_params=-Wall -fexceptions -g -std=c++17
$debug_linker_params=
$release_bin_dir=bin/Release
$release_obj_dir=obj/Release
$release_compiler_params=-Wall -fexceptions -O2 -std=c++17
$release_linker_params=-s -static
bin.dir=$($(target)_bin_dir)
obj.dir=$($(target)_obj_dir)
compiler.params=$($(target)_compiler_params)
linker.params=$($(target)_linker_params)
lib.dirs=
include.dirs=
libs=
IF os != "windows"
test.linker.params=-ldl -rdynamic
ENDIF
test.lib.dirs=lib/$(so)
test.include.dirs=include
test.libs=xutest
task compile noverbose;
proc archive_and_copy_xutest
echo
rm -r include/*.h
rm lib/$(so)/libxutest.a
IF os == "windows"
@.\foxmake.exe archivebuildall --script=../xutest/FoxMakefile-StaticLib
ENDIF
IF os != "windows"
@./foxmake archivebuildall --script=../xutest/FoxMakefile-StaticLib
ENDIF
mkdir -p lib/$(so)
mkdir -p include
cp -r ../xutest/src/**/*.h include
cp ../xutest/build/xutest-$(xutest_version)-$(so)-$(arch)/libxutest.a lib/$(so)
echo
endproc
task compileall before
call archive_and_copy_xutest
endtask
task compile before
call archive_and_copy_xutest
endtask
task finish after
endtask