mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-29 17:22:56 +08:00
use pika_config in benchmark
This commit is contained in:
parent
7b407e8359
commit
8dea406b6d
@ -1,11 +1,17 @@
|
||||
cmake_minimum_required(VERSION 3.0.0)
|
||||
add_compile_options(-Wall -Wextra -Wno-unused-parameter)
|
||||
OPTION(PIKA_CONFIG_ENABLE "pika config enable" OFF)
|
||||
IF(PIKA_CONFIG_ENABLE)
|
||||
ADD_DEFINITIONS(-DPIKA_CONFIG_ENABLE)
|
||||
ENDIF(PIKA_CONFIG_ENABLE)
|
||||
|
||||
project(pikascript VERSION 0.1.0)
|
||||
|
||||
include_directories(package/pikascript/pikascript-core)
|
||||
include_directories(package/pikascript/pikascript-api)
|
||||
include_directories(package/pikascript/pikascript-lib/PikaRunExternControl)
|
||||
include_directories(package/pikascript/pikascript-lib/PikaRunExternControl)
|
||||
include_directories(benchmark)
|
||||
# include_directories(boot/demo01-led)
|
||||
add_subdirectory(package/googletest)
|
||||
add_subdirectory(package/pikascript)
|
||||
|
@ -22,7 +22,7 @@ cd $ROOT
|
||||
rm Release -rf
|
||||
mkdir Release
|
||||
cd Release
|
||||
cmake -DCMAKE_BUILD_TYPE=Release ..
|
||||
cmake -DCMAKE_BUILD_TYPE=Release -DPIKA_CONFIG_ENABLE=ON ..
|
||||
make -j
|
||||
|
||||
cd $ROOT
|
||||
|
@ -24,22 +24,27 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef __PIKA_CFG_VALID_H__
|
||||
#define __PIKA_CFG_VALID_H__
|
||||
#define __PIKA_CFG_VALID_H__
|
||||
|
||||
#ifdef __PIKA_USER_CONFIC_INCLUDE__
|
||||
#include __PIKA_USER_CONFIC_INCLUDE__
|
||||
#else
|
||||
/* default configuration */
|
||||
#define PIKA_CONFIG_LINE_BUFF_SIZE 128
|
||||
#define PIKA_CONFIG_SPRINTF_BUFF_SIZE 128
|
||||
#define PIKA_CONFIG_METHOD_NAME_BUFF_SIZE 32
|
||||
|
||||
/* default configuration */
|
||||
#define PIKA_CONFIG_LINE_BUFF_SIZE 128
|
||||
#define PIKA_CONFIG_SPRINTF_BUFF_SIZE 128
|
||||
#define PIKA_CONFIG_METHOD_NAME_BUFF_SIZE 32
|
||||
#define PIKA_CONFIG_METHOD_CACHE_ENABLE
|
||||
|
||||
#endif
|
||||
|
||||
/* configuration validation */
|
||||
#ifdef PIKA_CONFIG_ENABLE
|
||||
#include "pika_config.h"
|
||||
#else
|
||||
#define PIKA_CONFIG_DEFAULT_SPACE
|
||||
#endif
|
||||
|
||||
#ifdef PIKA_CONFIG_DEFAULT_SPACE
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef PIKA_CONFIG_DEFAULT_SPEED
|
||||
#define PIKA_CONFIG_METHOD_CACHE_ENABLE
|
||||
#endif
|
||||
/* configuration validation */
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user