SCP: Avoid building sim_video code when it isn't used by a simulator.
This results in smaller simulator binaries.
This commit is contained in:
parent
bc3582c194
commit
1e0b83ca10
3 changed files with 12 additions and 0 deletions
2
scp.c
2
scp.c
|
@ -221,7 +221,9 @@
|
|||
#include "sim_tape.h"
|
||||
#include "sim_ether.h"
|
||||
#include "sim_serial.h"
|
||||
#if defined (USE_SIM_VIDEO)
|
||||
#include "sim_video.h"
|
||||
#endif
|
||||
#include "sim_sock.h"
|
||||
#include <signal.h>
|
||||
#include <ctype.h>
|
||||
|
|
|
@ -27,6 +27,8 @@
|
|||
11-Jun-2013 MB First version
|
||||
*/
|
||||
|
||||
#if defined(USE_SIM_VIDEO)
|
||||
|
||||
#include "sim_video.h"
|
||||
|
||||
t_bool vid_active = FALSE;
|
||||
|
@ -1685,3 +1687,5 @@ return SCPE_OK;
|
|||
|
||||
|
||||
#endif
|
||||
|
||||
#endif /* USE_SIM_VIDEO */
|
||||
|
|
|
@ -30,6 +30,10 @@
|
|||
#ifndef _SIM_VIDEO_H_
|
||||
#define _SIM_VIDEO_H_ 0
|
||||
|
||||
#if !defined(USE_SIM_VIDEO)
|
||||
#error This simulator MUST be compiled with USE_SIM_VIDEO defined
|
||||
#else
|
||||
|
||||
#include "sim_defs.h"
|
||||
|
||||
#define SIM_KEYPRESS_DOWN 0 /* key states */
|
||||
|
@ -191,4 +195,6 @@ extern t_bool vid_mouse_b3; /* mouse button 3 state
|
|||
#define SIM_VID_DBG_KEY 0x02000000
|
||||
#define SIM_VID_DBG_VIDEO 0x04000000
|
||||
|
||||
#endif /* USE_SIM_VIDEO */
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue