File tree 2 files changed +10
-4
lines changed 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -2,13 +2,18 @@ EMCC?=emcc
2
2
EMXX? =em++
3
3
COFFEE? =coffee
4
4
5
- # you may have to add mingw path like this.
6
- # INCS?=-I /path/to/mingw/include
5
+ # you may have to define mingw path like this.
6
+ # MINGW?= /path/to/mingw
7
7
8
8
DEFS =-D_X86_ -DWIN32 -DUNICODE -DWIN32_LEAN_AND_MEAN
9
9
OBJS =src/library_win32.js src/window.js
10
10
EXAMPLES =examples/hello.js
11
11
12
+ INCS =
13
+ ifdef MINGW
14
+ INCS=-I $(MINGW)/include
15
+ endif
16
+
12
17
.PHONY : all
13
18
all : $(OBJS )
14
19
@@ -17,6 +22,7 @@ src/%.js: src/%.coffee
17
22
18
23
.PHONY : examples
19
24
examples : $(EXAMPLES )
25
+ mkdir -p examples/lib
20
26
$(MAKE ) -C lib/fake-mswin assets OUTDIR=../../examples/lib
21
27
22
28
examples/% .js : examples/% .cpp all
Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ You need no Windows to run win32.js project.
10
10
use a prebuilt package if available.
11
11
- For Windows, You may use [ clang-win32] [ ] binary.
12
12
3 . Clone this repository. Note there is [ fake-mswin] [ ] submodule in use.
13
- 4 . ` make examples ` . It will build ` examples/hello.cpp ` to
14
- ` examples/hello.js ` .
13
+ 4 . Execute ` MINGW=/path/to/mingw make examples` .
14
+ ` examples/hello.cpp ` is compiled into ` examples/hello. js` .
15
15
5 . Open ` examples/hello.html ` using modern web browser.
16
16
17
17
[ w32api ] : http://sourceforge.net/projects/mingw/files/MinGW/Base/w32api/
You can’t perform that action at this time.
0 commit comments