1
0
mirror of https://github.com/elua/elua.git synced 2025-01-08 20:56:17 +08:00

Turn on rpc if boot mode is set to luarpc, regardless of whether BUILD_RPC is

set.
This commit is contained in:
James Snyder 2010-02-10 17:58:20 +00:00
parent 28b507f4d8
commit cd6fff2696
9 changed files with 31 additions and 10 deletions

View File

@ -5,7 +5,7 @@
#include "platform_conf.h"
#include "luarpc_rpc.h"
#ifdef BUILD_RPC
#if defined( BUILD_RPC )
// Setup Transport
void transport_init (Transport *tpt)
@ -135,4 +135,4 @@ void transport_close (Transport *tpt)
tpt->fd = INVALID_TRANSPORT;
}
#endif
#endif

View File

@ -40,7 +40,7 @@ void *alloca(size_t);
#include "luarpc_rpc.h"
#ifdef BUILD_RPC
#if defined( BUILD_RPC )
// Support for Compiling with & without rotables
#ifdef LUA_OPTIMIZE_MEMORY

View File

@ -29,10 +29,13 @@
// *****************************************************************************
// Auxiliary libraries that will be compiled for this platform
#ifdef BUILD_RPC
#if defined( BUILD_RPC ) || defined( ELUA_BOOT_RPC )
#define RPCLINE _ROM( AUXLIB_RPC, luaopen_rpc, rpc_map )
#else
#define RPCLINE
#if !defined( BUILD_RPC )
#define BUILD_RPC
#endif
#endif
#define LUA_PLATFORM_LIBS_ROM\

View File

@ -61,10 +61,13 @@
#define ADCLINE
#endif
#ifdef BUILD_RPC
#if defined( BUILD_RPC ) || defined( ELUA_BOOT_RPC )
#define RPCLINE _ROM( AUXLIB_RPC, luaopen_rpc, rpc_map )
#else
#define RPCLINE
#if !defined( BUILD_RPC )
#define BUILD_RPC
#endif
#endif
#ifdef PS_LIB_TABLE_NAME

View File

@ -29,10 +29,13 @@
// *****************************************************************************
// Auxiliary libraries that will be compiled for this platform
#ifdef BUILD_RPC
#if defined( BUILD_RPC ) || defined( ELUA_BOOT_RPC )
#define RPCLINE _ROM( AUXLIB_RPC, luaopen_rpc, rpc_map )
#else
#define RPCLINE
#if !defined( BUILD_RPC )
#define BUILD_RPC
#endif
#endif
#define LUA_PLATFORM_LIBS_ROM\

View File

@ -67,10 +67,13 @@
// *****************************************************************************
// Auxiliary libraries that will be compiled for this platform
#ifdef BUILD_RPC
#if defined( BUILD_RPC ) || defined( ELUA_BOOT_RPC )
#define RPCLINE _ROM( AUXLIB_RPC, luaopen_rpc, rpc_map )
#else
#define RPCLINE
#if !defined( BUILD_RPC )
#define BUILD_RPC
#endif
#endif
#define LUA_PLATFORM_LIBS_ROM\

View File

@ -51,10 +51,13 @@
#define ADCLINE
#endif
#ifdef BUILD_RPC
#if defined( BUILD_RPC ) || defined( ELUA_BOOT_RPC )
#define RPCLINE _ROM( AUXLIB_RPC, luaopen_rpc, rpc_map )
#else
#define RPCLINE
#if !defined( BUILD_RPC )
#define BUILD_RPC
#endif
#endif
#define LUA_PLATFORM_LIBS_ROM\

View File

@ -28,10 +28,13 @@
// *****************************************************************************
// Auxiliary libraries that will be compiled for this platform
#ifdef BUILD_RPC
#if defined( BUILD_RPC ) || defined( ELUA_BOOT_RPC )
#define RPCLINE _ROM( AUXLIB_RPC, luaopen_rpc, rpc_map )
#else
#define RPCLINE
#if !defined( BUILD_RPC )
#define BUILD_RPC
#endif
#endif
#define LUA_PLATFORM_LIBS_ROM\

View File

@ -77,10 +77,13 @@ u32 SCU_GetMCLKFreqValue();
// The name of the platform specific libs table
#define PS_LIB_TABLE_NAME "str9"
#ifdef BUILD_RPC
#if defined( BUILD_RPC ) || defined( ELUA_BOOT_RPC )
#define RPCLINE _ROM( AUXLIB_RPC, luaopen_rpc, rpc_map )
#else
#define RPCLINE
#if !defined( BUILD_RPC )
#define BUILD_RPC
#endif
#endif
#define LUA_PLATFORM_LIBS_ROM\