Extra externs file for builds without adapters
This commit is contained in:
parent
7e0030b8c1
commit
dd8639b8b5
1
Makefile
1
Makefile
|
@ -80,6 +80,7 @@ libv86.js: src/*.js
|
|||
--js_output_file "../libv86.js"\
|
||||
--define=DEBUG=false\
|
||||
--define=IN_CLOSURE=false\
|
||||
--externs adapter-externs.js\
|
||||
$(CLOSURE_FLAGS)\
|
||||
$(CLOSURE_READABLE)\
|
||||
--js $(CORE_FILES)
|
||||
|
|
15
src/adapter-externs.js
Normal file
15
src/adapter-externs.js
Normal file
|
@ -0,0 +1,15 @@
|
|||
|
||||
|
||||
/** @constructor */
|
||||
function ScreenAdapter()
|
||||
{
|
||||
this.put_pixel_linear = function() {};
|
||||
this.put_pixel_linear32 = function() {};
|
||||
this.put_char = function() {};
|
||||
this.set_mode = function() {};
|
||||
this.set_size_graphical = function() {};
|
||||
this.set_size_text = function() {};
|
||||
this.update_cursor = function() {};
|
||||
this.update_cursor_scanline = function() {};
|
||||
this.timer = function() {};
|
||||
}
|
Loading…
Reference in a new issue