Mercurial > MadButterfly
annotate nodejs/Makefile.am @ 1453:0cb89e204824
Implement tree-traveling for JS
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Wed, 13 Apr 2011 17:34:09 +0800 |
parents | 762d1e3795f3 |
children |
rev | line source |
---|---|
822
586e50f82c1f
Unify coding style tag for emacs and vim.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
813
diff
changeset
|
1 # -*- indent-tabs-mode: t; tab-width: 8; c-basic-offset: 4; -*- |
586e50f82c1f
Unify coding style tag for emacs and vim.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
813
diff
changeset
|
2 # vim: sw=4:ts=8:sts=4 |
544
16f4f8305c8f
Start MadButterfly nodejs plugin
Thinker K.F. Li <thinker@branda.to>
parents:
543
diff
changeset
|
3 |
1057
60e7e666a573
Rename filenames in Makefile for nsj_mb_supp.[ch]
Thinker K.F. Li <thinker@codemud.net>
parents:
822
diff
changeset
|
4 mbfly_node_SRCS = mbfly_njs.cc njs_mb_supp.c coord.cc shapes.cc paints.cc \ |
575
97159102f886
Function of query font face in Javascript
Thinker K.F. Li <thinker@branda.to>
parents:
567
diff
changeset
|
5 font.cc |
556
c9d23f7279a4
The first testcase that nodejs code can show a MadButterfly window.
Thinker K.F. Li <thinker@branda.to>
parents:
547
diff
changeset
|
6 mbfly_node_CFLAGS= -I$(abs_top_builddir)/include \ |
c9d23f7279a4
The first testcase that nodejs code can show a MadButterfly window.
Thinker K.F. Li <thinker@branda.to>
parents:
547
diff
changeset
|
7 -I$(abs_top_srcdir)/include \ |
c9d23f7279a4
The first testcase that nodejs code can show a MadButterfly window.
Thinker K.F. Li <thinker@branda.to>
parents:
547
diff
changeset
|
8 -I$(prefix)/include \ |
1069
cdd573c85ad8
Add imlib2 flags for nodejs plugin
Thinker K.F. Li <thinker@codemud.net>
parents:
1057
diff
changeset
|
9 @imlib2_CFLAGS@ \ |
1089
74f36875980d
Add CPPFLAGS to CFLAGS for node-waf to build nodejs plugin
Thinker K.F. Li <thinker@codemud.net>
parents:
1069
diff
changeset
|
10 @pangocairo_CFLAGS@ $(CFLAGS) $(CPPFLAGS) |
1069
cdd573c85ad8
Add imlib2 flags for nodejs plugin
Thinker K.F. Li <thinker@codemud.net>
parents:
1057
diff
changeset
|
11 mbfly_node_LDFLAGS = -L$(abs_top_builddir)/src/.libs @pangocairo_LIBS@ \ |
1090
762d1e3795f3
Link OpenVG against nodejs plugin
Thinker K.F. Li <thinker@codemud.net>
parents:
1089
diff
changeset
|
12 @imlib2_LIBS@ $(LDFLAGS) |
762d1e3795f3
Link OpenVG against nodejs plugin
Thinker K.F. Li <thinker@codemud.net>
parents:
1089
diff
changeset
|
13 |
762d1e3795f3
Link OpenVG against nodejs plugin
Thinker K.F. Li <thinker@codemud.net>
parents:
1089
diff
changeset
|
14 if OPENVG_GRAPH_ENGINE |
762d1e3795f3
Link OpenVG against nodejs plugin
Thinker K.F. Li <thinker@codemud.net>
parents:
1089
diff
changeset
|
15 mbfly_node_LDFLAGS += -lOpenVG |
762d1e3795f3
Link OpenVG against nodejs plugin
Thinker K.F. Li <thinker@codemud.net>
parents:
1089
diff
changeset
|
16 endif |
694
7e64e0f70cb6
Switch XSHM with autoconf
Thinker K.F. Li <thinker@branda.to>
parents:
693
diff
changeset
|
17 |
7e64e0f70cb6
Switch XSHM with autoconf
Thinker K.F. Li <thinker@branda.to>
parents:
693
diff
changeset
|
18 if XSHM |
7e64e0f70cb6
Switch XSHM with autoconf
Thinker K.F. Li <thinker@branda.to>
parents:
693
diff
changeset
|
19 mbfly_node_LDFLAGS += -lXext |
7e64e0f70cb6
Switch XSHM with autoconf
Thinker K.F. Li <thinker@branda.to>
parents:
693
diff
changeset
|
20 endif |
544
16f4f8305c8f
Start MadButterfly nodejs plugin
Thinker K.F. Li <thinker@branda.to>
parents:
543
diff
changeset
|
21 |
16f4f8305c8f
Start MadButterfly nodejs plugin
Thinker K.F. Li <thinker@branda.to>
parents:
543
diff
changeset
|
22 all: mbfly.node |
16f4f8305c8f
Start MadButterfly nodejs plugin
Thinker K.F. Li <thinker@branda.to>
parents:
543
diff
changeset
|
23 clean: clean-mbfly-node |
16f4f8305c8f
Start MadButterfly nodejs plugin
Thinker K.F. Li <thinker@branda.to>
parents:
543
diff
changeset
|
24 |
16f4f8305c8f
Start MadButterfly nodejs plugin
Thinker K.F. Li <thinker@branda.to>
parents:
543
diff
changeset
|
25 mbfly.node: wscript $(mbfly_node_SRCS) |
16f4f8305c8f
Start MadButterfly nodejs plugin
Thinker K.F. Li <thinker@branda.to>
parents:
543
diff
changeset
|
26 cd $(srcdir); \ |
546
249bcbf07eb0
Reuse and adapt X_supp.c by implmeneting X_supp_njs.c
Thinker K.F. Li <thinker@branda.to>
parents:
544
diff
changeset
|
27 CFLAGS="$(mbfly_node_CFLAGS)" \ |
557
0ca8437a91fa
Implement Indexed Property interceptors
Thinker K.F. Li <thinker@branda.to>
parents:
556
diff
changeset
|
28 CXXFLAGS="$(mbfly_node_CFLAGS)" \ |
556
c9d23f7279a4
The first testcase that nodejs code can show a MadButterfly window.
Thinker K.F. Li <thinker@branda.to>
parents:
547
diff
changeset
|
29 LDFLAGS="$(mbfly_node_LDFLAGS)" \ |
c9d23f7279a4
The first testcase that nodejs code can show a MadButterfly window.
Thinker K.F. Li <thinker@branda.to>
parents:
547
diff
changeset
|
30 TOP_BUILDDIR="$(abs_top_builddir)" \ |
577
d561b2415711
move built nodejs plugin to objs/ subdirectory
Thinker K.F. Li <thinker@branda.to>
parents:
575
diff
changeset
|
31 WAFLOCK=$(abs_builddir)/objs/.lock-wscript \ |
651
aa52883534fc
Code generated by generator can be built
Thinker K.F. Li <thinker@branda.to>
parents:
642
diff
changeset
|
32 $(NODE_WAF) configure build --srcdir=$(abs_srcdir) \ |
aa52883534fc
Code generated by generator can be built
Thinker K.F. Li <thinker@branda.to>
parents:
642
diff
changeset
|
33 --blddir=$(abs_builddir)/objs |
544
16f4f8305c8f
Start MadButterfly nodejs plugin
Thinker K.F. Li <thinker@branda.to>
parents:
543
diff
changeset
|
34 |
16f4f8305c8f
Start MadButterfly nodejs plugin
Thinker K.F. Li <thinker@branda.to>
parents:
543
diff
changeset
|
35 clean-mbfly-node: |
813
dfa8b69e4423
Ignore error when cleaning nodejs module
Thinker K.F. Li <thinker@codemud.net>
parents:
694
diff
changeset
|
36 -cd $(srcdir); \ |
642
4f7b4ff31c0c
Fix the issue that can not clean nodejs addon
Thinker K.F. Li <thinker@branda.to>
parents:
577
diff
changeset
|
37 WAFLOCK=$(abs_builddir)/objs/.lock-wscript \ |
546
249bcbf07eb0
Reuse and adapt X_supp.c by implmeneting X_supp_njs.c
Thinker K.F. Li <thinker@branda.to>
parents:
544
diff
changeset
|
38 $(NODE_WAF) clean |