forked from pmed/v8pp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.ninja
47 lines (39 loc) · 2.02 KB
/
build.ninja
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
cxx = c++
cxxflags = -Wall -Wextra -Wno-return-type-c-linkage -std=c++11 -fPIC -fno-rtti -I. -I./v8pp -DV8PP_ISOLATE_DATA_SLOT=0
ldflags = -lv8 -lv8_libplatform -lv8_libbase -L. -lv8pp -ldl -lpthread
rule cxx
command = $cxx $cxxflags -c $in -o $out
description = $cxx $in
rule ar
command = ar rcs $out $in
description = ar $out
rule link
command = $cxx -o $out $in $ldflags
description = link $out
rule plugin
command = $cxx $cxxflags $in -o $out $ldflags -shared
description = plugin $out
build v8pp_test: link test/main.o test/test_call_from_v8.o test/test_call_v8.o test/test_class.o test/test_context.o test/test_convert.o test/test_factory.o test/test_function.o test/test_json.o test/test_module.o test/test_object.o test/test_property.o test/test_ptr_traits.o test/test_throw_ex.o test/test_utility.o || libv8pp.a file.so console.so
build libv8pp.a: ar v8pp/class.o v8pp/context.o v8pp/convert.o v8pp/json.o v8pp/throw_ex.o
build console.so: plugin plugins/console.cpp || libv8pp.a
build file.so: plugin plugins/file.cpp || libv8pp.a
build v8pp/class.o: cxx v8pp/class.cpp
build v8pp/context.o: cxx v8pp/context.cpp
build v8pp/convert.o: cxx v8pp/convert.cpp
build v8pp/json.o: cxx v8pp/json.cpp
build v8pp/throw_ex.o: cxx v8pp/throw_ex.cpp
build test/main.o: cxx test/main.cpp
build test/test_call_from_v8.o: cxx test/test_call_from_v8.cpp
build test/test_call_v8.o: cxx test/test_call_v8.cpp
build test/test_class.o: cxx test/test_class.cpp
build test/test_context.o: cxx test/test_context.cpp
build test/test_convert.o: cxx test/test_convert.cpp
build test/test_factory.o: cxx test/test_factory.cpp
build test/test_function.o: cxx test/test_function.cpp
build test/test_json.o: cxx test/test_json.cpp
build test/test_module.o: cxx test/test_module.cpp
build test/test_object.o: cxx test/test_object.cpp
build test/test_property.o: cxx test/test_property.cpp
build test/test_ptr_traits.o: cxx test/test_ptr_traits.cpp
build test/test_throw_ex.o: cxx test/test_throw_ex.cpp
build test/test_utility.o: cxx test/test_utility.cpp