Extra externs file for builds without adapters

This commit is contained in:
copy 2014-07-22 22:54:40 +02:00
parent 7e0030b8c1
commit dd8639b8b5
2 changed files with 16 additions and 0 deletions

View file

@ -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
View 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() {};
}